[x86/KASLR] e12c5dd1e8: 32-bit relocation outside of kernel!
by Fengguang Wu
Hi kees,
0day kernel testing robot got the below dmesg and the first bad commit is
https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git kaslr/memory
commit e12c5dd1e88502517d2723587e6cb955a5b24a25
Author: Kees Cook <keescook(a)chromium.org>
AuthorDate: Mon May 9 10:57:32 2016 -0700
Commit: Kees Cook <keescook(a)chromium.org>
CommitDate: Fri May 20 20:25:09 2016 -0700
x86/KASLR: Add physical address randomization >4G
This patch exchanges the prior slots[] array for the new slot_areas[]
array, and lifts the limitation of KERNEL_IMAGE_SIZE on the physical
address offset for 64-bit. As before, process_e820_entry() walks
memory and populates slot_areas[], splitting on any detected mem_avoid
collisions.
Finally, since the slots[] array and its associated functions are not
needed any more, so they are removed.
Based on earlier patches by Baoquan He.
Cc: Baoquan He <bhe(a)redhat.com>
Signed-off-by: Kees Cook <keescook(a)chromium.org>
---
This patch is pretty noisy due to the indentation change in the
e820 walker. I couldn't find a cleaner way to do this that didn't
make the final code LESS readable, unfortunately. So, the diff is
ugly, but I think the results are clean.
+------------------------------------------------------------------+------------+------------+------------+
| | 4239d106bd | e12c5dd1e8 | 55d0d5ab24 |
+------------------------------------------------------------------+------------+------------+------------+
| boot_successes | 1178 | 180 | 50 |
| boot_failures | 42 | 130 | 29 |
| BUG:unable_to_handle_kernel | 32 | 6 | 2 |
| Oops | 36 | 8 | 2 |
| EIP_is_at_perf_prepare_sample | 36 | 8 | 2 |
| Kernel_panic-not_syncing:Fatal_exception | 21 | 7 | |
| backtrace:iterate_dir | 11 | 3 | |
| backtrace:SyS_getdents64 | 12 | 3 | |
| invoked_oom-killer:gfp_mask=0x | 6 | 1 | |
| Mem-Info | 6 | 1 | 1 |
| Out_of_memory:Kill_process | 6 | 1 | |
| page_allocation_failure:order:#,mode:#(GFP_HIGHUSER_MOVABLE) | 2 | 1 | |
| warn_alloc_failed+0x | 2 | 1 | 1 |
| backtrace:_do_fork | 5 | 1 | |
| backtrace:SyS_clone | 5 | 1 | |
| backtrace:__mm_populate | 2 | 1 | |
| backtrace:SyS_mlockall | 2 | 1 | |
| page_allocation_failure:order:#,mode:#(GFP_KERNEL|__GFP_NORETRY) | 1 | 0 | 1 |
| backtrace:sock_setsockopt | 2 | | |
| backtrace:SyS_setsockopt | 2 | | |
| backtrace:SyS_socketcall | 2 | | |
| Kernel_panic-not_syncing:Fatal_exception_in_interrupt | 15 | 1 | 2 |
| Oops:#[##ed_to_execute'/]PREEMPT_SMP_DEBUG_PAGEALLOC | 1 | | |
| backtrace:trace_apic_timer_interrupt | 1 | | |
| backtrace:vfs_fstatat | 7 | 2 | 1 |
| backtrace:SyS_fstatat64 | 8 | 2 | 1 |
| backtrace:cp_new_stat64 | 1 | | |
| BUG:kernel_early-boot_crashed_Decompressing_Linux...Parsing_ELF | 0 | 47 | 14 |
| BUG:kernel_early-boot_crashed_Decompressing_Linux | 0 | 16 | 4 |
| BUG:kernel_early-boot_hang_Decompressing_Linux | 0 | 19 | 2 |
| BUG:kernel_early-boot_hang_Decompressing_Linux...Parsing_ELF | 0 | 10 | |
| BUG:kernel_boot_hang | 0 | 26 | 4 |
| bit_relocation_outside_of_kernel | 0 | 6 | 2 |
| System_halted | 0 | 10 | 2 |
| Kernel_panic-not_syncing:Out_of_memory_and_no_killable_processes | 0 | 1 | |
| BUG:kernel_boot_crashed | 0 | 3 | 2 |
| backtrace:ring_buffer_consumer_thread | 0 | 0 | 1 |
+------------------------------------------------------------------+------------+------------+------------+
Decompressing Linux... Parsing ELF... Performing relocations...
32-bit relocation outside of kernel!
-- System halted
Elapsed time: 440
BUG: kernel boot hang
Linux version 4.6.0-07139-ge12c5dd #1
Command line: 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 link=/kbuild-tests/run-queue/kvm/i386-randconfig-c0-05212049/linux-devel:devel-spot-201605212023:e12c5dd1e88502517d2723587e6cb955a5b24a25:bisect-linux-9/.vmlinuz-e12c5dd1e88502517d2723587e6cb955a5b24a25-20160521233903-232-vp branch=linux-devel/devel-spot-201605212023 BOOT_IMAGE=/pkg/linux/i386-randconfig-c0-05212049/gcc-6/e12c5dd1e88502517d2723587e6cb955a5b24a25/vmlinuz-4.6.0-07139-ge12c5dd drbd.minor_count=8
qemu-system-x86_64 -enable-kvm -cpu Haswell,+smep,+smap -kernel /pkg/linux/i386-randconfig-c0-05212049/gcc-6/e12c5dd1e88502517d2723587e6cb955a5b24a25/vmlinuz-4.6.0-07139-ge12c5dd -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 link=/kbuild-tests/run-queue/kvm/i386-randconfig-c0-05212049/linux-devel:devel-spot-201605212023:e12c5dd1e88502517d2723587e6cb955a5b24a25:bisect-linux-9/.vmlinuz-e12c5dd1e88502517d2723587e6cb955a5b24a25-20160521233903-232-vp branch=linux-devel/devel-spot-201605212023 BOOT_IMAGE=/pkg/linux/i386-randconfig-c0-05212049/gcc-6/e12c5dd1e88502517d2723587e6cb955a5b24a25/vmlinuz-4.6.0-07139-ge12c5dd drbd.minor_count=8' -initrd /osimage/yocto/yocto-minimal-i386.cgz -m 256 -smp 1 -device e1000,netdev=net0 -netdev user,id=net0 -boot order=nc -no-reboot -watchdog i6300esb -rtc base=localtime -drive file=/fs/sdh1/disk0-yocto-vp-1,media=disk,if=virtio -drive file=/fs/sdh1/disk1-yocto-vp-1,media=disk,if=virtio -drive file=/fs/sdh1/disk2-yocto-vp-1,media=disk,if=virtio -drive file=/fs/sdh1/disk3-yocto-vp-1,media=disk,if=virtio -drive file=/fs/sdh1/disk4-yocto-vp-1,media=disk,if=virtio -drive file=/fs/sdh1/disk5-yocto-vp-1,media=disk,if=virtio -drive file=/fs/sdh1/disk6-yocto-vp-1,media=disk,if=virtio -pidfile /dev/shm/kboot/pid-yocto-vp-1 -serial file:/dev/shm/kboot/serial-yocto-vp-1 -daemonize -display none -monitor null
git bisect start 55d0d5ab240cfe172cc650fa3f6258b54c5b43b5 2dcd0af568b0cf583645c8a317dd12e344b1c72a --
git bisect bad 8fe184983f4d1eda146f2c755952ebd3615177c8 # 22:16 281- 114 Merge 'ak/perf/disassembler-1' into devel-spot-201605212023
git bisect bad b636a37bfb997cc1bfd21d7c8384483ae8e99299 # 22:30 260- 131 Merge 'kees/kbuild/no-android' into devel-spot-201605212023
git bisect good f775335ec7d8c0e7f8fb0c96980021a8f67e925c # 22:49 305+ 9 Merge 'kees/nak/proc-r' into devel-spot-201605212023
git bisect good 1843001560bc48bd94a9b115f3f22f44f29ca12c # 23:06 308+ 12 Merge 'kees/kaslr/weak-symbols' into devel-spot-201605212023
git bisect bad f44d5a44acfc16e3ba362fabe0a0a4a741e57913 # 23:21 290- 113 Merge 'kees/kaslr/memory' into devel-spot-201605212023
git bisect good e19043ca4914e263cbb5093f453ce025376b3c5c # 23:31 302+ 13 Merge 'kees/kaslr/relocs' into devel-spot-201605212023
git bisect bad e12c5dd1e88502517d2723587e6cb955a5b24a25 # 23:47 292- 117 x86/KASLR: Add physical address randomization >4G
git bisect good d268ed7754e142e8030f7584796b2c53363785c9 # 00:12 309+ 31 x86/KASLR: Clarify identity map interface
git bisect good 4239d106bdc0bdd6a46e1d70cf7c59dd5515ac00 # 00:30 302+ 9 x86/KASLR: Randomize virtual address separately
# first bad commit: [e12c5dd1e88502517d2723587e6cb955a5b24a25] x86/KASLR: Add physical address randomization >4G
git bisect good 4239d106bdc0bdd6a46e1d70cf7c59dd5515ac00 # 00:57 918+ 42 x86/KASLR: Randomize virtual address separately
# extra tests on HEAD of linux-devel/devel-spot-201605212023
git bisect bad 55d0d5ab240cfe172cc650fa3f6258b54c5b43b5 # 00:57 0- 29 0day head guard for 'devel-spot-201605212023'
# extra tests on tree/branch kees/kaslr/memory
# extra tests on tree/branch linus/master
git bisect good 5469dc270cd44c451590d40c031e6a71c1f637e8 # 02:22 901+ 901 Merge branch 'akpm' (patches from Andrew)
# extra tests on tree/branch linux-next/master
This script may reproduce the error.
----------------------------------------------------------------------------
#!/bin/bash
kernel=$1
kvm=(
qemu-system-x86_64
-enable-kvm
-cpu Haswell,+smep,+smap
-kernel $kernel
-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
4 years, 7 months
[chrdev] 65e5b1e9eb: BUG: unable to handle kernel NULL pointer dereference at 0000000000000034
by Fengguang Wu
Greetings,
0day kernel testing robot got the below dmesg and the first bad commit is
https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git chrdev-warn
commit 65e5b1e9eb3f777ab7535b74b490e882eeec79d7
Author: Linus Walleij <linus.walleij(a)linaro.org>
AuthorDate: Fri Feb 19 15:14:29 2016 +0100
Commit: Linus Walleij <linus.walleij(a)linaro.org>
CommitDate: Mon May 23 10:15:20 2016 +0200
chrdev: allocate dynamic chardevs in all unused holes
This is a duct-tape-and-chewing-gum solution to the problem
with the major numbers running out when allocating major
numbers dynamically.
To avoid collisions in the major space, we supply a bitmap with
"holes" that exist in the lower range of major numbers [0-254]
and pick numbers from there, beginning with the unused char
device 8 and moving up through 26, 40, 60-63, 93-94, 102,
120-127, 159, 213-215, 222-223 and 234-254.
The algorithm will behave like the old dynamic assignment
to begin with: dynamic majors will be assigned starting with
254, 253, ... but when it reaches 234 it will make a jump
and assign 223 and so on.
It will also FAIL if we actually fill up all free major
numbers. This seems to me like the reasonable thing to do
since the other numbers are, after all, reserved.
This also deletes the comment /* temporary */ which must be
one of the biggest lies ever.
This also updates the Documentation/devices.txt document to
reflect that all these numbers are used for dynamic assignment.
Reported-by: Ying Huang <ying.huang(a)linux.intel.com>
Cc: Linus Torvalds <torvalds(a)linux-foundation.org>
Cc: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
Cc: Alan Cox <alan(a)linux.intel.com>
Cc: Arnd Bergmann <arnd(a)arndb.de>
Signed-off-by: Linus Walleij <linus.walleij(a)linaro.org>
---
ChangeLog v4->v5:
- Create a new macro, BITS32() in <linux/bitops.> that allow
us to make an intuitive bitmask for the existing major
number. This reuses GENMASK(), clamps the arguments and
switch them around: to me it is atleast most intuitive to
have the lower bit before the higher one.
- Use BITS32() and BIT_MASK() to define the bitlist for
available devices.
- Assign dynamic majors from the top down (254, 253...) like
the old code was doing. I tried assigning bottom up
(8, 20,...) but that gave rise to "interesting" phenomena
on Intels test servers running random QEMU: character
devices in the lower range would stop probing properly,
even if they have a major number not colliding with the
dynamic assignment. At one time IDE tape (major 37) and
one time ISDN (major 45). No clue as to why.
ChangeLog v3->v4:
- Create the BITS() macro in a separate patch. This was
more tangled up than I thought, as the nice build servers
quickly told me.
ChangeLog v2->v3:
- Of course I had a dangling hunk for pr_dbg()->pr_debug()
in my working tree. Mea culpa.
- Fix the redefinition of BITS() in select.c to use the
more precise name FDS_BITS() over the generic plural.
ChangeLog v1->v2:
- Follow-up on the previous RFC patch, this uses Torvald's
suggested bitmap approach to allocate devices instead of
a list of free numbers.
- As a result of using find_first_zero_bit(), the major
numbers are assigned from low to high instead from high
to low. It's a bit scarier but I guess drivers using
dynamic numbers should be all right with it, I'm more
worried about userspaces expecting dynamic majors to
be in the [234,254] range. Input welcome, maybe I'm
just chicken.
- This still needs to be applied on top of the previous
fix to start warning about going below major 234. If
you prefer to just get this patch and get rid of the
problem then tell me.
+------------------------------------------------------------------+------------+------------+-------------+
| | 7639dad93a | 65e5b1e9eb | v4.6_052613 |
+------------------------------------------------------------------+------------+------------+-------------+
| boot_successes | 29 | 0 | 0 |
| boot_failures | 39 | 30 | 26 |
| Mem-Info | 4 | | |
| Out_of_memory:Kill_process | 4 | | |
| backtrace:__mm_populate | 3 | | |
| backtrace:SyS_mlockall | 3 | | |
| BUG:kernel_test_crashed | 1 | | |
| invoked_oom-killer:gfp_mask=0x | 2 | | |
| backtrace:SYSC_newfstatat | 1 | | |
| backtrace:SyS_newfstatat | 1 | | |
| Kernel_panic-not_syncing:Out_of_memory_and_no_killable_processes | 1 | | |
| backtrace:_do_fork | 1 | | |
| backtrace:SyS_clone | 1 | | |
| Kernel_panic-not_syncing:Attempted_to_kill_init!exitcode= | 34 | | |
| BUG:unable_to_handle_kernel | 0 | 30 | 24 |
| Oops | 0 | 30 | 24 |
| RIP:tty_port_link_device | 0 | 30 | 24 |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 30 | 24 |
| backtrace:init | 0 | 30 | 24 |
| backtrace:kernel_init_freeable | 0 | 30 | 24 |
| BUG:kernel_early-boot_hang_early_console_in_setup_code | 0 | 0 | 2 |
+------------------------------------------------------------------+------------+------------+-------------+
[ 33.795710] hub 1-0:1.0: USB hub found
[ 33.796309] hub 1-0:1.0: 1 port detected
[ 33.798414] userial_init: cannot register, err -16
[ 33.799188] BUG: unable to handle kernel NULL pointer dereference at 0000000000000034
[ 33.800392] IP: [<ffffffff8a867a51>] tty_port_link_device+0x16/0x52
[ 33.801358] PGD 0
[ 33.801695] Oops: 0000 [#1] SMP DEBUG_PAGEALLOC
[ 33.802381] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.6.0-08908-g65e5b1e #1
[ 33.803431] task: ffff88000f4c0000 ti: ffff88000f4ac000 task.ti: ffff88000f4ac000
[ 33.804478] RIP: 0010:[<ffffffff8a867a51>] [<ffffffff8a867a51>] tty_port_link_device+0x16/0x52
[ 33.815834] RSP: 0000:ffff88000f4afc90 EFLAGS: 00010296
[ 33.816630] RAX: 00000000ffffffff RBX: 0000000000000000 RCX: 0000000000000000
[ 33.817628] RDX: ffff88000f4c0000 RSI: 0000000000000000 RDI: ffff880009e55800
[ 33.818631] RBP: ffff88000f4afca8 R08: 0000000000000002 R09: 00000000006f6381
[ 33.819636] R10: ffff88000f4afce8 R11: 00000000001d53a0 R12: 0000000000000000
[ 33.820641] R13: ffff880009e55800 R14: ffff88000e3748f0 R15: ffff880009e55800
[ 33.821646] FS: 0000000000000000(0000) GS:ffff88000f800000(0000) knlGS:0000000000000000
[ 33.822776] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 33.823641] CR2: 0000000000000034 CR3: 000000000b806000 CR4: 00000000000406f0
[ 33.824702] Stack:
[ 33.836551] 0000000000000000 0000000000000000 0000000000000000 ffff88000f4afcd8
[ 33.837627] ffffffff8a867ab8 ffff880009e55800 0000000000000000 ffffffff8d7e1d40
[ 33.838675] 0000000000000000 ffff88000f4afd10 ffffffff8ad6a258 fffffffffffffff4
[ 33.839732] Call Trace:
[ 33.840073] [<ffffffff8a867ab8>] tty_port_register_device+0x2b/0x41
[ 33.840907] [<ffffffff8ad6a258>] gserial_alloc_line+0x1b5/0x222
[ 33.841701] [<ffffffff8ad683da>] acm_alloc_instance+0x4a/0x8b
[ 33.842479] [<ffffffff8ad3faab>] usb_get_function_instance+0x64/0xc0
[ 33.856769] [<ffffffff8ad6b144>] serial_register_ports+0x66/0x173
[ 33.857725] [<ffffffff8ad6b33c>] gs_bind+0xeb/0x196
[ 33.858391] [<ffffffff8ad3f590>] composite_bind+0xa6/0x217
[ 33.859135] [<ffffffff8ad42ba6>] udc_bind_to_driver+0x38/0x107
[ 33.859920] [<ffffffff8ad43a74>] usb_gadget_probe_driver+0x17e/0x19c
[ 33.860781] [<ffffffff8bb8c922>] ? set_debug_rodata+0x20/0x20
[ 33.861557] [<ffffffff8ad3f7b9>] usb_composite_probe+0xb8/0xc7
[ 33.862337] [<ffffffff8bbd490a>] ? obexmod_init+0x17/0x17
[ 33.876501] [<ffffffff8bbd49c2>] init+0xb8/0xba
[ 33.877119] [<ffffffff8bb8d22c>] do_one_initcall+0xa2/0x14f
[ 33.877868] [<ffffffff8bb8c922>] ? set_debug_rodata+0x20/0x20
[ 33.878656] [<ffffffff8bb8d41f>] kernel_init_freeable+0x146/0x1ec
[ 33.879473] [<ffffffff8b18c409>] kernel_init+0xf/0x147
[ 33.880171] [<ffffffff8b19261f>] ret_from_fork+0x1f/0x40
[ 33.880879] [<ffffffff8b18c3fa>] ? rest_init+0xd1/0xd1
[ 33.881570] Code: b4 03 00 00 4c 1d 00 00 c7 83 bc 03 00 00 01 00 00 00 5b 5d c3 55 48 89 e5 41 55 41 54 53 49 89 f4 89 d3 49 89 fd e8 b2 f9 cd ff <41> 39 5c 24 34 77 18 e8 a6 f9 cd ff be 31 00 00 00 48 c7 c7 06
[ 33.898884] RIP [<ffffffff8a867a51>] tty_port_link_device+0x16/0x52
[ 33.899745] RSP <ffff88000f4afc90>
[ 33.900212] CR2: 0000000000000034
[ 33.900661] ---[ end trace af7bf7e9c6d9e331 ]---
[ 33.901274] Kernel panic - not syncing: Fatal exception
git bisect start 2fe655791c0d581b2025cc0041e56ebe61fe3448 2dcd0af568b0cf583645c8a317dd12e344b1c72a --
git bisect bad 7dc32c76da7c88652c2e65337733ab46b4c84ab3 # 17:24 0- 20 Merge 'linux-review/Stefan-Bader/mm-Use-phys_addr_t-for-reserve_bootmem_region-arguments/20160517-212449' into devel-hourly-2016052613
git bisect good b11c3b2ad161eae45a51151698c654a5dd28a179 # 17:31 21+ 23 Merge 'linux-review/Neil-Armstrong/Amlogic-Meson-Add-reset-controller/20160525-175641' into devel-hourly-2016052613
git bisect bad a1a976d1dbe18719484e007c480fdffe7e42b271 # 17:41 0- 26 Merge 'kees/yama/extras' into devel-hourly-2016052613
git bisect good 5410fe8a5ae58d376a155286ac01d3a13290af70 # 17:55 20+ 16 Merge 'kees/pstore/fixes' into devel-hourly-2016052613
git bisect bad 2419038e7e773e8d4f23cbd9887338e0dc5d6e53 # 18:03 0- 18 Merge 'gpio/chardev-step-2' into devel-hourly-2016052613
git bisect good a29206270bdccba88bb909a5c85dd26c4ea89144 # 18:15 21+ 21 Merge 'linux-review/Fabio-Estevam/cpufreq-imx6-Fix-the-secondary_sel_clk-clock-string/20160520-113710' into devel-hourly-2016052613
git bisect bad 4d37f9311df4807adb7ba670bfa76ed66dfeb971 # 18:24 0- 22 Merge 'linux-review/Damien-Riegel/ARM-dts-TS-4800-add-FPGA-s-IRQ-controller-support/20160518-041927' into devel-hourly-2016052613
git bisect good 680eb1e1e40b9c95a0a7acbe8edd93de266cec0a # 18:29 22+ 21 Merge 'linux-review/Matt-Redfearn/genirq-Fix-missing-return-value-in-irq_destroy_ipi/20160524-184516' into devel-hourly-2016052613
git bisect good 11c6ae39624066901b99be011a901f24a9c28a56 # 18:45 22+ 4 Merge 'kees/nak/fw-relative' into devel-hourly-2016052613
git bisect bad 91489b86d9bf761b275f72b6e3ff947ced2aeaaa # 18:55 0- 24 Merge 'gpio/chrdev-warn' into devel-hourly-2016052613
git bisect bad 65e5b1e9eb3f777ab7535b74b490e882eeec79d7 # 19:00 0- 8 chrdev: allocate dynamic chardevs in all unused holes
# first bad commit: [65e5b1e9eb3f777ab7535b74b490e882eeec79d7] chrdev: allocate dynamic chardevs in all unused holes
git bisect good 7639dad93a5564579987abded4ec05e3db13659d # 19:10 64+ 38 Merge tag 'trace-v4.7-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
# extra tests with CONFIG_DEBUG_INFO_REDUCED
git bisect bad 65e5b1e9eb3f777ab7535b74b490e882eeec79d7 # 19:14 0- 14 chrdev: allocate dynamic chardevs in all unused holes
# extra tests on HEAD of linux-devel/devel-hourly-2016052613
git bisect bad 2fe655791c0d581b2025cc0041e56ebe61fe3448 # 19:14 0- 26 0day head guard for 'devel-hourly-2016052613'
# extra tests on tree/branch gpio/chrdev-warn
git bisect bad 65e5b1e9eb3f777ab7535b74b490e882eeec79d7 # 19:14 0- 30 chrdev: allocate dynamic chardevs in all unused holes
# extra tests with first bad commit reverted
git bisect good 1d45b8c7a5bda7073cc6bd288a87d88c48c634c1 # 19:27 63+ 11 Revert "chrdev: allocate dynamic chardevs in all unused holes"
# extra tests on tree/branch linus/master
git bisect good 2f7c3a18a2dc79ddf7b83ae199b099a675e1adb2 # 19:35 66+ 66 Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
# extra tests on tree/branch linux-next/master
git bisect good 71e75a2df0fc54f7098af88856834f523169d1db # 19:41 66+ 46 Add linux-next specific files for 20160526
This script may reproduce the error.
----------------------------------------------------------------------------
#!/bin/bash
kernel=$1
initrd=yocto-minimal-x86_64.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
4 years, 7 months
[pt_regs_frame] 847e9e678b: kernel BUG at arch/x86/kernel/traps.c:548!
by kernel test robot
FYI, we noticed the following commit:
https://github.com/jpoimboe/linux pt_regs_frame
commit 847e9e678b7405e0aca737e4cc14ff3dca4628c7 ("pt_regs_frame")
on test machine: vm-kbuild-yocto-ia32: 1 threads qemu-system-x86_64 -enable-kvm -cpu Westmere with 320M memory
caused below changes:
+------------------------------------------+------------+------------+
| | b59977bb56 | 847e9e678b |
+------------------------------------------+------------+------------+
| boot_successes | 2 | 0 |
| boot_failures | 1 | 6 |
| BUG:kernel_test_crashed | 1 | |
| kernel_BUG_at_arch/x86/kernel/traps.c | 0 | 6 |
| invalid_opcode:#[##]SMP | 0 | 6 |
| RIP:fixup_bad_iret | 0 | 6 |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 6 |
+------------------------------------------+------------+------------+
[ 4.188105] Freeing unused kernel memory: 1416K (ffff880001a9e000 - ffff880001c00000)
[ 4.193916] Freeing unused kernel memory: 2008K (ffff88000200a000 - ffff880002200000)
[ 4.195810] ------------[ cut here ]------------
[ 4.196817] kernel BUG at arch/x86/kernel/traps.c:548!
[ 4.198088] invalid opcode: 0000 [#1] SMP
[ 4.199013] Modules linked in:
[ 4.199900] CPU: 0 PID: 1 Comm: init Not tainted 4.6.0-00743-g847e9e67 #1
[ 4.201152] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
[ 4.203032] task: ffff8800125b8000 ti: ffff8800125b4000 task.ti: ffff8800125b4000
[ 4.204768] RIP: 0010:[<ffffffff8105cdee>] [<ffffffff8105cdee>] fixup_bad_iret+0x54/0x60
[ 4.206646] RSP: 0000:ffff8800125b7ef8 EFLAGS: 00010046
[ 4.207720] RAX: ffff8800125b7f58 RBX: ffff8800125b7f58 RCX: ffffffff81a90ae7
[ 4.209006] RDX: 0000000000000000 RSI: ffff8800125b7f38 RDI: ffff8800125b7f58
[ 4.210298] RBP: ffff8800125b7f10 R08: 0000000000000000 R09: 0000000000000000
[ 4.211619] R10: 0000000000000000 R11: 0000000000000000 R12: ffff8800125b8000
[ 4.212904] R13: ffff8800125b7f38 R14: 0000000000000000 R15: 0000000000000000
[ 4.214199] FS: 0000000000000000(0000) GS:ffff880013600000(0000) knlGS:0000000000000000
[ 4.215992] CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033
[ 4.217125] CR2: 0000000047e70634 CR3: 000000000f359000 CR4: 00000000000006f0
[ 4.218416] Stack:
[ 4.219113] 0000000000000001 0000000000000000 0000000000000000 ffff8800125b7f20
[ 4.221106] ffffffff81a92398 ffffffff81a92045 0000000000000000 ffffffff81a925e1
[ 4.223132] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 4.225132] Call Trace:
[ 4.225877] [<ffffffff81a92398>] error_entry+0xc8/0xf0
[ 4.226945] [<ffffffff81a92045>] ? general_protection+0x15/0x40
[ 4.228109] [<ffffffff81a925e1>] ? pt_regs_frame+0x1/0x10
[ 4.229203] Code: 8d 9c 24 58 ff ff ff 48 8d bb 80 00 00 00 e8 fa 2d 49 00 ba 80 00 00 00 4c 89 ee 48 89 df e8 ea 2d 49 00 41 f6 44 24 e0 03 75 02 <0f> 0b 48 89 d8 5b 41 5c 41 5d 5d c3 66 66 66 66 90 f6 87 88 00
[ 4.237064] RIP [<ffffffff8105cdee>] fixup_bad_iret+0x54/0x60
[ 4.238276] RSP <ffff8800125b7ef8>
[ 4.239147] ---[ end trace 4196aef9117d8b2b ]---
[ 4.240149] Kernel panic - not syncing: Fatal exception
FYI, raw QEMU command line is:
qemu-system-x86_64 -enable-kvm -cpu Westmere -kernel /pkg/linux/x86_64-lkp/gcc-4.9/847e9e678b7405e0aca737e4cc14ff3dca4628c7/vmlinuz-4.6.0-00743-g847e9e67 -append 'root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-kbuild-yocto-ia32-26/bisect_boot-1-yocto-minimal-i386.cgz-x86_64-lkp-847e9e678b7405e0aca737e4cc14ff3dca4628c7-20160526-68998-d857ua-0.yaml ARCH=x86_64 kconfig=x86_64-lkp branch=linux-devel/devel-hourly-2016052519 commit=847e9e678b7405e0aca737e4cc14ff3dca4628c7 BOOT_IMAGE=/pkg/linux/x86_64-lkp/gcc-4.9/847e9e678b7405e0aca737e4cc14ff3dca4628c7/vmlinuz-4.6.0-00743-g847e9e67 max_uptime=600 RESULT_ROOT=/result/boot/1/vm-kbuild-yocto-ia32/yocto-minimal-i386.cgz/x86_64-lkp/gcc-4.9/847e9e678b7405e0aca737e4cc14ff3dca4628c7/0 LKP_SERVER=inn 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 rw ip=::::vm-kbuild-yocto-ia32-26::dhcp drbd.minor_count=8' -initrd /fs/sde1/initrd-vm-kbuild-yocto-ia32-26 -m 320 -smp 1 -device e1000,netdev=net0 -netdev user,id=net0 -boot order=nc -no-reboot -watchdog i6300esb -rtc base=localtime -drive file=/fs/sde1/disk0-vm-kbuild-yocto-ia32-26,media=disk,if=virtio -pidfile /dev/shm/kboot/pid-vm-kbuild-yocto-ia32-26 -serial file:/dev/shm/kboot/serial-vm-kbuild-yocto-ia32-26 -daemonize -display none -monitor null
Thanks,
Kernel Test Robot
4 years, 7 months
[TTY] 12e3fd8b92: WARNING: CPU: 0 PID: 1754 at drivers/tty/serial/serial_core.c:98 uart_port_check
by kernel test robot
Greetings,
0day kernel testing robot got the below dmesg and the first bad commit is
https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git devel
commit 12e3fd8b9209c6bb380ea708586fb33675f98f6d
Author: Jiri Slaby <jslaby(a)suse.cz>
AuthorDate: Wed Aug 10 18:10:55 2011 +0200
Commit: Jiri Slaby <jslaby(a)suse.cz>
CommitDate: Wed May 25 15:28:36 2016 +0200
TTY: serial, use tty_port_open
So now, the uart_open code is ready to be switched to tty_port_open
helper. This removes some duplicated and wrong code.
We can now use uart_port_startup added in the past patches. It doesn't
touch TTY flags anymore.
Signed-off-by: Jiri Slaby <jslaby(a)suse.cz>
+--------------------------------------------------------------+------------+------------+------------+
| | e360bdfbbe | 12e3fd8b92 | de173e86fb |
+--------------------------------------------------------------+------------+------------+------------+
| boot_successes | 700 | 173 | 9 |
| boot_failures | 0 | 67 | 4 |
| Out_of_memory:Kill_process | 0 | 1 | |
| WARNING:at_drivers/tty/serial/serial_core.c:#uart_port_check | 0 | 66 | 4 |
| backtrace:do_sys_open | 0 | 66 | 4 |
| backtrace:SyS_open | 0 | 66 | 4 |
| backtrace:uart_install | 0 | 0 | 4 |
| backtrace:tty_init_dev | 0 | 0 | 4 |
+--------------------------------------------------------------+------------+------------+------------+
gfs2: path_lookup on rootfs returned error -2
WARNING: 'debug_locks && !lock_is_held(&(&state->port.mutex)->dep_map)' is true!
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1754 at drivers/tty/serial/serial_core.c:98 uart_port_check+0x45/0x4f
Modules linked in:
CPU: 0 PID: 1754 Comm: S99-rc.local Not tainted 4.6.0-next-20160525-00021-g12e3fd8 #253
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
0000000000000000 ffff88002847bb80 ffffffff81794828 0000000000000000
0000000000000000 ffff88002847bbc0 ffffffff810e55f2 000000622847bb50
ffff88002b6f0000 ffff88002c058200 ffff88002808a800 00000000ffffffed
Call Trace:
[<ffffffff81794828>] dump_stack+0x82/0xb8
[<ffffffff810e55f2>] __warn+0xc2/0xdd
[<ffffffff810e56c9>] warn_slowpath_null+0x1d/0x1f
[<ffffffff8191c707>] uart_port_check+0x45/0x4f
[<ffffffff8191ca6c>] uart_open+0x36/0x8e
[<ffffffff81900a8d>] tty_open+0x2c2/0x426
[<ffffffff812280ec>] chrdev_open+0x134/0x154
[<ffffffff81227fb8>] ? cdev_put+0x23/0x23
[<ffffffff8122204e>] do_dentry_open+0x1ff/0x284
[<ffffffff81222ca8>] vfs_open+0x64/0x6d
[<ffffffff81230d4f>] path_openat+0x64c/0x897
[<ffffffff812325a6>] do_filp_open+0x4d/0xa3
[<ffffffff8111050f>] ? sched_clock_cpu+0x15/0xae
[<ffffffff82f13f7d>] ? _raw_spin_unlock+0x27/0x31
[<ffffffff8123e67d>] ? __alloc_fd+0x1b2/0x1c4
[<ffffffff81222e58>] do_sys_open+0x72/0x102
[<ffffffff81222e58>] ? do_sys_open+0x72/0x102
[<ffffffff81222f06>] SyS_open+0x1e/0x20
[<ffffffff82f1483c>] entry_SYSCALL_64_fastpath+0x1f/0xbd
[<ffffffff81122454>] ? trace_hardirqs_off_caller+0x3f/0xab
---[ end trace 4072f2482b06d426 ]---
Kernel tests: Boot OK!
git bisect start de173e86fb0e0e019f3dc99fd65f42cfc1b1bb37 08389fe28f2ce76e68fe744f513101c1348ae3ab --
git bisect bad 3bf36bf9484529072ca865c99ba73be1fff44219 # 00:10 21- 1 tty: frv, remove unused serial macros
git bisect good 2482fa3e8b6a55916e095374a9c56a7768add7f5 # 00:22 236+ 0 TTY: introduce TTY_PORT_ACTIVATED_UNINITIALIZED
git bisect bad d1be1da02234479ff462017405f1a9749d9561ba # 00:29 112- 11 tty BUF DEBUG
git bisect good e360bdfbbe93c85c2e58689bde95b36ea5739ba2 # 00:41 240+ 0 TTY: serial, use tty_port_hangup
git bisect bad 59631af9a8787768acea4a9d7a3d826b77c161e2 # 01:02 0- 24 TTY: con3215, remove tasklet for tty_wakeup
git bisect bad 12e3fd8b9209c6bb380ea708586fb33675f98f6d # 01:13 152- 42 TTY: serial, use tty_port_open
# first bad commit: [12e3fd8b9209c6bb380ea708586fb33675f98f6d] TTY: serial, use tty_port_open
git bisect good e360bdfbbe93c85c2e58689bde95b36ea5739ba2 # 01:24 697+ 0 TTY: serial, use tty_port_hangup
# extra tests with CONFIG_DEBUG_INFO_REDUCED
git bisect bad 12e3fd8b9209c6bb380ea708586fb33675f98f6d # 01:35 44- 59 TTY: serial, use tty_port_open
# extra tests on HEAD of jirislaby/devel
git bisect bad de173e86fb0e0e019f3dc99fd65f42cfc1b1bb37 # 01:35 0- 4 tty: vt, whitespace cleanup in csi_m
# extra tests on tree/branch jirislaby/devel
git bisect bad de173e86fb0e0e019f3dc99fd65f42cfc1b1bb37 # 01:36 0- 4 tty: vt, whitespace cleanup in csi_m
# extra tests on tree/branch linus/master
git bisect good 1f93d2abf488c6a41bdd5e6caf80b559493eea8d # 01:57 700+ 1 Merge git://www.linux-watchdog.org/linux-watchdog
# extra tests on tree/branch linux-next/master
git bisect good 08389fe28f2ce76e68fe744f513101c1348ae3ab # 02:09 700+ 0 Add linux-next specific files for 20160525
This script may reproduce the error.
----------------------------------------------------------------------------
#!/bin/bash
kernel=$1
initrd=yocto-minimal-x86_64.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 768
-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
4 years, 7 months
[sched] bf6579502f: WARNING: CPU: 0 PID: 1 at kernel/sched/sched.h:746 init_tg_cfs_entry
by kernel test robot
Greetings,
0day kernel testing robot got the below dmesg and the first bad commit is
https://git.linaro.org/people/vincent.guittot/kernel.git sched/pelt
commit bf6579502f1a1f5e9db84d66b9ab96d89ab5fc4d
Author: Vincent Guittot <vincent.guittot(a)linaro.org>
AuthorDate: Tue May 24 15:03:19 2016 +0200
Commit: Vincent Guittot <vincent.guittot(a)linaro.org>
CommitDate: Wed May 25 11:40:09 2016 +0200
sched: fix first task of a task group is attached twice
The cfs_rq->avg.last_update_time is intialize to 0 with the main effect
that the 1st sched_entity that will be attached, will keep its
last_update_time set to 0 and will attached once again during the
enqueue.
Initialize cfs_rq->avg.last_update_time to current rq's clock
Signed-off-by: Vincent Guittot <vincent.guittot(a)linaro.org>
+----------------------------------------------------+------------+------------+------------+
| | ef0491ea17 | bf6579502f | b4735c643c |
+----------------------------------------------------+------------+------------+------------+
| boot_successes | 63 | 0 | 0 |
| boot_failures | 0 | 22 | 13 |
| WARNING:at_kernel/sched/sched.h:#init_tg_cfs_entry | 0 | 22 | 13 |
| backtrace:init_tg_cfs_entry | 0 | 22 | 13 |
| backtrace:warn_slowpath_null | 0 | 22 | 13 |
+----------------------------------------------------+------------+------------+------------+
[ 5.332260] Freeing unused kernel memory: 1464K (ffff880001c92000 - ffff880001e00000)
[ 5.334175] Freeing unused kernel memory: 492K (ffff880002385000 - ffff880002400000)
[ 5.336189] ------------[ cut here ]------------
[ 5.336641] WARNING: CPU: 0 PID: 1 at kernel/sched/sched.h:746 init_tg_cfs_entry+0xba/0xe9
[ 5.337623] CPU: 0 PID: 1 Comm: init Not tainted 4.6.0-rc7-00127-gbf65795 #216
[ 5.338313] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
[ 5.339148] 0000000000000000 ffff880000057e08 ffffffff813f28ce 0000000000000000
[ 5.339906] ffffffff821fc339 ffff880000057e48 ffffffff8107933e 000002ea00057e98
[ 5.340668] ffff88000d37f100 ffff88000d37f000 0000000000000000 ffff88000fbd5e80
[ 5.341471] Call Trace:
[ 5.341715] [<ffffffff813f28ce>] dump_stack+0x61/0x7e
[ 5.342208] [<ffffffff8107933e>] __warn+0xb3/0xce
[ 5.342666] [<ffffffff81079406>] warn_slowpath_null+0x18/0x1a
[ 5.343247] [<ffffffff810a3679>] init_tg_cfs_entry+0xba/0xe9
[ 5.343796] [<ffffffff810a37bc>] alloc_fair_sched_group+0x114/0x146
[ 5.344435] [<ffffffff8109b092>] sched_create_group+0x2e/0x5c
[ 5.345036] [<ffffffff810a98f5>] sched_autogroup_create_attach+0x35/0x174
[ 5.345694] [<ffffffff81088121>] sys_setsid+0xda/0xe6
[ 5.346192] [<ffffffff81c8a536>] entry_SYSCALL_64_fastpath+0x1e/0xad
[ 5.346837] ---[ end trace 5189724afdab22eb ]---
[ 5.349205] ------------[ cut here ]------------
git bisect start b4735c643ca9cafd64ee250969d90c1e66038573 ef0491ea17f8019821c7e9c8e801184ecf17f85a --
git bisect bad bf6579502f1a1f5e9db84d66b9ab96d89ab5fc4d # 19:52 0- 22 sched: fix first task of a task group is attached twice
# first bad commit: [bf6579502f1a1f5e9db84d66b9ab96d89ab5fc4d] sched: fix first task of a task group is attached twice
git bisect good ef0491ea17f8019821c7e9c8e801184ecf17f85a # 19:54 63+ 0 ARM: Hide finish_arch_post_lock_switch() from modules
# extra tests with CONFIG_DEBUG_INFO_REDUCED
git bisect bad bf6579502f1a1f5e9db84d66b9ab96d89ab5fc4d # 20:04 0- 38 sched: fix first task of a task group is attached twice
# extra tests on HEAD of vincent.guittot/sched/pelt
git bisect bad b4735c643ca9cafd64ee250969d90c1e66038573 # 20:04 0- 13 sched: reflect sched_entity movement into task_group's utilization
# extra tests on tree/branch vincent.guittot/sched/pelt
git bisect bad b4735c643ca9cafd64ee250969d90c1e66038573 # 20:04 0- 13 sched: reflect sched_entity movement into task_group's utilization
# extra tests with first bad commit reverted
git bisect good 180808ce9465b19908cb5b0932f32d15cd42969c # 20:14 60+ 0 Revert "sched: fix first task of a task group is attached twice"
# extra tests on tree/branch linus/master
git bisect good 28165ec7a99be98123aa89540bf2cfc24df19498 # 20:16 61+ 0 Merge tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
# extra tests on tree/branch linux-next/master
git bisect good 66c198deda3725c57939c6cdaf2c9f5375cd79ad # 20:18 62+ 0 Add linux-next specific files for 20160524
This script may reproduce the error.
----------------------------------------------------------------------------
#!/bin/bash
kernel=$1
initrd=yocto-minimal-x86_64.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
4 years, 7 months
867853145c: BUG: unable to handle kernel NULL pointer dereference at (null)
by kernel test robot
Greetings,
0day kernel testing robot got the below dmesg and the first bad commit is
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
commit 867853145cea25491054ef067ff8af8946f37e2d
Merge: 4bf284b 2441e78
Author: Michal Marek <mmarek(a)suse.com>
AuthorDate: Tue Apr 26 13:20:18 2016 +0200
Commit: Michal Marek <mmarek(a)suse.com>
CommitDate: Tue Apr 26 13:20:18 2016 +0200
Merge branch 'kbuild/kbuild' into kbuild/for-next
+------------------------------------------+------------+------------+------------+------------+
| | 4bf284b277 | 2441e78b19 | 867853145c | f490734437 |
+------------------------------------------+------------+------------+------------+------------+
| boot_successes | 63 | 63 | 0 | 0 |
| boot_failures | 0 | 0 | 22 | 13 |
| BUG:unable_to_handle_kernel | 0 | 0 | 22 | 13 |
| Oops | 0 | 0 | 22 | 13 |
| RIP:strcpy | 0 | 0 | 22 | 13 |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 0 | 22 | 13 |
| backtrace:of_unittest | 0 | 0 | 22 | 13 |
| backtrace:kernel_init_freeable | 0 | 0 | 22 | 13 |
+------------------------------------------+------------+------------+------------+------------+
[ 24.609622] hd: no drives specified - use hd=cyl,head,sectors on kernel command line
[ 24.611486] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[ 24.612525] EDD information not available.
[ 24.614384] BUG: unable to handle kernel NULL pointer dereference at (null)
[ 24.615776] IP: [<ffffffff817f158b>] strcpy+0xb/0x50
[ 24.616700] PGD 0
[ 24.617128] Oops: 0000 [#1] PREEMPT
[ 24.617819] CPU: 0 PID: 1 Comm: swapper Not tainted 4.6.0-qxl-06423-gbac2892 #2
[ 24.619079] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
[ 24.620591] task: ffff8800002bc000 ti: ffff880000330000 task.ti: ffff880000330000
[ 24.621943] RIP: 0010:[<ffffffff817f158b>] [<ffffffff817f158b>] strcpy+0xb/0x50
[ 24.623264] RSP: 0000:ffff8800003339d8 EFLAGS: 00010297
[ 24.624181] RAX: ffff88000c4600a8 RBX: ffff88000c4600a8 RCX: 0000000000000000
[ 24.625395] RDX: 000000000000a2a1 RSI: 0000000000000000 RDI: ffff88000c4600a8
[ 24.626623] RBP: ffff880000333d80 R08: 0000000000000001 R09: ffff88000c460000
[ 24.627847] R10: 0000000000000001 R11: 0000000000000000 R12: ffffffff82aa7620
[ 24.629062] R13: ffff88000c4600a8 R14: ffff880000333e08 R15: ffff88000c4600aa
[ 24.630281] FS: 0000000000000000(0000) GS:ffffffff8264a000(0000) knlGS:0000000000000000
[ 24.631651] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 24.632635] CR2: 0000000000000000 CR3: 000000000260c000 CR4: 00000000000006f0
[ 24.633856] Stack:
[ 24.634218] ffff880000333d80 ffffffff81d5722a 0000000000011c48 ffff880000333e08
[ 24.635584] 000000010fcc5390 0000000000000000 ffffffff824d0a08 ffff88000c1d9e98
[ 24.636954] 0000000000000001 0000000000011b20 ffff88000c460000 ffff88000c460000
[ 24.638323] Call Trace:
[ 24.638764] [<ffffffff81d5722a>] ? unflatten_dt_nodes+0x8da/0xb90
[ 24.639836] [<ffffffff811fe396>] ? ftrace_likely_update+0x56/0x2b0
[ 24.640932] [<ffffffff81250a04>] ? get_page_from_freelist+0x4f4/0x15b0
[ 24.642068] [<ffffffff811fe396>] ? ftrace_likely_update+0x56/0x2b0
[ 24.643190] [<ffffffff811fe396>] ? ftrace_likely_update+0x56/0x2b0
[ 24.644310] [<ffffffff811fe396>] ? ftrace_likely_update+0x56/0x2b0
[ 24.645405] [<ffffffff811fe396>] ? ftrace_likely_update+0x56/0x2b0
[ 24.646525] [<ffffffff812517fb>] ? get_page_from_freelist+0x12eb/0x15b0
[ 24.647679] [<ffffffff811fe300>] ? disable_branch_tracing+0x50/0x70
[ 24.648776] [<ffffffff811fe396>] ? ftrace_likely_update+0x56/0x2b0
[ 24.649864] [<ffffffff81251e33>] ? __alloc_pages_nodemask+0x373/0x15c0
[ 24.651059] [<ffffffff8181e3a3>] ? check_preemption_disabled+0x53/0x190
[ 24.652208] [<ffffffff8114d571>] ? __lock_acquire+0x261/0xf20
[ 24.653311] [<ffffffff811fe396>] ? ftrace_likely_update+0x56/0x2b0
[ 24.654445] [<ffffffff81d56817>] ? kernel_tree_alloc+0x27/0x40
[ 24.655469] [<ffffffff812b6ed5>] ? __kmalloc+0x145/0x460
[ 24.656433] [<ffffffff81d575b9>] __unflatten_device_tree+0xd9/0x160
[ 24.657583] [<ffffffff81d57a8f>] of_fdt_unflatten_tree+0x4f/0x80
[ 24.658764] [<ffffffff82be25ac>] of_unittest+0xd1/0x259b
[ 24.659769] [<ffffffff82be24db>] ? of_unittest_platform_populate+0x587/0x587
[ 24.661029] [<ffffffff82b559dc>] do_one_initcall+0x1b1/0x302
[ 24.662060] [<ffffffff82b55d30>] kernel_init_freeable+0x203/0x32d
[ 24.663164] [<ffffffff81ea2c90>] kernel_init+0x20/0x240
[ 24.664106] [<ffffffff81eb02cf>] ret_from_fork+0x1f/0x40
[ 24.665048] [<ffffffff81ea2c70>] ? rest_init+0x130/0x130
[ 24.665987] Code: 17 02 01 8d 52 20 0f b6 d2 39 d0 74 b0 29 d0 48 83 05 39 79 17 02 01 5d c3 0f 1f 80 00 00 00 00 48 8b 15 41 79 17 02 55 48 89 f8 <0f> b6 0e 48 89 e5 49 89 d0 49 f7 d8 4c 01 c6 49 01 f8 84 c9 88
[ 24.670987] RIP [<ffffffff817f158b>] strcpy+0xb/0x50
[ 24.671893] RSP <ffff8800003339d8>
[ 24.672500] CR2: 0000000000000000
[ 24.673093] ---[ end trace ac4a8162da5e779d ]---
[ 24.673893] Kernel panic - not syncing: Fatal exception
git bisect start f490734437e838c49921e7a8ec1a887d36b0cb14 2dcd0af568b0cf583645c8a317dd12e344b1c72a --
git bisect bad 4e3ac701d37537f47cf4e8c051634fd6ae0ea524 # 03:36 0- 4 Merge 'linux-review/Bin-Liu/musb-fixes-for-v4-7-rc1/20160509-215819' into devel-hourly-2016051702
git bisect bad da756d10374b4339984e25c053526bab5279a05c # 03:44 0- 5 Merge 'linux-review/Stephen-Boyd/msm_serial-cleanups/20160512-090700' into devel-hourly-2016051702
git bisect good 8965cdd2b81e431c78fa9ad7f15f14e4485cc39c # 03:56 18+ 0 Merge 'kees/seccomp/tests' into devel-hourly-2016051702
git bisect bad 453eba1192c10d54bc4f1db55ef32233c495e8fa # 04:01 0- 1 Merge 'linux-review/Peter-Rosin/ASoC-MAX9860-new-driver/20160513-153018' into devel-hourly-2016051702
git bisect bad 543fae0bdb5f86713751e26164004db86e0056d3 # 04:06 0- 7 Merge 'kees/seccomp/report' into devel-hourly-2016051702
git bisect good 77095d88c3a76ca12237b7301e06c76689848d2f # 04:15 21+ 4 Merge 'kees/kbuild/no-android' into devel-hourly-2016051702
git bisect good 84c6298d7612e34a64de0e98b6b8d06fe026615b # 04:26 22+ 0 Merge 'linux-review/Alexey-Brodkin/arc-axs103_smp-Fix-CPU-frequency-to-100MHz-for-dual-core/20160516-180145' into devel-hourly-2016051702
git bisect bad 4c61a3729f14604d1e20bcd8c3ad991b6f13096f # 04:31 0- 8 Merge 'omap/for-next' into devel-hourly-2016051702
git bisect bad bac28921a3bc1ad30ca816288e11db0437ecf297 # 04:35 0- 1 Merge 'linux-review/Vineet-Gupta/scripts-bloat-o-meter-print-percent-change/20160513-152445' into devel-hourly-2016051702
git bisect bad 867853145cea25491054ef067ff8af8946f37e2d # 04:41 0- 3 Merge branch 'kbuild/kbuild' into kbuild/for-next
git bisect good fe69b420d39d307cfe2cba875dc1dbf668877198 # 04:48 21+ 0 kbuild: mark help target as PHONY
git bisect good ba79d401f1aee52186ff09607e9405cfb805307d # 04:56 20+ 0 kbuild: fix call to adjust_autoksyms.sh when output directory specified
git bisect good 27c3bffd230abd0a598586aed0fe0ba7b61e0e2e # 05:04 21+ 0 kbuild/mkspec: support 'update-bootloader'-based systems
git bisect good 4bf284b27780335e827a1e39262ff664db6e548c # 05:12 21+ 0 Merge branch 'kbuild/misc' into kbuild/for-next
git bisect good 2441e78b19192cd9ea1ce93027a5732a2117f026 # 05:19 22+ 0 kbuild: better abstract vmlinux sequential prerequisites
# first bad commit: [867853145cea25491054ef067ff8af8946f37e2d] Merge branch 'kbuild/kbuild' into kbuild/for-next
git bisect good 4bf284b27780335e827a1e39262ff664db6e548c # 05:22 61+ 0 Merge branch 'kbuild/misc' into kbuild/for-next
git bisect good 2441e78b19192cd9ea1ce93027a5732a2117f026 # 05:26 61+ 0 kbuild: better abstract vmlinux sequential prerequisites
# extra tests with DEBUG_INFO
git bisect good 867853145cea25491054ef067ff8af8946f37e2d # 05:36 66+ 0 Merge branch 'kbuild/kbuild' into kbuild/for-next
# extra tests on HEAD of linux-devel/devel-hourly-2016051702
git bisect bad f490734437e838c49921e7a8ec1a887d36b0cb14 # 05:36 0- 13 0day head guard for 'devel-hourly-2016051702'
# extra tests on tree/branch linux-next/master
# extra tests on tree/branch linus/master
git bisect good 6eb59af580dcffc6f6982ac8ef6d27a1a5f26b27 # 05:47 63+ 0 Merge tag 'mfd-for-linus-4.7' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd
# extra tests on tree/branch linux-next/master
This script may reproduce the error.
----------------------------------------------------------------------------
#!/bin/bash
kernel=$1
initrd=yocto-minimal-x86_64.cgz
wget --no-clobber https://github.com/fengguang/reproduce-kernel-bug/raw/master/initrd/$initrd
kvm=(
qemu-system-x86_64
-enable-kvm
-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
4 years, 7 months
847e9e678b: kernel BUG at arch/x86/kernel/traps.c:548!
by kernel test robot
Greetings,
0day kernel testing robot got the below dmesg and the first bad commit is
https://github.com/jpoimboe/linux pt_regs_frame
commit 847e9e678b7405e0aca737e4cc14ff3dca4628c7
Author: Josh Poimboeuf <jpoimboe(a)redhat.com>
AuthorDate: Thu May 19 16:02:17 2016 -0500
Commit: Josh Poimboeuf <jpoimboe(a)redhat.com>
CommitDate: Tue May 24 23:16:01 2016 -0500
pt_regs_frame
+-----------------------------------------------------------+------------+------------+------------+
| | b59977bb56 | 847e9e678b | ce585afa4f |
+-----------------------------------------------------------+------------+------------+------------+
| boot_successes | 82 | 0 | 0 |
| boot_failures | 108 | 22 | 13 |
| Kernel_panic-not_syncing:Attempted_to_kill_init!exitcode= | 108 | 17 | |
| kernel_BUG_at_arch/x86/kernel/traps.c | 0 | 5 | 13 |
| RIP:fixup_bad_iret | 0 | 5 | 13 |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 5 | 13 |
+-----------------------------------------------------------+------------+------------+------------+
[main] Added 7014 filenames from /proc
[main] Added 8776 filenames from /sys
[ 18.437645] ------------[ cut here ]------------
[ 18.438168] kernel BUG at arch/x86/kernel/traps.c:548!
[ 18.438907] invalid opcode: 0000 [#1]
[ 18.439298] Modules linked in:
[ 18.439645] CPU: 0 PID: 11964 Comm: trinity-c0 Not tainted 4.6.0-00743-g847e9e67 #2
[ 18.440454] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
[ 18.441393] task: ffff880011b68540 ti: ffff88000a6ac000 task.ti: ffff88000a6ac000
[ 18.442192] RIP: 0010:[<ffffffff8662a35d>] [<ffffffff8662a35d>] fixup_bad_iret+0x6d/0x80
[ 18.443070] RSP: 0000:ffff88000a6afef8 EFLAGS: 00010002
[ 18.443634] RAX: ffff88000a6aff58 RBX: ffff88000a6aff58 RCX: ffffffff86f3e2e0
[ 18.444376] RDX: 0000000000000000 RSI: ffff88000a6aff38 RDI: ffff88000a6aff58
[ 18.445124] RBP: ffff88000a6aff10 R08: 00000000000000c9 R09: 0000000000000000
[ 18.445870] R10: 0000000000000000 R11: 800000007fffffff R12: ffff88000a6b0000
[ 18.446620] R13: ffff88000a6aff38 R14: 0000000000000000 R15: 00000000000000c9
[ 18.447383] FS: 00007fb6137c8700(0000) GS:ffffffff87648000(0000) knlGS:0000000000000000
[ 18.448230] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 18.448840] CR2: 0000000000000004 CR3: 000000000a6aa000 CR4: 00000000000006b0
[ 18.449585] DR0: 00007fea8b43f000 DR1: 0000000000000000 DR2: 0000000000000000
[ 18.450333] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
[ 18.451086] Stack:
[ 18.451309] 0000000000000001 800000007fffffff 0000000000000000 ffff88000a6aff20
[ 18.452156] ffffffff86f3eec8 ffffffff86f3ec35 0000000000000000 ffffffff86f3f111
[ 18.453004] 00000000000000c9 0000000000000000 0000000000000000 800000007fffffff
[ 18.453842] Call Trace:
[ 18.454114] [<ffffffff86f3eec8>] error_entry+0xc8/0xf0
[ 18.454665] [<ffffffff86f3ec35>] ? general_protection+0x15/0x40
[ 18.455304] [<ffffffff86f3f111>] ? pt_regs_frame+0x1/0x10
[ 18.455882] Code: ee 48 89 df e8 85 d1 37 00 41 f6 44 24 e0 03 74 12 48 89 d8 48 83 05 fa d8 42 01 01 5b 41 5c 41 5d 5d c3 48 83 05 e3 d8 42 01 01 <0f> 0b 48 83 05 e9 d8 42 01 01 66 0f 1f 84 00 00 00 00 00 55 48
[ 18.458938] RIP [<ffffffff8662a35d>] fixup_bad_iret+0x6d/0x80
[ 18.459584] RSP <ffff88000a6afef8>
[ 18.459961] ---[ end trace 5566976d323d5c57 ]---
[ 18.460445] Kernel panic - not syncing: Fatal exception
git bisect start ce585afa4fff812ff998fb8e257c1abd5bdef7e0 e280fff4dbae8ecdb99fb8bc610890e08e00a799 --
git bisect bad a8fe59a2de52b6353f2a6e26cc859699f03b2838 # 14:01 0- 22 Merge 'linux-review/Bartlomiej-Zolnierkiewicz/clk-samsung-add-Exynos5433-CPU-clocks/20160525-122607' into devel-catchup-201605251229
git bisect good 822b87714333445bde82f42e7e91491d4d3877f2 # 14:06 22+ 13 Merge 'linux-review/Javier-Martinez-Canillas/ARM-dts-Fix-imprecise-external-abort-error-when-accessing-Exynos-MFC/20160525-121522' into devel-catchup-201605251229
git bisect good ffaad64a677950dd24388be539f5e0ba8fca0888 # 14:11 21+ 21 Merge 'linux-review/Rafa-Mi-ecki/brcmfmac-print-error-in-p2p_ifadd-firmware-command-fails/20160525-121159' into devel-catchup-201605251229
git bisect bad 719da4c4780e8abaa6d6462f4769896368fa9225 # 14:15 0- 22 Merge 'jpoimboe/pt_regs_frame' into devel-catchup-201605251229
git bisect good bc231d9ede99518b67a77544d9084f15b898fe2e # 14:21 21+ 0 Merge branch 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect good 139f278f8e96885cb571ca57e93f89a4f16deb09 # 14:27 22+ 17 Merge branch 'core/urgent'
git bisect good 82703d01cc5f2e1689250903d0f5c19aa988489f # 14:32 22+ 0 Merge branch 'perf/urgent'
git bisect good 7395f7aef26ec508ca8b3023719149118cd04462 # 14:36 22+ 12 Merge branch 'x86/urgent'
git bisect good b59977bb561bc057156a132c46880252a168e64e # 14:38 22+ 7 Merge branch 'perf/urgent'
git bisect bad 847e9e678b7405e0aca737e4cc14ff3dca4628c7 # 14:44 17- 21 pt_regs_frame
# first bad commit: [847e9e678b7405e0aca737e4cc14ff3dca4628c7] pt_regs_frame
git bisect good b59977bb561bc057156a132c46880252a168e64e # 14:49 164+ 108 Merge branch 'perf/urgent'
# extra tests with CONFIG_DEBUG_INFO_REDUCED
git bisect bad 847e9e678b7405e0aca737e4cc14ff3dca4628c7 # 14:54 0- 25 pt_regs_frame
# extra tests on HEAD of linux-devel/devel-catchup-201605251229
git bisect bad ce585afa4fff812ff998fb8e257c1abd5bdef7e0 # 14:54 0- 13 0day head guard for 'devel-catchup-201605251229'
# extra tests on tree/branch jpoimboe/pt_regs_frame
git bisect bad 847e9e678b7405e0aca737e4cc14ff3dca4628c7 # 14:56 0- 22 pt_regs_frame
# extra tests with first bad commit reverted
git bisect good 86ee53b02de8bb666ca8e4df636c7ee11607cdcc # 15:05 166+ 64 Revert "pt_regs_frame"
# extra tests on tree/branch linus/master
git bisect good 28165ec7a99be98123aa89540bf2cfc24df19498 # 15:08 162+ 109 Merge tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
# extra tests on tree/branch linux-next/master
git bisect good 66c198deda3725c57939c6cdaf2c9f5375cd79ad # 15:13 156+ 19 Add linux-next specific files for 20160524
This script may reproduce the error.
----------------------------------------------------------------------------
#!/bin/bash
kernel=$1
initrd=quantal-core-x86_64.cgz
wget --no-clobber https://github.com/fengguang/reproduce-kernel-bug/raw/master/initrd/$initrd
kvm=(
qemu-system-x86_64
-enable-kvm
-cpu kvm64
-kernel $kernel
-initrd $initrd
-m 300
-smp 2
-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
4 years, 7 months
[x86/cpufeature] 7b5e74e637: BUG: unable to handle kernel paging request at 6b636170
by kernel test robot
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 <bp(a)suse.de>
AuthorDate: Tue Mar 29 17:41:54 2016 +0200
Commit: Ingo Molnar <mingo(a)kernel.org>
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 <bp(a)suse.de>
Cc: Linus Torvalds <torvalds(a)linux-foundation.org>
Cc: Peter Zijlstra <peterz(a)infradead.org>
Cc: Thomas Gleixner <tglx(a)linutronix.de>
Cc: oprofile-list(a)lists.sf.net
Link: http://lkml.kernel.org/r/1459266123-21878-2-git-send-email-bp@alien8.de
Signed-off-by: Ingo Molnar <mingo(a)kernel.org>
+------------------------------------------+------------+------------+------------+
| | 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
4 years, 7 months
[rcutorture] 8704baab9b: WARNING: CPU: 0 PID: 30 at kernel/rcu/rcuperf.c:363 rcu_perf_writer
by kernel test robot
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 8704baab9bc848b58c129fed6b591bb84ec02f41
Author: Paul E. McKenney <paulmck(a)linux.vnet.ibm.com>
AuthorDate: Thu Dec 31 18:33:22 2015 -0800
Commit: Paul E. McKenney <paulmck(a)linux.vnet.ibm.com>
CommitDate: Thu Mar 31 13:37:38 2016 -0700
rcutorture: Add RCU grace-period performance tests
This commit adds a new rcuperf module that carries out simple performance
tests of RCU grace periods.
Signed-off-by: Paul E. McKenney <paulmck(a)linux.vnet.ibm.com>
+-------------------------------------------------------+------------+------------+------------+
| | 291783b8ad | 8704baab9b | ce82e4a05f |
+-------------------------------------------------------+------------+------------+------------+
| boot_successes | 57 | 0 | 0 |
| boot_failures | 6 | 22 | 13 |
| BUG:unable_to_handle_kernel | 6 | 22 | |
| Oops | 6 | 22 | |
| EIP_is_at_get_perf_callchain | 6 | | |
| Kernel_panic-not_syncing:Fatal_exception | 5 | 22 | |
| backtrace:acpi_get_cpuid | 6 | 22 | 13 |
| backtrace:early_init_pdc | 6 | 22 | 13 |
| backtrace:acpi_early_processor_set_pdc | 6 | 22 | 13 |
| backtrace:acpi_init | 6 | 22 | 13 |
| backtrace:kernel_init_freeable | 6 | 22 | 13 |
| Kernel_panic-not_syncing:Fatal_exception_in_interrupt | 1 | | |
| backtrace:vfs_fstatat | 2 | | |
| backtrace:SyS_fstatat64 | 2 | | |
| backtrace:SYSC_socketcall | 2 | | |
| backtrace:SyS_socketcall | 2 | 0 | 6 |
| WARNING:at_kernel/rcu/rcuperf.c:#rcu_perf_writer | 0 | 22 | 13 |
| BUG:spinlock_bad_magic_on_CPU | 0 | 22 | |
| BUG:spinlock_lockup_suspected_on_CPU | 0 | 22 | |
| EIP_is_at__wake_up_common | 0 | 22 | |
| backtrace:rcu_perf_writer | 0 | 22 | 13 |
| backtrace:sock_setsockopt | 0 | 0 | 6 |
| backtrace:rht_deferred_worker | 0 | 0 | 3 |
+-------------------------------------------------------+------------+------------+------------+
[ 1.054065] CPU: 0 PID: 1 Comm: swapper Not tainted 4.6.0-rc1-00005-g8704baa #3
[ 1.054065] CPU: 0 PID: 1 Comm: swapper Not tainted 4.6.0-rc1-00005-g8704baa #3
[ 1.062485] ffffffff
[ 1.062485] ffffffff cf03bc70 cf03bc70 cf03bc50 cf03bc50 c15192fc c15192fc cf03bc5c cf03bc5c c157a45b c157a45b c1ed4940 c1ed4940 cf03bcac cf03bcac
[ 1.064620] c157aa41
[ 1.064620] c157aa41 c1bba04c c1bba04c cf03bc74 cf03bc74 c1ed4958 c1ed4958 00000202 00000202 c100312d c100312d cf03bc80 cf03bc80 c10ab3fb c10ab3fb
[ 1.066740] cf03bc90
[ 1.066740] cf03bc90 00000203 00000203 cf0a8634 cf0a8634 00000382 00000382 cf03bcc4 cf03bcc4 c11a701a c11a701a 00000010 00000010 eb0e29d5 eb0e29d5
[ 1.068833] Call Trace:
[ 1.068833] Call Trace:
[ 1.072825] [<c15192fc>] dump_stack+0x16/0x1a
[ 1.072825] [<c15192fc>] dump_stack+0x16/0x1a
[ 1.073958] [<c157a45b>] ubsan_epilogue+0xb/0x40
[ 1.073958] [<c157a45b>] ubsan_epilogue+0xb/0x40
[ 1.075151] [<c157aa41>] __ubsan_handle_out_of_bounds+0x61/0x80
[ 1.075151] [<c157aa41>] __ubsan_handle_out_of_bounds+0x61/0x80
[ 1.080046] [<c100312d>] ? allocate_fake_cpuc+0x7d/0x90
[ 1.080046] [<c100312d>] ? allocate_fake_cpuc+0x7d/0x90
[ 1.081379] [<c10ab3fb>] ? trace_hardirqs_on+0xb/0x10
[ 1.081379] [<c10ab3fb>] ? trace_hardirqs_on+0xb/0x10
[ 1.086052] [<c11a701a>] ? slob_free+0x15a/0xa00
[ 1.086052] [<c11a701a>] ? slob_free+0x15a/0xa00
[ 1.087383] [<c15c74a1>] acpi_ds_create_operand+0x20b/0x294
[ 1.087383] [<c15c74a1>] acpi_ds_create_operand+0x20b/0x294
[ 1.088807] [<c11a78fd>] ? __kmem_cache_free+0x3d/0x60
[ 1.088807] [<c11a78fd>] ? __kmem_cache_free+0x3d/0x60
[ 1.095377] [<c15c7621>] acpi_ds_create_operands+0xf7/0x139
[ 1.095377] [<c15c7621>] acpi_ds_create_operands+0xf7/0x139
[ 1.096857] [<c15b35cb>] ? acpi_os_release_object+0x8/0xc
[ 1.096857] [<c15b35cb>] ? acpi_os_release_object+0x8/0xc
[ 1.098240] [<c15e8151>] ? acpi_ut_delete_generic_state+0x13/0x15
[ 1.098240] [<c15e8151>] ? acpi_ut_delete_generic_state+0x13/0x15
[ 1.103056] [<c15de983>] ? acpi_ps_pop_scope+0xb4/0x109
[ 1.103056] [<c15de983>] ? acpi_ps_pop_scope+0xb4/0x109
[ 1.104415] [<c15c7bea>] acpi_ds_exec_end_op+0xe2/0x4b5
[ 1.104415] [<c15c7bea>] acpi_ds_exec_end_op+0xe2/0x4b5
[ 1.105758] [<c15dd795>] acpi_ps_parse_loop+0x62a/0x67b
[ 1.105758] [<c15dd795>] acpi_ps_parse_loop+0x62a/0x67b
[ 1.111694] [<c15e4efd>] ? acpi_ut_remove_reference+0x25/0x28
[ 1.111694] [<c15e4efd>] ? acpi_ut_remove_reference+0x25/0x28
[ 1.115077] [<c15c5740>] ? acpi_ds_call_control_method+0x12e/0x193
[ 1.115077] [<c15c5740>] ? acpi_ds_call_control_method+0x12e/0x193
[ 1.116701] [<c15de5aa>] acpi_ps_parse_aml+0x95/0x280
[ 1.116701] [<c15de5aa>] acpi_ps_parse_aml+0x95/0x280
[ 1.118003] [<c15defbe>] acpi_ps_execute_method+0x1a8/0x1d8
[ 1.118003] [<c15defbe>] acpi_ps_execute_method+0x1a8/0x1d8
[ 1.122790] [<c15d82ec>] acpi_ns_evaluate+0x1ee/0x265
[ 1.122790] [<c15d82ec>] acpi_ns_evaluate+0x1ee/0x265
[ 1.124103] [<c11a6da7>] ? __kmalloc+0x87/0xc0
[ 1.124103] [<c11a6da7>] ? __kmalloc+0x87/0xc0
[ 1.125252] [<c15db7b8>] acpi_evaluate_object+0x106/0x1fc
[ 1.125252] [<c15db7b8>] acpi_evaluate_object+0x106/0x1fc
[ 1.130015] [<c104e5a5>] ? __phys_addr+0x45/0xe0
[ 1.130015] [<c104e5a5>] ? __phys_addr+0x45/0xe0
[ 1.131213] [<c15bbbaa>] acpi_get_phys_id+0x32/0x1e2
[ 1.131213] [<c15bbbaa>] acpi_get_phys_id+0x32/0x1e2
[ 1.132498] [<c15bbd85>] acpi_get_cpuid+0xb/0x15
[ 1.132498] [<c15bbd85>] acpi_get_cpuid+0xb/0x15
[ 1.139651] [<c20acdd7>] early_init_pdc+0x81/0x95
[ 1.139651] [<c20acdd7>] early_init_pdc+0x81/0x95
[ 1.140858] [<c15db5b5>] acpi_ns_walk_namespace+0xe0/0x1b0
[ 1.140858] [<c15db5b5>] acpi_ns_walk_namespace+0xe0/0x1b0
[ 1.142265] [<c15db983>] acpi_walk_namespace+0x76/0xa0
[ 1.142265] [<c15db983>] acpi_walk_namespace+0x76/0xa0
[ 1.147523] [<c20acd56>] ? acpi_processor_init+0x1e/0x1e
[ 1.147523] [<c20acd56>] ? acpi_processor_init+0x1e/0x1e
[ 1.148887] [<c20ac671>] ? acpi_sleep_proc_init+0x23/0x23
[ 1.148887] [<c20ac671>] ? acpi_sleep_proc_init+0x23/0x23
[ 1.151511] [<c20ace09>] acpi_early_processor_set_pdc+0x1e/0x36
[ 1.151511] [<c20ace09>] acpi_early_processor_set_pdc+0x1e/0x36
[ 1.154926] [<c20acd56>] ? acpi_processor_init+0x1e/0x1e
[ 1.154926] [<c20acd56>] ? acpi_processor_init+0x1e/0x1e
[ 1.158862] [<c20ac790>] acpi_init+0x11f/0x24d
[ 1.158862] [<c20ac790>] acpi_init+0x11f/0x24d
[ 1.160046] [<c20ac671>] ? acpi_sleep_proc_init+0x23/0x23
[ 1.160046] [<c20ac671>] ? acpi_sleep_proc_init+0x23/0x23
[ 1.161436] [<c100046c>] do_one_initcall+0xbc/0x280
[ 1.161436] [<c100046c>] do_one_initcall+0xbc/0x280
[ 1.165551] [<c20ac671>] ? acpi_sleep_proc_init+0x23/0x23
[ 1.165551] [<c20ac671>] ? acpi_sleep_proc_init+0x23/0x23
[ 1.167510] [<c10887be>] ? parse_args+0x1ce/0x5e0
[ 1.167510] [<c10887be>] ? parse_args+0x1ce/0x5e0
[ 1.168729] [<c20860b4>] kernel_init_freeable+0x2a6/0x330
[ 1.168729] [<c20860b4>] kernel_init_freeable+0x2a6/0x330
[ 1.173486] [<c19a5989>] kernel_init+0x9/0x100
[ 1.173486] [<c19a5989>] kernel_init+0x9/0x100
[ 1.174646] [<c19af048>] ret_from_kernel_thread+0x20/0x34
[ 1.174646] [<c19af048>] ret_from_kernel_thread+0x20/0x34
[ 1.179417] [<c19a5980>] ? rest_init+0x140/0x140
[ 1.179417] [<c19a5980>] ? rest_init+0x140/0x140
[ 1.180614] ================================================================================
[ 1.180614] ================================================================================
[ 1.187188] ACPI: Interpreter enabled
git bisect start ce82e4a05fa751f5af6ddfe2bd120f0020099104 2dcd0af568b0cf583645c8a317dd12e344b1c72a --
git bisect good e5ebef3c782fea8f8a9c6e11e1f16601ba543c2a # 08:54 22+ 0 Merge 'jkirsher-next-queue/dev-queue' into devel-catchup-201605220757
git bisect bad 78a17208ca3379e972d5c6d5696d22992781c93b # 09:00 0- 3 Merge 'rcu/dev.2016.05.18a' into devel-catchup-201605220757
git bisect good 261ccfd569fda81e8892e9ecfb9fbd1e7fb5416e # 09:05 22+ 0 Merge 'linux-nvdimm/libnvdimm-for-next' into devel-catchup-201605220757
git bisect bad d9dce51c9b77b803348c787165a884b6e11011f0 # 09:10 0- 2 Merge tag 'regulator-v4.7' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator
git bisect bad cf6ed9a6682d3f171cf9550d4bbe0ef31b768a7e # 09:16 0- 1 Merge branch 'ras-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect good 0b3c2264ae30ed692fd1ffd2b84c5fbdf737cb0d # 09:21 22+ 1 perf symbols: Fix kallsyms perf test on ppc64le
git bisect bad 49817c33433a3cd6f320b13699e6746cc39b453b # 09:25 0- 1 Merge branch 'efi-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect bad 41ed943d855c3fa2bf6fecc33250b294bd568b7a # 09:30 0- 1 Merge branch 'for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu into core/rcu
git bisect bad a54062c0d95921d4fb0edc8d268021bf387e6c75 # 09:34 0- 8 rcutorture: Add boot-time adjustment of leaf fanout
git bisect bad df37e66bfdbb57e8cae7dbf39a0c66b1b8701338 # 09:39 0- 22 rcutorture: Add rcuperf holdoff boot parameter to reduce interference
git bisect bad bdea9e347783c2724997db7c5d5b45a301e2dc90 # 09:46 0- 1 rcutorture: Documentation for rcuperf kernel parameters
git bisect good fd35be623a1534bde57029c429b206d6c22a1ef6 # 09:55 22+ 0 rcutorture: Update scripting to accommodate rcuperf
git bisect good 291783b8ad77a83a6fdf91d55eee7f1ad72ed4d1 # 10:07 20+ 0 rcutorture: Expedited-GP batch progress access to torturing
git bisect bad 8704baab9bc848b58c129fed6b591bb84ec02f41 # 10:14 0- 7 rcutorture: Add RCU grace-period performance tests
# first bad commit: [8704baab9bc848b58c129fed6b591bb84ec02f41] rcutorture: Add RCU grace-period performance tests
git bisect good 291783b8ad77a83a6fdf91d55eee7f1ad72ed4d1 # 10:18 63+ 6 rcutorture: Expedited-GP batch progress access to torturing
# extra tests with DEBUG_INFO
git bisect bad 8704baab9bc848b58c129fed6b591bb84ec02f41 # 10:25 0- 3 rcutorture: Add RCU grace-period performance tests
# extra tests on HEAD of linux-devel/devel-catchup-201605220757
git bisect bad ce82e4a05fa751f5af6ddfe2bd120f0020099104 # 10:25 0- 13 0day head guard for 'devel-catchup-201605220757'
# extra tests on tree/branch linus/master
# extra tests on tree/branch linus/master
# 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
4 years, 7 months
[Btrfs] 3119070142: WARNING: CPU: 2 PID: 4416 at fs/btrfs/extent-tree.c:9660 btrfs_free_block_groups+0x287/0x400 [btrfs]
by kernel test robot
FYI, we noticed the following commit:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
commit 311907014249d72f7f183846524b84a8e9cf0852 ("Btrfs: warn_on for unaccounted spaces")
in testcase: xfstests
with following parameters: disk=6HDD/fs=btrfs/test=btrfs-mid1
on test machine: lkp-ws02: threads Westmere-EP with 16G memory
caused below changes:
+----------------+------------+------------+
| | ea66a8b977 | 3119070142 |
+----------------+------------+------------+
| boot_successes | 0 | 0 |
+----------------+------------+------------+
<6>[ 147.393369] BTRFS: creating UUID tree
<6>[ 147.592165] BTRFS info (device sdh1): qgroup scan completed (inconsistency flag cleared)
<4>[ 148.350235] ------------[ cut here ]------------
<4>[ 148.355099] WARNING: CPU: 2 PID: 4416 at fs/btrfs/extent-tree.c:9660 btrfs_free_block_groups+0x287/0x400 [btrfs]
<4>[ 148.367424] Modules linked in: loop dm_mod btrfs xor raid6_pq ses enclosure ipmi_devintf rpcsec_gss_krb5 auth_rpcgss nfsv4 dns_resolver sg sr_mod ata_generic cdrom sd_mod pata_acpi coretemp kvm_intel snd_pcm ahci snd_timer kvm irqbypass crct10dif_pclmul crc32_pclmul crc32c_intel mptsas pata_jmicron libahci mptscsih mptbase snd ppdev scsi_transport_sas i7core_edac ghash_clmulni_intel soundcore aesni_intel pcspkr lrw gf128mul glue_helper serio_raw ablk_helper libata cryptd ipmi_si parport_pc shpchp edac_core parport ipmi_msghandler acpi_cpufreq
<4>[ 148.421369] CPU: 2 PID: 4416 Comm: umount Not tainted 4.6.0-rc5-00005-g3119070 #1
<4>[ 148.422321] Hardware name: Supermicro X8DTN/X8DTN, BIOS 4.6.3 01/06/2010
<4>[ 148.422321] 0000000000000000 ffff88043b047cf0 ffffffff8142e59a 0000000000000000
<4>[ 148.422321] 0000000000000000 ffff88043b047d30 ffffffff8107b9b1 000025bc810e4731
<4>[ 148.422321] ffff8800b407f800 ffff8800b407f888 ffff88042bfa4000 ffff8800b407fa00
<4>[ 148.422321] Call Trace:
<4>[ 148.422321] [<ffffffff8142e59a>] dump_stack+0x63/0x89
<4>[ 148.422321] [<ffffffff8107b9b1>] __warn+0xd1/0xf0
<4>[ 148.422321] [<ffffffff8107ba9d>] warn_slowpath_null+0x1d/0x20
<4>[ 148.422321] [<ffffffffa049cac7>] btrfs_free_block_groups+0x287/0x400 [btrfs]
<4>[ 148.422321] [<ffffffffa04ae110>] close_ctree+0x190/0x370 [btrfs]
<4>[ 148.422321] [<ffffffff812179aa>] ? evict_inodes+0x16a/0x180
<4>[ 148.422321] [<ffffffffa047e009>] btrfs_put_super+0x19/0x20 [btrfs]
<4>[ 148.422321] [<ffffffff811fda0f>] generic_shutdown_super+0x6f/0x100
<4>[ 148.422321] [<ffffffff811fdab2>] kill_anon_super+0x12/0x20
<4>[ 148.422321] [<ffffffffa0482788>] btrfs_kill_super+0x18/0x110 [btrfs]
<4>[ 148.422321] [<ffffffff811fd443>] deactivate_locked_super+0x43/0x70
<4>[ 148.422321] [<ffffffff811fd4cc>] deactivate_super+0x5c/0x60
<4>[ 148.422321] [<ffffffff8121aa5f>] cleanup_mnt+0x3f/0x90
<4>[ 148.422321] [<ffffffff8121aaf2>] __cleanup_mnt+0x12/0x20
<4>[ 148.422321] [<ffffffff81099506>] task_work_run+0x76/0xb0
<4>[ 148.422321] [<ffffffff81003242>] exit_to_usermode_loop+0xc2/0xd0
<4>[ 148.422321] [<ffffffff81003bd5>] syscall_return_slowpath+0xf5/0x180
<4>[ 148.422321] [<ffffffff81905a3a>] entry_SYSCALL_64_fastpath+0xa2/0xa4
<4>[ 148.571830] ---[ end trace 30cd91c0f3d49e77 ]---
<47>
To reproduce:
git clone git://git.kernel.org/pub/scm/linux/kernel/git/wfg/lkp-tests.git
cd lkp-tests
bin/lkp install job.yaml # job file is attached in this email
bin/lkp run job.yaml
Thanks,
Kernel Test Robot
4 years, 7 months