[x86/cpufeature] 7b5e74e637: BUG: unable to handle kernel paging request at 6b636170

kernel test robot <[email protected]>
Newsgroups gmane.linux.kernel,gmane.linux.oprofile
Message-ID <5744b252.TKkyCAKRsZqh/9JL%[email protected]>
Greetings,

0day kernel testing robot got the below dmesg and the first bad commit is

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master

commit 7b5e74e637e4a977c7cf40fd7de332f60b68180e
Author:     Borislav Petkov <[email protected]>
AuthorDate: Tue Mar 29 17:41:54 2016 +0200
Commit:     Ingo Molnar <[email protected]>
CommitDate: Thu Mar 31 13:33:17 2016 +0200

    x86/cpufeature: Remove cpu_has_arch_perfmon
    
    Use boot_cpu_has() instead.
    
    Signed-off-by: Borislav Petkov <[email protected]>
    Cc: Linus Torvalds <[email protected]>
    Cc: Peter Zijlstra <[email protected]>
    Cc: Thomas Gleixner <[email protected]>
    Cc: [email protected]
    Link: http://lkml.kernel.org/r/[email protected]
    Signed-off-by: Ingo Molnar <[email protected]>

+------------------------------------------+------------+------------+------------+
|                                          | 1e6d88ccf4 | 7b5e74e637 | a43f260a02 |
+------------------------------------------+------------+------------+------------+
| boot_successes                           | 82         | 26         | 11         |
| boot_failures                            | 0          | 1          | 2          |
| BUG:unable_to_handle_kernel              | 0          | 1          | 2          |
| Oops                                     | 0          | 1          |            |
| EIP_is_at_perf_prepare_sample            | 0          | 1          |            |
| Kernel_panic-not_syncing:Fatal_exception | 0          | 1          | 2          |
| Oops:#[##]                               | 0          | 0          | 2          |
| EIP_is_at_sk_del_node_init               | 0          | 0          | 1          |
| backtrace:sk_del_node_init               | 0          | 0          | 1          |
| backtrace:do_group_exit                  | 0          | 0          | 1          |
| backtrace:SyS_exit_group                 | 0          | 0          | 1          |
| EIP_is_at_bpf_prog_free                  | 0          | 0          | 1          |
| backtrace:SYSC_setsockopt                | 0          | 0          | 1          |
| backtrace:SyS_socketcall                 | 0          | 0          | 1          |
+------------------------------------------+------------+------------+------------+

