From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5D2BBC43331 for ; Tue, 24 Mar 2020 12:52:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 38A68207FF for ; Tue, 24 Mar 2020 12:52:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727595AbgCXMw6 (ORCPT ); Tue, 24 Mar 2020 08:52:58 -0400 Received: from mga14.intel.com ([192.55.52.115]:53073 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727443AbgCXMw5 (ORCPT ); Tue, 24 Mar 2020 08:52:57 -0400 IronPort-SDR: W9t/Q+TzZ+mrl1rnybZmO++Cfd05Ut8BLY9YI3l6tUzNRQFoOAekfwgsHTLrMWISPFKsqItuUV gVRZHKO3w8xw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Mar 2020 05:52:56 -0700 IronPort-SDR: KIxrHx2jtbbGrWS0/hrUctz83ELLpky5Pq/DC19c6pVTUi/8vm/9fMInsH9eP3GocXi/HH8PT2 eZC36rf8IUAw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,300,1580803200"; d="scan'208";a="265146459" Received: from linux.intel.com ([10.54.29.200]) by orsmga002.jf.intel.com with ESMTP; 24 Mar 2020 05:52:56 -0700 Received: from [10.254.67.183] (kliang2-mobl.ccr.corp.intel.com [10.254.67.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by linux.intel.com (Postfix) with ESMTPS id 97E2F580297; Tue, 24 Mar 2020 05:52:55 -0700 (PDT) Subject: Re: [perf/core] 92b1f046a2: BUG:kernel_NULL_pointer_dereference,address To: kernel test robot Cc: peterz@infradead.org, mingo@redhat.com, linux-kernel@vger.kernel.org, irogers@google.com, eranian@google.com, ak@linux.intel.com, lkp@lists.01.org References: <20200324060033.GB11705@shao2-debian> From: "Liang, Kan" Message-ID: <94b177e1-7409-9597-fb4d-0f85583bbb86@linux.intel.com> Date: Tue, 24 Mar 2020 08:52:53 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200324060033.GB11705@shao2-debian> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/24/2020 2:00 AM, kernel test robot wrote: > FYI, we noticed the following commit (built with gcc-7): > > commit: 92b1f046a283a7dafd30067d93444fb6402b42d7 ("[PATCH] perf/core: Fix endless multiplex timer") > url: https://github.com/0day-ci/linux/commits/kan-liang-linux-intel-com/perf-core-Fix-endless-multiplex-timer/20200304-050638 > The patch has been dropped. It is replaced by Peter's patch. https://lkml.kernel.org/r/20200305123851.GX2596@hirez.programming.kicks-ass.net We don't need to worry about the bug anymore. Thanks, Kan > > in testcase: kernel-selftests > with following parameters: > > group: kselftests-00 > > test-description: The kernel contains a set of "self tests" under the tools/testing/selftests/ directory. These are intended to be small unit tests to exercise individual code paths in the kernel. > test-url: https://www.kernel.org/doc/Documentation/kselftest.txt > > > on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 8G > > caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): > > > +---------------------------------------------+------------+------------+ > | | fdb6482244 | 92b1f046a2 | > +---------------------------------------------+------------+------------+ > | boot_successes | 3 | 0 | > | boot_failures | 21 | 9 | > | BUG:kernel_in_stage | 21 | 9 | > | BUG:kernel_NULL_pointer_dereference,address | 0 | 6 | > | Oops:#[##] | 0 | 6 | > | RIP:__perf_event_disable | 0 | 6 | > | Kernel_panic-not_syncing:Fatal_exception | 0 | 6 | > | Mem-Info | 0 | 1 | > +---------------------------------------------+------------+------------+ > > > If you fix the issue, kindly add following tag > Reported-by: kernel test robot > > > [ 54.787532] BUG: kernel NULL pointer dereference, address: 0000000000000094 > [ 54.788968] #PF: supervisor read access in kernel mode > [ 54.790070] #PF: error_code(0x0000) - not-present page > [ 54.791164] PGD 0 P4D 0 > [ 54.792019] Oops: 0000 [#1] SMP PTI > [ 54.792956] CPU: 0 PID: 9996 Comm: breakpoint_test Not tainted 5.6.0-rc1-00017-g92b1f046a283a7 #1 > [ 54.794419] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 > [ 54.795898] RIP: 0010:__perf_event_disable+0x26/0x1a0 > [ 54.797012] Code: 0f 1f 40 00 8b 87 a8 00 00 00 85 c0 0f 88 66 01 00 00 41 55 41 54 49 89 d4 55 53 48 89 f5 f6 82 98 00 00 00 04 48 89 fb 75 7c <8b> 85 94 00 00 00 39 85 90 00 00 00 74 09 83 f8 01 0f 84 39 01 00 > [ 54.801211] RSP: 0018:ffffa93d05073d30 EFLAGS: 00010046 > [ 54.803308] RAX: 0000000000000000 RBX: ffff9c35692e7000 RCX: 0000000000000000 > [ 54.813087] RDX: ffff9c34f6499500 RSI: 0000000000000000 RDI: ffff9c35692e7000 > [ 54.815527] RBP: 0000000000000000 R08: ffffa93d05073eac R09: 0000000000000000 > [ 54.818026] R10: ffffa93d05073d18 R11: ffffffff9b663150 R12: ffff9c34f6499500 > [ 54.820629] R13: 0000000000000000 R14: ffff9c34f6499508 R15: 0000000000000000 > [ 54.823122] FS: 00007fa354f06540(0000) GS:ffff9c357fc00000(0000) knlGS:0000000000000000 > [ 54.825834] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > [ 54.828126] CR2: 0000000000000094 CR3: 000000019fb0e000 CR4: 00000000000406f0 > [ 54.830677] DR0: 0000556d8bb0a10b DR1: 0000000000000000 DR2: 0000000000000000 > [ 54.833152] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 > [ 54.835683] Call Trace: > [ 54.837844] ? __perf_event_enable+0x1f0/0x1f0 > [ 54.839834] event_function_call+0xd0/0x130 > [ 54.841771] ? __perf_event_enable+0x1f0/0x1f0 > [ 54.843696] ? _cond_resched+0x19/0x30 > [ 54.853765] perf_event_disable+0x15/0x30 > [ 54.855597] modify_user_hw_breakpoint+0x43/0x80 > [ 54.857481] ptrace_modify_breakpoint+0x120/0x150 > [ 54.859393] ptrace_set_debugreg+0xc8/0x1a0 > [ 54.861232] arch_ptrace+0x2f4/0x440 > [ 54.862927] __x64_sys_ptrace+0xc9/0x140 > [ 54.864687] do_syscall_64+0x5b/0x1f0 > [ 54.866422] entry_SYSCALL_64_after_hwframe+0x44/0xa9 > [ 54.868130] RIP: 0033:0x7fa354e378ff > [ 54.869124] Code: c7 44 24 10 08 00 00 00 48 89 44 24 18 48 8d 44 24 30 8b 70 08 48 8b 50 10 4c 0f 43 50 18 48 89 44 24 20 b8 65 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 41 48 85 c0 78 06 41 83 f8 02 76 1e 48 8b 4c > [ 54.872340] RSP: 002b:00007fffe648e1a0 EFLAGS: 00000202 ORIG_RAX: 0000000000000065 > [ 54.873760] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fa354e378ff > [ 54.875136] RDX: 0000000000000388 RSI: 000000000000270d RDI: 0000000000000006 > [ 54.876526] RBP: 00007fffe648e250 R08: 0000000000000005 R09: 0000000000000000 > [ 54.877903] R10: 0000000000000000 R11: 0000000000000202 R12: 0000556d8bb09950 > [ 54.879286] R13: 00007fffe648e7b0 R14: 0000000000000000 R15: 0000000000000000 > [ 54.880682] Modules linked in: binfmt_misc intel_rapl_msr intel_rapl_common sr_mod cdrom crct10dif_pclmul sg crc32_pclmul ppdev crc32c_intel ghash_clmulni_intel bochs_drm drm_vram_helper drm_ttm_helper snd_pcm ttm snd_timer snd aesni_intel soundcore crypto_simd joydev ata_generic drm_kms_helper pata_acpi cryptd glue_helper pcspkr serio_raw syscopyarea sysfillrect sysimgblt fb_sys_fops parport_pc floppy drm parport ata_piix i2c_piix4 libata ip_tables > [ 54.887273] CR2: 0000000000000094 > [ 54.888345] ---[ end trace 3c65e40013a20268 ]--- > > > To reproduce: > > # build kernel > cd linux > cp config-5.6.0-rc1-00017-g92b1f046a283a7 .config > make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage > > git clone https://github.com/intel/lkp-tests.git > cd lkp-tests > bin/lkp qemu -k job-script # job-script is attached in this email > > > > Thanks, > Rong Chen > From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============7095837003649002123==" MIME-Version: 1.0 From: Liang, Kan To: lkp@lists.01.org Subject: Re: [perf/core] 92b1f046a2: BUG:kernel_NULL_pointer_dereference, address Date: Tue, 24 Mar 2020 08:52:53 -0400 Message-ID: <94b177e1-7409-9597-fb4d-0f85583bbb86@linux.intel.com> In-Reply-To: <20200324060033.GB11705@shao2-debian> List-Id: --===============7095837003649002123== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On 3/24/2020 2:00 AM, kernel test robot wrote: > FYI, we noticed the following commit (built with gcc-7): > = > commit: 92b1f046a283a7dafd30067d93444fb6402b42d7 ("[PATCH] perf/core: Fix= endless multiplex timer") > url: https://github.com/0day-ci/linux/commits/kan-liang-linux-intel-com/p= erf-core-Fix-endless-multiplex-timer/20200304-050638 > = The patch has been dropped. It is replaced by Peter's patch. https://lkml.kernel.org/r/20200305123851.GX2596(a)hirez.programming.kicks-a= ss.net We don't need to worry about the bug anymore. Thanks, Kan > = > in testcase: kernel-selftests > with following parameters: > = > group: kselftests-00 > = > test-description: The kernel contains a set of "self tests" under the too= ls/testing/selftests/ directory. These are intended to be small unit tests = to exercise individual code paths in the kernel. > test-url: https://www.kernel.org/doc/Documentation/kselftest.txt > = > = > on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -= m 8G > = > caused below changes (please refer to attached dmesg/kmsg for entire log/= backtrace): > = > = > +---------------------------------------------+------------+------------+ > | | fdb6482244 | 92b1f046a2 | > +---------------------------------------------+------------+------------+ > | boot_successes | 3 | 0 | > | boot_failures | 21 | 9 | > | BUG:kernel_in_stage | 21 | 9 | > | BUG:kernel_NULL_pointer_dereference,address | 0 | 6 | > | Oops:#[##] | 0 | 6 | > | RIP:__perf_event_disable | 0 | 6 | > | Kernel_panic-not_syncing:Fatal_exception | 0 | 6 | > | Mem-Info | 0 | 1 | > +---------------------------------------------+------------+------------+ > = > = > If you fix the issue, kindly add following tag > Reported-by: kernel test robot > = > = > [ 54.787532] BUG: kernel NULL pointer dereference, address: 00000000000= 00094 > [ 54.788968] #PF: supervisor read access in kernel mode > [ 54.790070] #PF: error_code(0x0000) - not-present page > [ 54.791164] PGD 0 P4D 0 > [ 54.792019] Oops: 0000 [#1] SMP PTI > [ 54.792956] CPU: 0 PID: 9996 Comm: breakpoint_test Not tainted 5.6.0-r= c1-00017-g92b1f046a283a7 #1 > [ 54.794419] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIO= S 1.12.0-1 04/01/2014 > [ 54.795898] RIP: 0010:__perf_event_disable+0x26/0x1a0 > [ 54.797012] Code: 0f 1f 40 00 8b 87 a8 00 00 00 85 c0 0f 88 66 01 00 0= 0 41 55 41 54 49 89 d4 55 53 48 89 f5 f6 82 98 00 00 00 04 48 89 fb 75 7c <= 8b> 85 94 00 00 00 39 85 90 00 00 00 74 09 83 f8 01 0f 84 39 01 00 > [ 54.801211] RSP: 0018:ffffa93d05073d30 EFLAGS: 00010046 > [ 54.803308] RAX: 0000000000000000 RBX: ffff9c35692e7000 RCX: 000000000= 0000000 > [ 54.813087] RDX: ffff9c34f6499500 RSI: 0000000000000000 RDI: ffff9c356= 92e7000 > [ 54.815527] RBP: 0000000000000000 R08: ffffa93d05073eac R09: 000000000= 0000000 > [ 54.818026] R10: ffffa93d05073d18 R11: ffffffff9b663150 R12: ffff9c34f= 6499500 > [ 54.820629] R13: 0000000000000000 R14: ffff9c34f6499508 R15: 000000000= 0000000 > [ 54.823122] FS: 00007fa354f06540(0000) GS:ffff9c357fc00000(0000) knlG= S:0000000000000000 > [ 54.825834] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > [ 54.828126] CR2: 0000000000000094 CR3: 000000019fb0e000 CR4: 000000000= 00406f0 > [ 54.830677] DR0: 0000556d8bb0a10b DR1: 0000000000000000 DR2: 000000000= 0000000 > [ 54.833152] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 000000000= 0000600 > [ 54.835683] Call Trace: > [ 54.837844] ? __perf_event_enable+0x1f0/0x1f0 > [ 54.839834] event_function_call+0xd0/0x130 > [ 54.841771] ? __perf_event_enable+0x1f0/0x1f0 > [ 54.843696] ? _cond_resched+0x19/0x30 > [ 54.853765] perf_event_disable+0x15/0x30 > [ 54.855597] modify_user_hw_breakpoint+0x43/0x80 > [ 54.857481] ptrace_modify_breakpoint+0x120/0x150 > [ 54.859393] ptrace_set_debugreg+0xc8/0x1a0 > [ 54.861232] arch_ptrace+0x2f4/0x440 > [ 54.862927] __x64_sys_ptrace+0xc9/0x140 > [ 54.864687] do_syscall_64+0x5b/0x1f0 > [ 54.866422] entry_SYSCALL_64_after_hwframe+0x44/0xa9 > [ 54.868130] RIP: 0033:0x7fa354e378ff > [ 54.869124] Code: c7 44 24 10 08 00 00 00 48 89 44 24 18 48 8d 44 24 3= 0 8b 70 08 48 8b 50 10 4c 0f 43 50 18 48 89 44 24 20 b8 65 00 00 00 0f 05 <= 48> 3d 00 f0 ff ff 77 41 48 85 c0 78 06 41 83 f8 02 76 1e 48 8b 4c > [ 54.872340] RSP: 002b:00007fffe648e1a0 EFLAGS: 00000202 ORIG_RAX: 0000= 000000000065 > [ 54.873760] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fa35= 4e378ff > [ 54.875136] RDX: 0000000000000388 RSI: 000000000000270d RDI: 000000000= 0000006 > [ 54.876526] RBP: 00007fffe648e250 R08: 0000000000000005 R09: 000000000= 0000000 > [ 54.877903] R10: 0000000000000000 R11: 0000000000000202 R12: 0000556d8= bb09950 > [ 54.879286] R13: 00007fffe648e7b0 R14: 0000000000000000 R15: 000000000= 0000000 > [ 54.880682] Modules linked in: binfmt_misc intel_rapl_msr intel_rapl_c= ommon sr_mod cdrom crct10dif_pclmul sg crc32_pclmul ppdev crc32c_intel ghas= h_clmulni_intel bochs_drm drm_vram_helper drm_ttm_helper snd_pcm ttm snd_ti= mer snd aesni_intel soundcore crypto_simd joydev ata_generic drm_kms_helper= pata_acpi cryptd glue_helper pcspkr serio_raw syscopyarea sysfillrect sysi= mgblt fb_sys_fops parport_pc floppy drm parport ata_piix i2c_piix4 libata i= p_tables > [ 54.887273] CR2: 0000000000000094 > [ 54.888345] ---[ end trace 3c65e40013a20268 ]--- > = > = > To reproduce: > = > # build kernel > cd linux > cp config-5.6.0-rc1-00017-g92b1f046a283a7 .config > make HOSTCC=3Dgcc-7 CC=3Dgcc-7 ARCH=3Dx86_64 olddefconfig prepare module= s_prepare bzImage > = > git clone https://github.com/intel/lkp-tests.git > cd lkp-tests > bin/lkp qemu -k job-script # job-script is attached in= this email > = > = > = > Thanks, > Rong Chen >=20 --===============7095837003649002123==--