[    1.914984] random: trinity urandom read with 25 bits of entropy available
[    8.542178] random: nonblocking pool is initialized
[   11.939833] sock: process `trinity-main' is using obsolete setsockopt SO_BSDCOMPAT
[   12.349890] BUG: unable to handle kernel paging request at 6b636170
[   12.349895] IP: [<c108154b>] perf_prepare_sample+0x7d/0x263
[   12.349896] *pdpt = 000000000dda5001 *pde = 0000000000000000 
[   12.349897] Oops: 0000 [#1] 
[   12.349898] Modules linked in:
[   12.349900] CPU: 0 PID: 611 Comm: trinity-main Not tainted 4.6.0-rc1-00020-g7b5e74e #5
[   12.349901] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
[   12.349902] task: cdcf17c0 ti: cdc8a000 task.ti: cdc8a000
[   12.349903] EIP: 0060:[<c108154b>] EFLAGS: 00010202 CPU: 0
[   12.349904] EIP is at perf_prepare_sample+0x7d/0x263
[   12.349904] EAX: 6b636170 EBX: cdc8bc6c ECX: 00000008 EDX: 00000001
[   12.349905] ESI: cdc8bd80 EDI: ce08ac00 EBP: cdc8bc60 ESP: cdc8bc48
[   12.349906]  DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068
[   12.349907] CR0: 80050033 CR2: 6b636170 CR3: 00063840 CR4: 00040630
[   12.349910] DR0: 09c0a000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[   12.349910] DR6: ffff0ff0 DR7: 00070602
[   12.349910] Stack:
[   12.349912]  cdc8bc60 c1088bf9 000005b6 ce08ac00 cdc8bd80 00000000 cdc8bc94 c108174e
[   12.349914]  cdc8bfb4 00000009 00400002 00000000 c0068800 cdc8be94 0a1dc000 00000000
[   12.349916]  00000000 ce08ac00 00000000 cdc8bcb4 c10818e8 00000000 cdc8bd80 00000000
[   12.349916] Call Trace:
[   12.349919]  [<c1088bf9>] ? zone_watermark_ok+0x16/0x1b
[   12.349920]  [<c108174e>] perf_event_output+0x1d/0x54
[   12.349922]  [<c10818e8>] __perf_event_overflow+0x163/0x1d3
[   12.349923]  [<c108206b>] perf_swevent_overflow+0x46/0x60
[   12.349924]  [<c108214c>] perf_swevent_event+0xc7/0xd1
[   12.349925]  [<c10824dd>] ___perf_sw_event+0x1ea/0x1fa
[   12.349927]  [<c108a0ef>] ? get_page_from_freelist+0x3bf/0x4ef
[   12.349928]  [<c108a2fd>] ? __alloc_pages_nodemask+0xde/0x5e4
[   12.349931]  [<c103f643>] ? ___might_sleep+0x2b/0xe9
[   12.349932]  [<c1080e71>] ? perf_event_comm_output+0xcd/0xcd
[   12.349934]  [<c10285d5>] ? kmap_atomic_prot+0x3a/0xc7
[   12.349936]  [<c108a0ef>] ? get_page_from_freelist+0x3bf/0x4ef
[   12.349938]  [<c10b43bd>] ? path_put+0x15/0x18
[   12.349940]  [<c108a2fd>] ? __alloc_pages_nodemask+0xde/0x5e4
[   12.349942]  [<c107b2bf>] ? perf_event_aux+0x5f/0x75
[   12.349943]  [<c1080e71>] ? perf_event_comm_output+0xcd/0xcd
[   12.349944]  [<c1081dbf>] ? perf_event_mmap+0x297/0x2a2
[   12.349945]  [<c10a1ac0>] ? __page_set_anon_rmap+0x1c/0x46
[   12.349947]  [<c108d089>] ? get_page+0x8/0xd
[   12.349949]  [<c10997a4>] ? set_pte_at+0xf/0x13
[   12.349950]  [<c1082524>] __perf_sw_event+0x37/0x4e
[   12.349951]  [<c1082524>] ? __perf_sw_event+0x37/0x4e
[   12.349953]  [<c1023856>] __do_page_fault+0x3df/0x3ea
[   12.349955]  [<c10217c6>] ? kvm_async_pf_task_wake+0x137/0x137
[   12.349956]  [<c102387b>] do_page_fault+0x1a/0x1e
[   12.349957]  [<c10217e8>] do_async_page_fault+0x22/0x3c
[   12.349960]  [<c16750dc>] error_code+0x58/0x60
[   12.349961]  [<c10217c6>] ? kvm_async_pf_task_wake+0x137/0x137
[   12.349970] Code: e8 14 1f f8 ff 89 46 38 c7 46 3c 00 00 00 00 f6 45 f0 20 74 20 8b 55 08 89 f8 e8 e9 22 00 00 89 46 68 ba 01 00 00 00 85 c0 74 03 <8b> 10 42 c1 e2 03 66 01 53 06 8b 45 f0 0f ba e0 0a 73 21 8b 56
[   12.349972] EIP: [<c108154b>] perf_prepare_sample+0x7d/0x263 SS:ESP 0068:cdc8bc48
[   12.349972] CR2: 000000006b636170
[   12.349973] ---[ end trace 82ff3361e82667de ]---
[   12.349974] Kernel panic - not syncing: Fatal exception

git bisect start a43f260a02e7f31d72e082768ad0e32d97bdacbd 44549e8f5eea4e0a41b487b63e616cb089922b99 --
git bisect good 6b1291f3392c44c6e5a33e220615809ba7e09903  # 01:38     27+      0  Merge 'ubifs/master' into devel-catchup-201605250104
git bisect good 3bd1789389525d3913f496b07937711164ce3809  # 01:51     27+      0  Merge 'mark-rutland/arm64/misc-patches' into devel-catchup-201605250104
git bisect good 6944b78a365a8b71dabad7169896c3e75f253e8b  # 01:56     27+      0  Merge 'linux-review/Rajneesh-Bhardwaj/platform-x86-Add-PMC-Driver-for-Intel-Core-SoC/20160524-222735' into devel-catchup-201605250104
git bisect  bad 5c7f53f3c9182146efd37be1989f8e23e3b796ff  # 02:01      0-      1  Merge 'linux-review/Leon-Romanovsky/Netlink-based-IOCTLs-RDMA-ABI/20160524-223842' into devel-catchup-201605250104
git bisect  bad be092017b6ffbd013f481f915632db6aa9fc3ca3  # 02:07      0-      1  Merge tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
git bisect good 36db171cc733bc7b8c628ef21831467d1919decd  # 02:14     27+      0  Merge branch 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect  bad 168f1a7163b37294a0ef33829e1ed54d41e33c42  # 02:19      1-     21  Merge branch 'x86-asm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect good 825a3b2605c3aa193e0075d0f9c72e33c17ab16a  # 02:26     27+      0  Merge branch 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect  bad 93984fbd4e33cc861d5b49caed02a02cbfb01340  # 02:30      0-      2  x86/cpufeature: Replace cpu_has_apic with boot_cpu_has() usage
git bisect  bad cb44d0cfc2969999a4d9e20e4fd8749fec6c5498  # 02:35      0-     12  Merge branch 'x86/cpu' into x86/asm, to merge more patches
git bisect  bad d7847a7017b2a2759dd5590c0cffdbdf2994918e  # 02:41      0-      1  x86/cpufeature: Fix build bug caused by merge artifact with the removal of cpu_has_hypervisor
git bisect  bad 7b5e74e637e4a977c7cf40fd7de332f60b68180e  # 03:36      0-      1  x86/cpufeature: Remove cpu_has_arch_perfmon
# first bad commit: [7b5e74e637e4a977c7cf40fd7de332f60b68180e] x86/cpufeature: Remove cpu_has_arch_perfmon
git bisect good 1e6d88ccf41c7ef2d6c99aa5e7fb9215aa0e5423  # 03:43     82+      0  Merge tag 'nios2-v4.6-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/lftan/nios2
# extra tests with CONFIG_DEBUG_INFO_REDUCED
git bisect good 7b5e74e637e4a977c7cf40fd7de332f60b68180e  # 03:50     82+      0  x86/cpufeature: Remove cpu_has_arch_perfmon
# extra tests on HEAD of linux-devel/devel-catchup-201605250104
git bisect  bad a43f260a02e7f31d72e082768ad0e32d97bdacbd  # 03:50      0-      2  0day head guard for 'devel-catchup-201605250104'
# extra tests on tree/branch linus/master
git bisect  bad 29567292c0b5b2fb484125c280a2175141fe2205  # 03:51      0-     63  Merge tag 'for-linus-4.7-rc0-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip
# extra tests on tree/branch linus/master
git bisect  bad 29567292c0b5b2fb484125c280a2175141fe2205  # 03:51      0-     63  Merge tag 'for-linus-4.7-rc0-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip
# extra tests on tree/branch linux-next/master


This script may reproduce the error.

----------------------------------------------------------------------------
#!/bin/bash

kernel=$1
initrd=yocto-minimal-i386.cgz

wget --no-clobber https://github.com/fengguang/reproduce-kernel-bug/raw/master/initrd/$initrd

kvm=(
	qemu-system-x86_64
	-enable-kvm
	-cpu Haswell,+smep,+smap
	-kernel $kernel
	-initrd $initrd
	-m 256
	-smp 1
	-device e1000,netdev=net0
	-netdev user,id=net0
	-boot order=nc
	-no-reboot
	-watchdog i6300esb
	-rtc base=localtime
	-serial stdio
	-display none
	-monitor null 
)

append=(
	hung_task_panic=1
	earlyprintk=ttyS0,115200
	systemd.log_level=err
	debug
	apic=debug
	sysrq_always_enabled
	rcupdate.rcu_cpu_stall_timeout=100
	panic=-1
	softlockup_panic=1
	nmi_watchdog=panic
	oops=panic
	load_ramdisk=2
	prompt_ramdisk=0
	console=ttyS0,115200
	console=tty0
	vga=normal
	root=/dev/ram0
	rw
	drbd.minor_count=8
)

"${kvm[@]}" --append "${append[*]}"
----------------------------------------------------------------------------

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/lkp                          Intel Corporation
dmesg-yocto-vp-25:20160525033525:i386-randconfig-h1-05242342:4.6.0-rc1-00020-g7b5e74e:5.gz (application/gzip, 11.7 KB) - not displayed
config-4.6.0-rc1-00020-g7b5e74e (text/plain, 108.1 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.