Re: [LKP] [jwboyer-fedora:rawhide 18/51] drivers/char/crash.c:33:30: fatal error: asm/crash-driver.h: No such file or directory
by Fengguang Wu
Hi Josh,
On Mon, Aug 22, 2016 at 07:01:21AM -0400, Josh Boyer wrote:
>On Mon, Aug 22, 2016 at 6:58 AM, kbuild test robot
><fengguang.wu(a)intel.com> wrote:
>> tree: https://git.kernel.org/pub/scm/linux/kernel/git/jwboyer/fedora.git rawhide
>> head: bb46fd92b76deb12e06d53bc79db187c5217e540
>> commit: 72d09d6c096ba1c04f2735579edcdb85d4b6b01c [18/51] crash-driver
>> config: sparc64-allmodconfig (attached as .config)
>> compiler: sparc64-linux-gnu-gcc (Debian 5.4.0-6) 5.4.0 20160609
>> reproduce:
>> wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin... -O ~/bin/make.cross
>> chmod +x ~/bin/make.cross
>> git checkout 72d09d6c096ba1c04f2735579edcdb85d4b6b01c
>> # save the attached .config to linux build tree
>> make.cross ARCH=sparc64
>
>Fengguang,
>
>Perhaps you had missed my earlier email. We would love it if 0-day
Yeah sorry!
>only built for the following architectures:
>
>aarch64, armv7hl, ppc64, ppc64le, i686, x86_64, s390x
>
>Those are the architectures Fedora supports.
OK, we will add the constraint.
Thanks,
Fengguang
5 years, 8 months
[lkp] [writeback] 0cb0fd69dd: INFO: suspicious RCU usage. ]
by kernel test robot
FYI, we noticed the following commit:
https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git wb-buf-throttle
commit 0cb0fd69dd73bfc404b703a30168b68e1c64e828 ("writeback: throttle buffered writeback")
in testcase: boot
on test machine: qemu-system-x86_64 -enable-kvm -cpu IvyBridge -m 360M
caused below changes:
+------------------------------+------------+------------+
| | 7474f62764 | 0cb0fd69dd |
+------------------------------+------------+------------+
| boot_successes | 8 | 0 |
| boot_failures | 0 | 7 |
| INFO:suspicious_RCU_usage | 0 | 7 |
| calltrace:disk_events_workfn | 0 | 7 |
+------------------------------+------------+------------+
[ 5.030953] cdrom: Uniform CD-ROM driver Revision: 3.20
[ 5.033421]
[ 5.033843] ===============================
[ 5.034515] [ INFO: suspicious RCU usage. ]
[ 5.035166] 4.8.0-rc2-00008-g0cb0fd6 #1 Not tainted
[ 5.035885] -------------------------------
[ 5.036535] include/linux/cgroup.h:435 suspicious rcu_dereference_check() usage!
[ 5.037902]
[ 5.037902] other info that might help us debug this:
[ 5.037902]
[ 5.039353]
[ 5.039353] rcu_scheduler_active = 1, debug_locks = 0
[ 5.040419] 3 locks held by kworker/0:1/19:
[ 5.041057] #0: ("events_freezable_power_efficient"){.+.+..}, at: [<ffffffff810fc9f9>] process_one_work+0x151/0x4ee
[ 5.042636] #1: ((&(&ev->dwork)->work)){+.+...}, at: [<ffffffff810fc9f9>] process_one_work+0x151/0x4ee
[ 5.044091] #2: (&(&q->__queue_lock)->rlock){-.....}, at: [<ffffffff8178921f>] cfq_set_request+0x5e/0x2a3
[ 5.045592]
[ 5.045592] stack backtrace:
[ 5.046484] CPU: 0 PID: 19 Comm: kworker/0:1 Not tainted 4.8.0-rc2-00008-g0cb0fd6 #1
[ 5.047719] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
[ 5.049065] Workqueue: events_freezable_power_ disk_events_workfn
[ 5.049935] 0000000000000000 ffff88003431f8e8 ffffffff8178e443 ffff8800343184c0
[ 5.051249] 0000000000000001 ffff88003431f918 ffffffff811234ac ffff8800343184c0
[ 5.052580] ffffffff84091180 0000000000000003 ffff880030d5cc00 ffff88003431f938
[ 5.053934] Call Trace:
[ 5.054468] [<ffffffff8178e443>] dump_stack+0x82/0xb8
[ 5.055257] [<ffffffff811234ac>] lockdep_rcu_suspicious+0xf7/0x100
[ 5.056146] [<ffffffff81786af6>] bio_blkcg+0x89/0x93
[ 5.056918] [<ffffffff817888f2>] check_blkcg_changed+0x58/0x1b8
[ 5.057783] [<ffffffff81125fe1>] ? lock_acquire+0x125/0x1be
[ 5.058611] [<ffffffff81125fe1>] ? lock_acquire+0x125/0x1be
[ 5.059430] [<ffffffff8112390d>] ? lock_acquired+0xfc/0x2f2
[ 5.060262] [<ffffffff8178921f>] ? cfq_set_request+0x5e/0x2a3
[ 5.061107] [<ffffffff81789292>] cfq_set_request+0xd1/0x2a3
[ 5.061935] [<ffffffff82ef94a3>] ? _raw_spin_unlock_irq+0x2c/0x3b
[ 5.062802] [<ffffffff81124a8c>] ? trace_hardirqs_on_caller+0x17c/0x198
[ 5.063720] [<ffffffff81124ab5>] ? trace_hardirqs_on+0xd/0xf
[ 5.064550] [<ffffffff82ef94a8>] ? _raw_spin_unlock_irq+0x31/0x3b
[ 5.065396] [<ffffffff8176d4b8>] ? ioc_create_icq+0x15e/0x175
[ 5.066215] [<ffffffff8176373b>] elv_set_request+0x1f/0x24
[ 5.067001] [<ffffffff81767caa>] get_request+0x38f/0x77f
[ 5.067768] [<ffffffff8111b5d6>] ? add_wait_queue_exclusive+0x44/0x44
[ 5.068647] [<ffffffff817680ff>] blk_get_request+0x65/0xa8
[ 5.069427] [<ffffffff81c6804a>] ide_cd_queue_pc+0x76/0x19d
[ 5.070213] [<ffffffff811253d8>] ? __lock_acquire+0x679/0xed1
[ 5.071015] [<ffffffff81c68359>] cdrom_check_status+0x51/0x53
[ 5.071809] [<ffffffff81c68fe9>] ide_cdrom_check_events_real+0x20/0x3f
[ 5.072679] [<ffffffff82578b77>] cdrom_update_events+0x18/0x21
[ 5.073473] [<ffffffff82578b92>] cdrom_check_events+0x12/0x1f
[ 5.074258] [<ffffffff81c67082>] idecd_check_events+0x1c/0x1e
[ 5.075031] [<ffffffff8177844a>] disk_check_events+0x47/0x103
[ 5.075797] [<ffffffff81778522>] disk_events_workfn+0x1c/0x1e
[ 5.076554] [<ffffffff810fcb1a>] process_one_work+0x272/0x4ee
[ 5.077300] [<ffffffff810fd267>] worker_thread+0x1eb/0x2c9
[ 5.078032] [<ffffffff810fd07c>] ? rescuer_thread+0x2b3/0x2b3
[ 5.078789] [<ffffffff81101df4>] kthread+0xc5/0xcd
[ 5.079446] [<ffffffff82ef9f2f>] ret_from_fork+0x1f/0x40
[ 5.080157] [<ffffffff81101d2f>] ? kthread_create_on_node+0x1b0/0x1b0
[ 5.081305] Loading iSCSI transport class v2.0-870.
[ 5.082464] rdac: device handler registered
FYI, raw QEMU command line is:
qemu-system-x86_64 -enable-kvm -cpu IvyBridge -kernel /pkg/linux/x86_64-allyesdebian/gcc-6/0cb0fd69dd73bfc404b703a30168b68e1c64e828/vmlinuz-4.8.0-rc2-00008-g0cb0fd6 -append 'ip=::::vm-ivb41-yocto-ia32-1::dhcp root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-ivb41-yocto-ia32-1/boot-1-yocto-minimal-i386.cgz-0cb0fd69dd73bfc404b703a30168b68e1c64e828-20160820-31851-iyl1vg-0.yaml ARCH=x86_64 kconfig=x86_64-allyesdebian branch=linux-devel/devel-hourly-2016081811 commit=0cb0fd69dd73bfc404b703a30168b68e1c64e828 BOOT_IMAGE=/pkg/linux/x86_64-allyesdebian/gcc-6/0cb0fd69dd73bfc404b703a30168b68e1c64e828/vmlinuz-4.8.0-rc2-00008-g0cb0fd6 max_uptime=600 RESULT_ROOT=/result/boot/1/vm-ivb41-yocto-ia32/yocto-minimal-i386.cgz/x86_64-allyesdebian/gcc-6/0cb0fd69dd73bfc404b703a30168b68e1c64e828/0 LKP_SERVER=inn 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 systemd.log_level=err ignore_loglevel earlyprintk=ttyS0,115200 console=ttyS0,115200 console=tty0 vga=normal rw drbd.minor_count=8' -initrd /fs/sda5/initrd-vm-ivb41-yocto-ia32-1 -m 872 -smp 1 -device e1000,netdev=net0 -netdev user,id=net0 -boot order=nc -no-reboot -watchdog i6300esb -watchdog-action debug -rtc base=localtime -drive file=/fs/sda5/disk0-vm-ivb41-yocto-ia32-1,media=disk,if=virtio -pidfile /dev/shm/kboot/pid-vm-ivb41-yocto-ia32-1 -serial file:/dev/shm/kboot/serial-vm-ivb41-yocto-ia32-1 -daemonize -display none -monitor null
Thanks,
Xiaolong
5 years, 8 months
a81de5e161: BUG: unable to handle kernel paging request at ffffc90000647e38
by kernel test robot
FYI, we noticed the following commit:
https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git x86/vmap_stack
commit a81de5e16134480cc93596945601f19e1ace7723 ("[DEBUG] forcibly free stacks immediately")
in testcase: boot
on test machine: qemu-system-x86_64 -enable-kvm -cpu Haswell,+smep,+smap -smp 2 -m 1G
caused below changes:
+------------------------------------------+------------+------------+
| | b3768b6fde | a81de5e161 |
+------------------------------------------+------------+------------+
| boot_successes | 4 | 8 |
| boot_failures | 1 | 4 |
| BUG:kernel_hang_in_early-boot_stage | 1 | |
| BUG:unable_to_handle_kernel | 0 | 4 |
| Oops | 0 | 4 |
| RIP:get_wchan | 0 | 4 |
| calltrace:SyS_read | 0 | 4 |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 4 |
+------------------------------------------+------------+------------+
Starting RPC Remote Quota Server...
Starting LSB: Load kernel image with kexec...
Starting Getty on tty1...
[ 22.394549] BUG: unable to handle kernel paging request at ffffc90000647e38
[ 22.396728] IP: [<ffffffff81066404>] get_wchan+0x60/0xb5
[ 22.412223] PGD 2bc9b067 PUD 2bcb0067 PMD 2a7fb067 PTE 0
[ 22.412225] Oops: 0000 [#1] SMP
[ 22.412227] Modules linked in: acpi_cpufreq
[ 22.412230] CPU: 0 PID: 2630 Comm: pidof Not tainted 4.8.0-rc1-00017-ga81de5e #1
[ 22.412231] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
[ 22.412233] task: ffff8800110c4600 task.stack: ffffc900005d4000
[ 22.412239] RIP: 0010:[<ffffffff81066404>] [<ffffffff81066404>] get_wchan+0x60/0xb5
[ 22.412240] RSP: 0018:ffffc900005d7c58 EFLAGS: 00010216
[ 22.412241] RAX: ffffc90000647e38 RBX: ffff88003f74e300 RCX: 0000000000000000
[ 22.412242] RDX: ffffc90000647ff0 RSI: 0000000000000286 RDI: ffff88003f160000
[ 22.412243] RBP: ffffc900005d7c88 R08: 0000000000000000 R09: 0000000000000000
[ 22.412244] R10: ffff88002a70d000 R11: ffff8800110c4600 R12: ffff88003f160000
[ 22.412245] R13: 0000000000000000 R14: ffffc90000644000 R15: ffff880029c05b01
[ 22.412247] FS: 00007fe0f8b2b700(0000) GS:ffff880038800000(0000) knlGS:0000000000000000
[ 22.412248] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 22.412249] CR2: ffffc90000647e38 CR3: 000000003f752000 CR4: 00000000000406f0
[ 22.412253] Stack:
[ 22.412256] 0000000000000000 ffff88003f74e300 ffff88003f160000 0000000000000000
[ 22.412258] 0000000000000a44 ffff880029c05b01 ffffc900005d7d98 ffffffff8129eeed
[ 22.412260] ffff880029c05b00 ffff88003f662aa0 5a00000000000000 ffffffffffffffff
[ 22.412261] Call Trace:
[ 22.412266] [<ffffffff8129eeed>] do_task_stat+0x3cb/0x93d
[ 22.412269] [<ffffffff8129fe15>] proc_tgid_stat+0x14/0x16
[ 22.412271] [<ffffffff8129a2d3>] proc_single_show+0x56/0x76
[ 22.412274] [<ffffffff8125b83c>] seq_read+0x171/0x333
[ 22.412277] [<ffffffff8123c47b>] __vfs_read+0x26/0xed
[ 22.412281] [<ffffffff811e7169>] ? vm_mmap_pgoff+0x81/0xa7
[ 22.412283] [<ffffffff8123cfb8>] vfs_read+0xa7/0x132
[ 22.412285] [<ffffffff8123e155>] SyS_read+0x4e/0x88
[ 22.412288] [<ffffffff81abc541>] entry_SYSCALL_64_fastpath+0x1f/0xbd
[ 22.412306] Code: 41 55 41 54 53 51 4c 8b 77 10 4d 85 f6 75 04 31 c0 eb 5e 48 8b 87 e0 09 00 00 49 8d 96 f0 3f 00 00 49 39 c6 77 e9 48 39 c2 72 e4 <4c> 8b 20 48 89 fb 41 bf 11 00 00 00 4d 39 f4 72 d3 49 39 d4 48
[ 22.412309] RIP [<ffffffff81066404>] get_wchan+0x60/0xb5
[ 22.412310] RSP <ffffc900005d7c58>
[ 22.412310] CR2: ffffc90000647e38
[ 22.412313] ---[ end trace 397d4f30e4b22143 ]---
[ 22.412315] Kernel panic - not syncing: Fatal exception
FYI, raw QEMU command line is:
qemu-system-x86_64 -enable-kvm -cpu Haswell,+smep,+smap -kernel /pkg/linux/x86_64-lkp/gcc-6/a81de5e16134480cc93596945601f19e1ace7723/vmlinuz-4.8.0-rc1-00017-ga81de5e -append 'ip=::::vm-kbuild-1G-5::dhcp root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-kbuild-1G-5/boot-1-debian-x86_64-2015-02-07.cgz-a81de5e16134480cc93596945601f19e1ace7723-20160821-39118-ygsw4a-0.yaml ARCH=x86_64 kconfig=x86_64-lkp branch=linux-devel/devel-catchup-201608171102 commit=a81de5e16134480cc93596945601f19e1ace7723 BOOT_IMAGE=/pkg/linux/x86_64-lkp/gcc-6/a81de5e16134480cc93596945601f19e1ace7723/vmlinuz-4.8.0-rc1-00017-ga81de5e max_uptime=600 RESULT_ROOT=/result/boot/1/vm-kbuild-1G/debian-x86_64-2015-02-07.cgz/x86_64-lkp/gcc-6/a81de5e16134480cc93596945601f19e1ace7723/0 LKP_SERVER=inn 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 systemd.log_level=err ignore_loglevel earlyprintk=ttyS0,115200 console=ttyS0,115200 console=tty0 vga=normal rw' -initrd /fs/sdg1/initrd-vm-kbuild-1G-5 -m 1024 -smp 2 -device e1000,netdev=net0 -netdev user,id=net0,hostfwd=tcp::23004-:22 -boot order=nc -no-reboot -watchdog i6300esb -watchdog-action debug -rtc base=localtime -device virtio-scsi-pci,id=scsi0 -drive file=/fs/sdg1/disk0-vm-kbuild-1G-5,if=none,id=hd0,media=disk,aio=native,cache=none -device scsi-hd,bus=scsi0.0,drive=hd0,scsi-id=1,lun=0 -drive file=/fs/sdg1/disk1-vm-kbuild-1G-5,if=none,id=hd1,media=disk,aio=native,cache=none -device scsi-hd,bus=scsi0.0,drive=hd1,scsi-id=1,lun=1 -drive file=/fs/sdg1/disk2-vm-kbuild-1G-5,if=none,id=hd2,media=disk,aio=native,cache=none -device scsi-hd,bus=scsi0.0,drive=hd2,scsi-id=1,lun=2 -drive file=/fs/sdg1/disk3-vm-kbuild-1G-5,if=none,id=hd3,media=disk,aio=native,cache=none -device scsi-hd,bus=scsi0.0,drive=hd3,scsi-id=1,lun=3 -drive file=/fs/sdg1/disk4-vm-kbuild-1G-5,if=none,id=hd4,media=disk,aio=native,cache=none -device scsi-hd,bus=scsi0.0,drive=hd4,scsi-id=1,lun=4 -pidfile /dev/shm/kboot/pid-vm-kbuild-1G-5 -serial file:/dev/shm/kboot/serial-vm-kbuild-1G-5 -daemonize -display none -monitor null
Thanks,
Kernel Test Robot
5 years, 8 months
[locking/rwsem] 04b6f13525: EIP is at __rwsem_down_write_failed_common
by kernel test robot
Greetings,
0day kernel testing robot got the below dmesg and the first bad commit is
https://github.com/0day-ci/linux Waiman-Long/locking-rwsem-Enable-reader-optimistic-spinning/20160819-150117
commit 04b6f13525039af069559ddd8619016149aff47e
Author: Waiman Long <Waiman.Long(a)hpe.com>
AuthorDate: Thu Aug 18 17:11:06 2016 -0400
Commit: 0day robot <fengguang.wu(a)intel.com>
CommitDate: Fri Aug 19 15:01:20 2016 +0800
locking/rwsem: Enable count-based spinning on reader
When the rwsem is owned by reader, writers stop optimistic spinning
simply because there is no easy way to figure out if all the readers
are actively running or not. However, there are scenarios where
the readers are unlikely to sleep and optimistic spinning can help
performance.
This patch provides an autotuning mechanism to find out if a rwsem
can benefit from count-based reader optimistic spinning. A count
(rspin_enabled) in the rwsem data structure is used to track if
optimistic spinning should be enabled. Reader spinning is enabled
by default. Each successful spin (with lock acquisition) will
increment the count by 1 and each unsuccessful spin will decrement
it by 4. When the count reaches 0, reader spinning is disabled.
Modification of that count is protected by the osq lock. Therefore,
reader spinning will be maintained as long as at least 80% of the
spins are successful.
Both the spinning threshold and the default value for rspin_enabled
can be overridden by architecture specific rwsem.h header file.
Signed-off-by: Waiman Long <Waiman.Long(a)hpe.com>
+------------------------------------------------+------------+------------+-----------------+
| | 68a315e05f | 04b6f13525 | v4.8-rc2_082022 |
+------------------------------------------------+------------+------------+-----------------+
| boot_successes | 137 | 18 | 9 |
| boot_failures | 0 | 8 | 16 |
| EIP_is_at__rwsem_down_write_failed_common | 0 | 8 | |
| calltrace:SyS_exit_group | 0 | 5 | 4 |
| Kernel_panic-not_syncing:softlockup:hung_tasks | 0 | 8 | 12 |
| calltrace:SyS_mprotect | 0 | 1 | |
| calltrace:SyS_execve | 0 | 1 | 3 |
| calltrace:SyS_unlink | 0 | 1 | |
| EIP_is_at_ftrace_likely_update | 0 | 0 | 1 |
| calltrace:SyS_brk | 0 | 0 | 1 |
| EIP_is_at_rwsem_optimistic_spin | 0 | 0 | 9 |
| calltrace:SyS_mmap_pgoff | 0 | 0 | 1 |
| EIP_is_at_rwsem_spin_on_owner | 0 | 0 | 2 |
| INFO:task_blocked_for_more_than#seconds | 0 | 0 | 5 |
| calltrace:test_rht_init | 0 | 0 | 5 |
| calltrace:ring_buffer_producer_thread | 0 | 0 | 1 |
| BUG:kernel_hang_in_boot_stage | 0 | 0 | 4 |
| calltrace:SyS_clone | 0 | 0 | 3 |
+------------------------------------------------+------------+------------+-----------------+
udevd[233]: failed to execute '/sbin/modprobe' '/sbin/modprobe -bv acpi:PNP0C0F:': No such file or directory
udevd[223]: failed to execute '/sbin/modprobe' '/sbin/modprobe -bv acpi:LNXCPU:': No such file or directory
[ 127.023136] NMI watchdog: BUG: soft lockup - CPU#1 stuck for 23s! [udevd:233]
[ 127.025857] Modules linked in:
[ 127.026393] irq event stamp: 66222
[ 127.026951] hardirqs last enabled at (66221): [<c17717bb>] restore_all_notrace+0x0/0x1a
[ 127.028275] hardirqs last disabled at (66222): [<c1772228>] apic_timer_interrupt+0x28/0x40
[ 127.046459] softirqs last enabled at (66220): [<c1069b53>] __do_softirq+0x50e/0x594
[ 127.047647] softirqs last disabled at (66215): [<c10218bb>] do_softirq_own_stack+0x28/0x2e
[ 127.048994] CPU: 1 PID: 233 Comm: udevd Not tainted 4.8.0-rc1-00073-g04b6f13 #1
[ 127.050166] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
[ 127.051584] task: cec7cc80 task.stack: cec74000
[ 127.078750] EIP: 0060:[<c10bcad0>] EFLAGS: 00000246 CPU: 1
[ 127.079440] EIP is at __rwsem_down_write_failed_common+0x216/0x618
[ 127.080208] EAX: 1d2bbf12 EBX: 00000000 ECX: 00000000 EDX: 00000000
[ 127.080984] ESI: 1d2bbf2f EDI: cf22ce04 EBP: cec75df8 ESP: cec75db0
[ 127.081761] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
[ 127.082436] CR0: 80050033 CR2: bff60108 CR3: 0e9cb000 CR4: 00000690
[ 127.083217] Stack:
[ 127.083479] cec7cc80 cf22ce38 cec7cc80 00000002 cec7cc00 00001000 c1121d16 00000001
[ 127.113842] cec75dcc c108efec ffffffff cec75de8 c108f001 cec7d244 cec75df0 cf22ce04
[ 127.114951] cf22ce44 00000000 cec75e00 c176fbd2 cec75e0c c141e269 cf22ce04 cec75e14
[ 127.116056] Call Trace:
[ 127.116386] [<c1121d16>] ? trace_preempt_on+0xd/0x35
[ 127.117012] [<c108efec>] ? preempt_latency_stop+0x3a/0x3d
[ 127.117699] [<c108f001>] ? preempt_count_sub+0x12/0x1c
[ 127.118406] [<c176fbd2>] rwsem_down_write_failed+0x12/0x14
[ 127.139313] [<c141e269>] call_rwsem_down_write_failed+0x9/0x10
[ 127.140272] [<c10b2af0>] __down_write+0x18/0x1a
[ 127.141020] [<c176f3f0>] down_write+0x60/0x7a
[ 127.141744] [<c11aaa59>] lock_anon_vma_root+0xad/0xb8
[ 127.142671] [<c11ad729>] unlink_anon_vmas+0x43/0x158
[ 127.163121] [<c119b956>] free_pgtables+0x86/0xb9
[ 127.163891] [<c11a59c9>] exit_mmap+0x88/0x116
[ 127.164610] [<c105f2a9>] __mmput+0x78/0x10e
[ 127.165311] [<c105f37f>] mmput+0x40/0x43
[ 127.165963] [<c1067c6c>] do_exit+0x613/0x1197
[ 127.166688] [<c10b7bd4>] ? lock_release+0x191/0x3e1
[ 127.167489] [<c106894b>] do_group_exit+0x111/0x111
[ 127.168277] [<c1068961>] SyS_exit_group+0x16/0x16
[ 127.169042] [<c1002141>] do_fast_syscall_32+0x108/0x14b
[ 127.184989] [<c177174c>] sysenter_past_esp+0x45/0x74
[ 127.185815] Code: 89 da e8 50 53 06 00 8b 04 9d ec 0b dd c1 40 89 04 9d ec 0b dd c1 8b 04 9d d0 09 dd c1 40 85 db 89 04 9d d0 09 dd c1 75 b5 f3 90 <e9> ea fe ff ff b3 01 8b 57 3c 31 c9 83 fa 01 0f 94 c1 8b 04 8d
[ 127.217407] Kernel panic - not syncing: softlockup: hung tasks
[ 127.218349] CPU: 1 PID: 233 Comm: udevd Tainted: G L 4.8.0-rc1-00073-g04b6f13 #1
[ 127.219704] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
[ 127.221104] 00000002 00000002 00000000 cec75cb8 c140d473 00000000 00000000 cec75cd0
[ 127.222537] c115acee 00000000 00000017 00000000 00000000 cec75cf4 c110a412 c1bc20d5
[ 127.243008] cec7cc80 00000000 cec75d74 00000000 d53e9c20 d53e9700 cec75d2c c10dd98e
[ 127.244427] Call Trace:
[ 127.244839] [<c140d473>] dump_stack+0xc1/0x121
[ 127.245581] [<c115acee>] panic+0xed/0x296
[ 127.246258] [<c110a412>] watchdog_timer_fn+0x2b9/0x2d8
[ 127.247098] [<c10dd98e>] __hrtimer_run_queues+0x306/0x528
[ 127.247981] [<c110a159>] ? watchdog+0x4e/0x4e
[ 127.248703] [<c10de431>] hrtimer_interrupt+0x9a/0x1f7
[ 127.268579] [<c109923f>] ? irqtime_account_irq+0x3e/0xdf
[ 127.269451] [<c1040118>] local_apic_timer_interrupt+0x5c/0x63
[ 127.270388] [<c1040c3d>] smp_apic_timer_interrupt+0x25/0x34
[ 127.271296] [<c177222f>] apic_timer_interrupt+0x2f/0x40
[ 127.272141] [<c10b007b>] ? print_cpu+0x531/0xd63
[ 127.272907] [<c10bcad0>] ? __rwsem_down_write_failed_common+0x216/0x618
[ 127.273980] [<c1121d16>] ? trace_preempt_on+0xd/0x35
[ 127.274787] [<c108efec>] ? preempt_latency_stop+0x3a/0x3d
[ 127.297703] [<c108f001>] ? preempt_count_sub+0x12/0x1c
[ 127.298550] [<c176fbd2>] rwsem_down_write_failed+0x12/0x14
[ 127.299448] [<c141e269>] call_rwsem_down_write_failed+0x9/0x10
[ 127.300402] [<c10b2af0>] __down_write+0x18/0x1a
[ 127.301141] [<c176f3f0>] down_write+0x60/0x7a
[ 127.301871] [<c11aaa59>] lock_anon_vma_root+0xad/0xb8
[ 127.302814] [<c11ad729>] unlink_anon_vmas+0x43/0x158
[ 127.303633] [<c119b956>] free_pgtables+0x86/0xb9
[ 127.320454] [<c11a59c9>] exit_mmap+0x88/0x116
[ 127.321188] [<c105f2a9>] __mmput+0x78/0x10e
[ 127.321879] [<c105f37f>] mmput+0x40/0x43
[ 127.322533] [<c1067c6c>] do_exit+0x613/0x1197
[ 127.323256] [<c10b7bd4>] ? lock_release+0x191/0x3e1
[ 127.324048] [<c106894b>] do_group_exit+0x111/0x111
[ 127.324839] [<c1068961>] SyS_exit_group+0x16/0x16
[ 127.325611] [<c1002141>] do_fast_syscall_32+0x108/0x14b
[ 127.326464] [<c177174c>] sysenter_past_esp+0x45/0x74
[ 127.348388] Kernel Offset: disabled
Elapsed time: 150
git bisect start 4f0caf3a9344f1a5dfb84a14664a271921ffb5b4 694d0d0bb2030d2e36df73e2d23d5770511dbc8d --
git bisect bad df9d4e89ab69df0da26b04bb6d1babd041f6033c # 05:15 0- 4 Merge 'clk/clk-qcom-9615' into devel-hourly-2016082022
git bisect good e9876258ec4c5674acf13c89af2ca90855dcc50c # 05:28 26+ 0 Merge 'linux-review/Krzysztof-Kozlowski/ARM-dts-exynos-Use-stdout-non-deprecated-property-and-add-serial-options-to-Odroid-XU-XU3-XU4/20160817-153646' into devel-hourly-2016082022
git bisect good 289e7d5ac4b290b415b6718883f254c69557b214 # 05:47 26+ 0 Merge 'linux-review/William-Wu/support-rockchip-dwc3-driver/20160816-234913' into devel-hourly-2016082022
git bisect good d0f4f37aceb2aa48b0d3af1c3f7cda3f1768e062 # 06:05 25+ 0 Merge 'linux-review/Mike-Looijmans/hwmon-max6650-c-Add-devicetree-support/20160816-152341' into devel-hourly-2016082022
git bisect bad 2642bb4ea5b61d577b27aba77a44982429d774d9 # 06:12 0- 3 Merge 'linux-review/Vegard-Nossum/fs-seq_file-fix-out-of-bounds-read/20160817-232323' into devel-hourly-2016082022
git bisect good cff867bbe59d7563d17b892a4f6051d4e0f7afe6 # 06:24 26+ 0 Merge 'linux-review/Jitendra-Bhivare/be2iscsi-driver-update-11-2-0-0/20160819-175550' into devel-hourly-2016082022
git bisect bad 861e2964876c942b428af6d678732128170c4b41 # 06:32 0- 8 Merge 'linux-review/Xin-Long/sctp-not-copying-duplicate-addrs-to-the-assoc-s-bind-address-list/20160819-214220' into devel-hourly-2016082022
git bisect bad 75f8611e3fd742f83cc8daa362c44e3e0c8373a7 # 06:38 0- 1 Merge 'linux-review/Colin-King/helene-fix-memory-leak-when-heleno_x_pon-fails/20160814-205216' into devel-hourly-2016082022
git bisect bad cc4fe6fafb736e518753d287e89cecae698a6f74 # 06:42 0- 1 Merge 'superna9999/amlogic/v4.8/scpi-legacy+fw' into devel-hourly-2016082022
git bisect bad d5b3ed3054581a23919208c24a69667dad0c0231 # 06:53 1- 3 Merge 'linux-review/Waiman-Long/locking-rwsem-Enable-reader-optimistic-spinning/20160819-150117' into devel-hourly-2016082022
git bisect bad d62a5bd4a9c98a4fa36367497d06a9c68bc0c4ac # 07:01 0- 1 locking/rwsem: move down rwsem_down_read_failed function
git bisect good 52b483777c5ed82630ec867049fb45e8b5268887 # 07:16 26+ 0 locking/rwsem: Stop active read lock ASAP
git bisect bad 04b6f13525039af069559ddd8619016149aff47e # 07:25 7- 3 locking/rwsem: Enable count-based spinning on reader
git bisect good 68a315e05f0876802cfa4fc078f2f000dde461f1 # 07:41 47+ 0 locking/rwsem: Make rwsem_spin_on_owner() return a tri-state value
# first bad commit: [04b6f13525039af069559ddd8619016149aff47e] locking/rwsem: Enable count-based spinning on reader
git bisect good 68a315e05f0876802cfa4fc078f2f000dde461f1 # 07:55 133+ 0 locking/rwsem: Make rwsem_spin_on_owner() return a tri-state value
# extra tests with CONFIG_DEBUG_INFO_REDUCED
git bisect bad 04b6f13525039af069559ddd8619016149aff47e # 08:05 1- 1 locking/rwsem: Enable count-based spinning on reader
# extra tests on HEAD of linux-devel/devel-hourly-2016082022
git bisect bad 4f0caf3a9344f1a5dfb84a14664a271921ffb5b4 # 08:05 0- 16 0day head guard for 'devel-hourly-2016082022'
# extra tests on tree/branch linux-review/Waiman-Long/locking-rwsem-Enable-reader-optimistic-spinning/20160819-150117
git bisect bad 1802442a39b862b1adb57cbae5fbbda3945406e2 # 08:27 0- 1 locking/rwsem: Add a boot parameter to reader spinning threshold
# extra tests on tree/branch linus/master
git bisect good 6040e57658eee6eb1315a26119101ca832d1f854 # 09:58 129+ 0 Make the hardened user-copy code depend on having a hardened allocator
# extra tests on tree/branch linux-next/master
git bisect good 94b33aa81c8d47ffcefd06856beed3aeea4648cb # 10:45 136+ 0 Add linux-next specific files for 20160819
This script may reproduce the error.
----------------------------------------------------------------------------
#!/bin/bash
kernel=$1
initrd=quantal-core-i386.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 369
-smp 2
-device e1000,netdev=net0
-netdev user,id=net0
-boot order=nc
-no-reboot
-watchdog i6300esb
-watchdog-action debug
-rtc base=localtime
-serial stdio
-display none
-monitor null
)
append=(
root=/dev/ram0
hung_task_panic=1
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
systemd.log_level=err
ignore_loglevel
earlyprintk=ttyS0,115200
console=ttyS0,115200
console=tty0
vga=normal
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
5 years, 8 months
41ac22d7d9: BUG: kernel hang in early-boot stage, last printk: early console in setup code
by kernel test robot
Greetings,
0day kernel testing robot got the below dmesg and the first bad commit is
git://internal_merge_and_test_tree devel-spot-201608200555
commit 41ac22d7d90f5d36bc496bf6cb07647dcde7ad85
Merge: 11c4fe2d 41910db
Author: 0day robot <fengguang.wu(a)intel.com>
AuthorDate: Sat Aug 20 06:06:52 2016 +0800
Commit: 0day robot <fengguang.wu(a)intel.com>
CommitDate: Sat Aug 20 06:06:52 2016 +0800
Merge 'aa/userfault' into devel-spot-201608200555
+-----------------------------------------------------------------------------+------------+------------+------------+------------+
| | 11c4fe2de0 | 41910db1c8 | 41ac22d7d9 | 22546083d0 |
+-----------------------------------------------------------------------------+------------+------------+------------+------------+
| boot_successes | 62 | 63 | 0 | 0 |
| boot_failures | 1 | 0 | 26 | 45 |
| BUG:workqueue_lockup-pool_cpus=#node=#flags=#nice=#stuck_for#s | 1 | | | |
| BUG:kernel_hang_in_early-boot_stage,last_printk:early_console_in_setup_code | 0 | 0 | 26 | 37 |
| BUG:kernel_hang_in_early-boot_stage | 0 | 0 | 0 | 8 |
+-----------------------------------------------------------------------------+------------+------------+------------+------------+
early console in setup code
Elapsed time: 310
BUG: kernel hang in early-boot stage, last printk: early console in setup code
Linux version 4.8.0-rc2-wt-02075-g41ac22d #1
Command line: ip=::::vm-ivb41-2G-1::dhcp root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-ivb41-2G-1/boot-1-debian-x86_64-2015-02-07.cgz-41ac22d7d90f5d36bc496bf6cb07647dcde7ad85-20160820-72116-17kd4x8-0.yaml ARCH=x86_64 kconfig=x86_64-randconfig-s3-08200623 branch=linux-devel/devel-spot-201608200555 commit=41ac22d7d90f5d36bc496bf6cb07647dcde7ad85 BOOT_IMAGE=/pkg/linux/x86_64-randconfig-s3-08200623/gcc-6/41ac22d7d90f5d36bc496bf6cb07647dcde7ad85/vmlinuz-4.8.0-rc2-wt-02075-g41ac22d max_uptime=600 RESULT_ROOT=/result/boot/1/vm-ivb41-2G/debian-x86_64-2015-02-07.cgz/x86_64-randconfig-s3-08200623/gcc-6/41ac22d7d90f5d36bc496bf6cb07647dcde7ad85/0 LKP_SERVER=inn 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 systemd.log_level=err ignore_loglevel earlyprintk=ttyS0,115200 console=ttyS0,115200 console=tty0 vga=normal rw
qemu-system-x86_64 -enable-kvm -cpu IvyBridge -kernel /pkg/linux/x86_64-randconfig-s3-08200623/gcc-6/41ac22d7d90f5d36bc496bf6cb07647dcde7ad85/vmlinuz-4.8.0-rc2-wt-02075-g41ac22d -append 'ip=::::vm-ivb41-2G-1::dhcp root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-ivb41-2G-1/boot-1-debian-x86_64-2015-02-07.cgz-41ac22d7d90f5d36bc496bf6cb07647dcde7ad85-20160820-72116-17kd4x8-0.yaml ARCH=x86_64 kconfig=x86_64-randconfig-s3-08200623 branch=linux-devel/devel-spot-201608200555 commit=41ac22d7d90f5d36bc496bf6cb07647dcde7ad85 BOOT_IMAGE=/pkg/linux/x86_64-randconfig-s3-08200623/gcc-6/41ac22d7d90f5d36bc496bf6cb07647dcde7ad85/vmlinuz-4.8.0-rc2-wt-02075-g41ac22d max_uptime=600 RESULT_ROOT=/result/boot/1/vm-ivb41-2G/debian-x86_64-2015-02-07.cgz/x86_64-randconfig-s3-08200623/gcc-6/41ac22d7d90f5d36bc496bf6cb07647dcde7ad85/0 LKP_SERVER=inn 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 systemd.log_level=err ignore_loglevel earlyprintk=ttyS0,115200 console=ttyS0,115200 console=tty0 vga=normal rw' -initrd /fs/sda5/initrd-vm-ivb41-2G-1 -m 2048 -smp 4 -device e1000,netdev=net0 -netdev user,id=net0 -boot order=nc -no-reboot -watchdog i6300esb -watchdog-action debug -rtc base=localtime -drive file=/fs/sda5/disk0-vm-ivb41-2G-1,media=disk,if=virtio -drive file=/fs/sda5/disk1-vm-ivb41-2G-1,media=disk,if=virtio -drive file=/fs/sda5/disk2-vm-ivb41-2G-1,media=disk,if=virtio -drive file=/fs/sda5/disk3-vm-ivb41-2G-1,media=disk,if=virtio -drive file=/fs/sda5/disk4-vm-ivb41-2G-1,media=disk,if=virtio -drive file=/fs/sda5/disk5-vm-ivb41-2G-1,media=disk,if=virtio -pidfile /dev/shm/kboot/pid-vm-ivb41-2G-1 -serial file:/dev/shm/kboot/serial-vm-ivb41-2G-1 -daemonize -display none -monitor null
git bisect start 22546083d046f3a23d0054abbb270ed4ed9097e7 694d0d0bb2030d2e36df73e2d23d5770511dbc8d --
git bisect good 1734d79094788c8c79625d21a3356583e928739e # 07:41 21+ 0 Merge 'linux-review/Andreas-Herrmann/cpufreq-pcc-cpufreq-Re-introduce-deadband-effect-to-reduce-number-of-frequency-changes/20160819-202344' into devel-spot-201608200555
git bisect good 622e808c0a7dde0b37b40b79cc0d6e0eb4e9c44b # 08:02 21+ 2 Merge 'linux-review/Michael-Kerrisk-man-pages/pipe-relocate-round_pipe_size-above-pipe_set_size/20160819-144226' into devel-spot-201608200555
git bisect good 68fb9d9fd6678c87608c637c90101f73662354d1 # 08:17 22+ 0 Merge 'hwmon/watchdog-next' into devel-spot-201608200555
git bisect good 0b24abc19e9abe9da5d91af2cc38d1b3412a33b2 # 08:32 22+ 0 Merge 'linux-review/Marcelo-Ricardo-Leitner/sctp-linearize-early-if-it-s-not-GSO/20160819-095054' into devel-spot-201608200555
git bisect bad 41ac22d7d90f5d36bc496bf6cb07647dcde7ad85 # 08:45 0- 22 Merge 'aa/userfault' into devel-spot-201608200555
git bisect good 15e941e454681252ba532b0dba67b3b413a2893b # 09:04 22+ 0 Merge 'linux-review/Stephen-Barber/dmaengine-pl330-fix-residual-for-non-running-BUSY-descriptors/20160819-091220' into devel-spot-201608200555
git bisect good 0cbe1503b971e8ecbdeab9a4fa0f9b0461d46902 # 09:22 22+ 0 Merge 'linux-review/David-Daney/irqchip-gicv3-its-Disable-the-ITS-before-initializing-it/20160819-090826' into devel-spot-201608200555
git bisect good 11c4fe2de085ec9c8c84efcf9ad88e5f73c62a61 # 09:36 22+ 0 Merge 'linux-review/Josef-Bacik/Btrfs-fix-em-leak-in-find_first_block_group/20160819-085558' into devel-spot-201608200555
git bisect good 01494e49b6d41e8a92fd2e21af1a6e436ac3649c # 09:50 22+ 0 userfaultfd: wp: fault try one more time
git bisect good 136050f35f03ddca0b5326bab4746dc3d6175657 # 10:13 22+ 7 userfaultfd: wp: userfaultfd_pte/huge_pmd_wp() helpers
git bisect good 1d9fe963e22c3dc8c6ae14e09eb63ee541c405c1 # 10:30 21+ 0 userfaultfd: non-cooperative: report all available features to userland
git bisect good 41910db1c8e14089b9288b9cfcdbef2d67cf36d0 # 10:50 22+ 0 userfaultfd: non-cooperative: Add fork() event, build warning fix
# first bad commit: [41ac22d7d90f5d36bc496bf6cb07647dcde7ad85] Merge 'aa/userfault' into devel-spot-201608200555
git bisect good 11c4fe2de085ec9c8c84efcf9ad88e5f73c62a61 # 11:06 63+ 1 Merge 'linux-review/Josef-Bacik/Btrfs-fix-em-leak-in-find_first_block_group/20160819-085558' into devel-spot-201608200555
git bisect good 41910db1c8e14089b9288b9cfcdbef2d67cf36d0 # 11:23 61+ 0 userfaultfd: non-cooperative: Add fork() event, build warning fix
# extra tests on HEAD of linux-devel/devel-spot-201608200555
git bisect bad 22546083d046f3a23d0054abbb270ed4ed9097e7 # 11:23 0- 45 0day head guard for 'devel-spot-201608200555'
# extra tests on tree/branch linux-devel/devel-spot-201608200555
git bisect bad 22546083d046f3a23d0054abbb270ed4ed9097e7 # 11:25 0- 45 0day head guard for 'devel-spot-201608200555'
# extra tests on tree/branch linus/master
git bisect good 6040e57658eee6eb1315a26119101ca832d1f854 # 11:48 62+ 0 Make the hardened user-copy code depend on having a hardened allocator
# extra tests on tree/branch linux-next/master
git bisect good 94b33aa81c8d47ffcefd06856beed3aeea4648cb # 12:12 60+ 0 Add linux-next specific files for 20160819
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/lkp Intel Corporation
5 years, 9 months
[x86/mm] e1a58320a3: WARNING: CPU: 1 PID: 1 at arch/x86/mm/dump_pagetables.c:225 note_page()
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 e1a58320a38dfa72be48a0f1a3a92273663ba6db
Author: Stephen Smalley <sds(a)tycho.nsa.gov>
AuthorDate: Mon Oct 5 12:55:20 2015 -0400
Commit: Ingo Molnar <mingo(a)kernel.org>
CommitDate: Tue Oct 6 11:11:48 2015 +0200
x86/mm: Warn on W^X mappings
Warn on any residual W+X mappings after setting NX
if DEBUG_WX is enabled. Introduce a separate
X86_PTDUMP_CORE config that enables the code for
dumping the page tables without enabling the debugfs
interface, so that DEBUG_WX can be enabled without
exposing the debugfs interface. Switch EFI_PGT_DUMP
to using X86_PTDUMP_CORE so that it also does not require
enabling the debugfs interface.
On success it prints this to the kernel log:
x86/mm: Checked W+X mappings: passed, no W+X pages found.
On failure it prints a warning and a count of the failed pages:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 1 at arch/x86/mm/dump_pagetables.c:226 note_page+0x610/0x7b0()
x86/mm: Found insecure W+X mapping at address ffffffff81755000/__stop___ex_table+0xfa8/0xabfa8
[...]
Call Trace:
[<ffffffff81380a5f>] dump_stack+0x44/0x55
[<ffffffff8109d3f2>] warn_slowpath_common+0x82/0xc0
[<ffffffff8109d48c>] warn_slowpath_fmt+0x5c/0x80
[<ffffffff8106cfc9>] ? note_page+0x5c9/0x7b0
[<ffffffff8106d010>] note_page+0x610/0x7b0
[<ffffffff8106d409>] ptdump_walk_pgd_level_core+0x259/0x3c0
[<ffffffff8106d5a7>] ptdump_walk_pgd_level_checkwx+0x17/0x20
[<ffffffff81063905>] mark_rodata_ro+0xf5/0x100
[<ffffffff817415a0>] ? rest_init+0x80/0x80
[<ffffffff817415bd>] kernel_init+0x1d/0xe0
[<ffffffff8174cd1f>] ret_from_fork+0x3f/0x70
[<ffffffff817415a0>] ? rest_init+0x80/0x80
---[ end trace a1f23a1e42a2ac76 ]---
x86/mm: Checked W+X mappings: FAILED, 171 W+X pages found.
Signed-off-by: Stephen Smalley <sds(a)tycho.nsa.gov>
Acked-by: Kees Cook <keescook(a)chromium.org>
Cc: Andy Lutomirski <luto(a)amacapital.net>
Cc: Arjan van de Ven <arjan(a)linux.intel.com>
Cc: Borislav Petkov <bp(a)alien8.de>
Cc: Brian Gerst <brgerst(a)gmail.com>
Cc: Denys Vlasenko <dvlasenk(a)redhat.com>
Cc: H. Peter Anvin <hpa(a)zytor.com>
Cc: Linus Torvalds <torvalds(a)linux-foundation.org>
Cc: Mike Galbraith <efault(a)gmx.de>
Cc: Peter Zijlstra <peterz(a)infradead.org>
Cc: Thomas Gleixner <tglx(a)linutronix.de>
Cc: linux-kernel(a)vger.kernel.org
Link: http://lkml.kernel.org/r/1444064120-11450-1-git-send-email-sds@tycho.nsa.gov
[ Improved the Kconfig help text and made the new option default-y
if CONFIG_DEBUG_RODATA=y, because it already found buggy mappings,
so we really want people to have this on by default. ]
Signed-off-by: Ingo Molnar <mingo(a)kernel.org>
+-------------------------------------------------------+------------+------------+------+
| | 38a413cbc2 | e1a58320a3 | v4.4 |
+-------------------------------------------------------+------------+------------+------+
| boot_successes | 63 | 0 | 0 |
| boot_failures | 0 | 22 | 45 |
| WARNING:at_arch/x86/mm/dump_pagetables.c:#note_page() | 0 | 22 | 45 |
| calltrace:mark_rodata_ro | 0 | 22 | 45 |
+-------------------------------------------------------+------------+------------+------+
[ 50.648376] debug: unmapping init [mem 0xffff8800139e9000-0xffff8800139fffff]
[ 50.652158] debug: unmapping init [mem 0xffff880013d38000-0xffff880013dfffff]
[ 50.654923] ------------[ cut here ]------------
[ 50.655544] WARNING: CPU: 1 PID: 1 at arch/x86/mm/dump_pagetables.c:225 note_page+0x334/0x340()
[ 50.664908] x86/mm: Found insecure W+X mapping at address ffffffffc00f6000/0xffffffffc00f6000
[ 50.665893] Modules linked in:
[ 50.666282] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.3.0-rc3-00013-ge1a5832 #1
[ 50.667144] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
[ 50.680247] 00000000000000e1 ffff88000019fce8 ffffffff93698935 ffff880000198000
[ 50.681279] ffff88000019fd38 ffff88000019fd28 ffffffff93495f2d 0000000000000000
[ 50.682318] ffff88000019fe88 0000000000000000 0000000000000000 0000000000000004
[ 50.683342] Call Trace:
[ 50.683668] [<ffffffff93698935>] dump_stack+0x4c/0x67
[ 50.690347] [<ffffffff93495f2d>] warn_slowpath_common+0x8d/0xd0
[ 50.691179] [<ffffffff93496011>] warn_slowpath_fmt+0x41/0x50
[ 50.696101] [<ffffffff93448144>] note_page+0x334/0x340
[ 50.696723] [<ffffffff9344828a>] walk_pmd_level+0x13a/0x1c0
[ 50.697382] [<ffffffff9344840e>] walk_pud_level+0xfe/0x110
[ 50.698034] [<ffffffff934484d1>] ptdump_walk_pgd_level_core+0xb1/0x130
[ 50.698788] [<ffffffff93448572>] ptdump_walk_pgd_level_checkwx+0x12/0x20
[ 50.699680] [<ffffffff9343f6bc>] mark_rodata_ro+0xec/0x100
[ 50.708648] [<ffffffff939dc700>] ? rest_init+0x150/0x150
[ 50.709400] [<ffffffff939dc718>] kernel_init+0x18/0xe0
[ 50.712290] [<ffffffff939e3faf>] ret_from_fork+0x3f/0x70
[ 50.712991] [<ffffffff939dc700>] ? rest_init+0x150/0x150
[ 50.713686] ---[ end trace 77c60916b05835a9 ]---
[ 50.714324] x86/mm: Checked W+X mappings: FAILED, 2 W+X pages found.
git bisect start v4.4 v4.3 --
git bisect bad cd6caf550a2adc763c6301ecc0be01f422fb2aea # 10:51 0- 17 Merge tag 'for-linus-4.4' of git://git.code.sf.net/p/openipmi/linux-ipmi
git bisect bad 713009809681e5a7871e96e6992692c805b4480b # 10:58 0- 9 Merge tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4
git bisect bad ccf21b69a83afaee4d5499e0d03eacf23946e08c # 11:05 0- 5 Merge branch 'for-4.4/reservations' of git://git.kernel.dk/linux-block
git bisect good b831ef2cad979912850e34f82415c0c5d59de8cb # 11:19 22+ 0 Merge branch 'ras-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect bad ccc9d4a6d640cbde05d519edeb727881646cf71b # 11:31 0- 22 Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
git bisect good f323c49b300baf89e2cb4050b0def1856c0b1852 # 11:36 21+ 0 Merge branch 'x86-cpu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect good 4302d506d5f3419109abdd0d6e400ed6e8148209 # 11:47 22+ 0 Merge branch 'x86-headers-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect bad 639ab3eb38c6e92e27e061551dddee6dd3bbb5d2 # 11:53 0- 7 Merge branch 'x86-mm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect good 34437e67a6727885bdf6cbfd8441b1ac43a1ee65 # 12:00 22+ 0 x86/mm: Fix slow_virt_to_phys() to handle large PAT bit
git bisect good d551aaa2f7e1387fa66093ce9914c2e91f283a50 # 12:07 22+ 0 x86/mm: Fix __split_large_page() to handle large PAT bit
git bisect good 38a413cbc2b2834683b21823d964bc2d2f0abb82 # 12:18 21+ 0 Merge tag 'v4.3-rc3' into x86/mm, to pick up fixes before applying new changes
git bisect bad e1a58320a38dfa72be48a0f1a3a92273663ba6db # 12:25 0- 7 x86/mm: Warn on W^X mappings
# first bad commit: [e1a58320a38dfa72be48a0f1a3a92273663ba6db] x86/mm: Warn on W^X mappings
git bisect good 38a413cbc2b2834683b21823d964bc2d2f0abb82 # 12:29 63+ 0 Merge tag 'v4.3-rc3' into x86/mm, to pick up fixes before applying new changes
# extra tests with CONFIG_DEBUG_INFO_REDUCED
git bisect bad e1a58320a38dfa72be48a0f1a3a92273663ba6db # 12:38 0- 1 x86/mm: Warn on W^X mappings
# extra tests on HEAD of linus/master
# 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=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 512
-smp 2
-device e1000,netdev=net0
-netdev user,id=net0
-boot order=nc
-no-reboot
-watchdog i6300esb
-watchdog-action debug
-rtc base=localtime
-serial stdio
-display none
-monitor null
)
append=(
root=/dev/ram0
hung_task_panic=1
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
systemd.log_level=err
ignore_loglevel
earlyprintk=ttyS0,115200
console=ttyS0,115200
console=tty0
vga=normal
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
5 years, 9 months
[lkp] [btrfs] b59d039fe0: WARNING: CPU: 1 PID: 14379 at fs/btrfs/extent-tree.c:10035 btrfs_free_block_groups+0x29b/0x420 [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 b59d039fe07948449b61473a27f4752eb7f7f4c5 ("btrfs: update btrfs_space_info's bytes_may_use timely")
in testcase: xfstests
with following parameters:
disk: 4HDD
fs: btrfs
test: generic-quick1
on test machine: 4 threads Sandy Bridge with 6G memory
caused below changes:
+-------------------------------------------------------------------+------------+------------+
| | 15bfea7633 | b59d039fe0 |
+-------------------------------------------------------------------+------------+------------+
| boot_successes | 5 | 4 |
| boot_failures | 0 | 4 |
| WARNING:at_fs/btrfs/extent-tree.c:#btrfs_free_block_groups[btrfs] | 0 | 4 |
+-------------------------------------------------------------------+------------+------------+
[ 117.256126] BTRFS info (device dm-0): has skinny extents
[ 117.280474] BTRFS info (device dm-0): checking UUID tree
[ 117.394845] ------------[ cut here ]------------
[ 117.400772] WARNING: CPU: 1 PID: 14379 at fs/btrfs/extent-tree.c:10035 btrfs_free_block_groups+0x29b/0x420 [btrfs]
[ 117.415465] Modules linked in: dm_flakey dm_mod rpcsec_gss_krb5 auth_rpcgss nfsv4 dns_resolver netconsole btrfs xor raid6_pq sg sd_mod snd_hda_codec_hdmi ata_generic snd_hda_codec_realtek snd_hda_codec_generic pata_acpi x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel i915 kvm irqbypass crct10dif_pclmul crc32_pclmul drm_kms_helper syscopyarea crc32c_intel sysfillrect sysimgblt ghash_clmulni_intel fb_sys_fops eeepc_wmi aesni_intel lrw snd_hda_intel asus_wmi sparse_keymap rfkill snd_hda_codec snd_hda_core snd_hwdep ppdev gf128mul ata_piix pata_via glue_helper ablk_helper snd_pcm cryptd pcspkr serio_raw libata drm snd_timer snd soundcore shpchp wmi parport_pc parport tpm_infineon video
[ 117.484574] CPU: 1 PID: 14379 Comm: umount Not tainted 4.7.0-rc6-00083-gb59d039 #1
[ 117.493150] Hardware name: System manufacturer System Product Name/P8H67-M PRO, BIOS 1002 04/01/2011
[ 117.503299] 0000000000000000 ffff8800a3cffcf0 ffffffff8143669b 0000000000000000
[ 117.511820] 0000000000000000 ffff8800a3cffd30 ffffffff8107d3fb 0000273300000000
[ 117.520330] ffff8800a47ed288 ffff8800ac282000 ffff8800a47ed200 ffff8800a47ed000
[ 117.528833] Call Trace:
[ 117.532295] [<ffffffff8143669b>] dump_stack+0x63/0x88
[ 117.538438] [<ffffffff8107d3fb>] __warn+0xcb/0xf0
[ 117.544237] [<ffffffff8107d4ed>] warn_slowpath_null+0x1d/0x20
[ 117.551085] [<ffffffffa05581ab>] btrfs_free_block_groups+0x29b/0x420 [btrfs]
[ 117.559241] [<ffffffffa056a1b0>] close_ctree+0x190/0x370 [btrfs]
[ 117.566347] [<ffffffff8121f1e9>] ? evict_inodes+0x189/0x1a0
[ 117.573029] [<ffffffffa053a9c9>] btrfs_put_super+0x19/0x20 [btrfs]
[ 117.580308] [<ffffffff81203acf>] generic_shutdown_super+0x6f/0x100
[ 117.587579] [<ffffffff81203df2>] kill_anon_super+0x12/0x20
[ 117.594167] [<ffffffffa053b7a8>] btrfs_kill_super+0x18/0x110 [btrfs]
[ 117.601613] [<ffffffff81203fa3>] deactivate_locked_super+0x43/0x70
[ 117.608875] [<ffffffff8120448a>] deactivate_super+0x5a/0x60
[ 117.615515] [<ffffffff8122288f>] cleanup_mnt+0x3f/0x90
[ 117.621720] [<ffffffff81222922>] __cleanup_mnt+0x12/0x20
[ 117.628091] [<ffffffff8109b138>] task_work_run+0x88/0xc0
[ 117.634470] [<ffffffff81003312>] exit_to_usermode_loop+0xc2/0xd0
[ 117.641532] [<ffffffff81003c31>] syscall_return_slowpath+0xa1/0xb0
[ 117.648770] [<ffffffff8191c03a>] entry_SYSCALL_64_fastpath+0xa2/0xa4
[ 117.656175] ---[ end trace 47dd91067f6b27cc ]---
[ 117.656753] systemd-journald[141]: Compressed data object 695 -> 516
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,
Xiaolong
5 years, 9 months
[lkp] [x86/mm] 7388805262: WARNING: CPU: 0 PID: 1 at arch/x86/lib/usercopy.c:62 arch_within_stack_frames+0x15e/0x1c0
by kernel test robot
FYI, we noticed the following commit:
https://github.com/jpoimboe/linux unwind-v4
commit 738880526261008796f41d1dfdbf91eb99586f60 ("x86/mm: convert arch_within_stack_frames() to use the new unwinder")
in testcase: boot
on test machine: qemu-system-i386 -enable-kvm -m 256M
caused below changes:
+------------------------------------------------------------------+------------+------------+
| | 700b7bc149 | 7388805262 |
+------------------------------------------------------------------+------------+------------+
| boot_successes | 4 | 0 |
| boot_failures | 2 | 6 |
| invoked_oom-killer:gfp_mask=0x | 2 | 3 |
| Mem-Info | 2 | 3 |
| WARNING:at_arch/x86/lib/usercopy.c:#arch_within_stack_frames | 0 | 6 |
| page_allocation_failure:order:#,mode:#(GFP_KERNEL|__GFP_NORETRY) | 0 | 1 |
| warn_alloc_failed+0x | 0 | 1 |
+------------------------------------------------------------------+------------+------------+
[ 2.246788] PCI: CLS 0 bytes, default 32
[ 2.248068] Unpacking initramfs...
[ 2.249574] ------------[ cut here ]------------
[ 2.250855] WARNING: CPU: 0 PID: 1 at arch/x86/lib/usercopy.c:62 arch_within_stack_frames+0x15e/0x1c0
[ 2.253963] Modules linked in:
[ 2.254823] CPU: 0 PID: 1 Comm: swapper Not tainted 4.8.0-rc2-00114-g7388805 #1
[ 2.256984] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
[ 2.259432] 4f085c48 4137df76 4f085c78 4103d87b 4179e288 00000000 00000001 417ca910
[ 2.261952] 0000003e 4138b58e 0000003e 4f084000 4f085d30 4f086000 4f085c8c 4103d94a
[ 2.264618] 00000009 00000000 00000000 4f085cc8 4138b58e 4f085cc8 00000000 00000000
[ 2.266972] Call Trace:
[ 2.267803] [<4137df76>] ? dump_stack+0x16/0x20
[ 2.269160] [<4103d87b>] ? __warn+0xdb/0x100
[ 2.270288] [<4138b58e>] ? arch_within_stack_frames+0x15e/0x1c0
FYI, raw QEMU command line is:
qemu-system-i386 -enable-kvm -kernel /pkg/linux/i386-randconfig-i1-201633/gcc-4.8/738880526261008796f41d1dfdbf91eb99586f60/vmlinuz-4.8.0-rc2-00114-g7388805 -append 'ip=::::vm-intel12-openwrt-i386-8::dhcp root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-intel12-openwrt-i386-8/boot-1-openwrt-i386.cgz-738880526261008796f41d1dfdbf91eb99586f60-20160818-9072-115qqe3-0.yaml ARCH=i386 kconfig=i386-randconfig-i1-201633 branch=linux-devel/devel-catchup-201608180006 commit=738880526261008796f41d1dfdbf91eb99586f60 BOOT_IMAGE=/pkg/linux/i386-randconfig-i1-201633/gcc-4.8/738880526261008796f41d1dfdbf91eb99586f60/vmlinuz-4.8.0-rc2-00114-g7388805 max_uptime=600 RESULT_ROOT=/result/boot/1/vm-intel12-openwrt-i386/openwrt-i386.cgz/i386-randconfig-i1-201633/gcc-4.8/738880526261008796f41d1dfdbf91eb99586f60/0 LKP_SERVER=inn 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 systemd.log_level=err ignore_loglevel earlyprintk=ttyS0,115200 console=ttyS0,115200 console=tty0 vga=normal rw drbd.minor_count=8' -initrd /fs/KVM/initrd-vm-intel12-openwrt-i386-8 -m 256 -smp 1 -device e1000,netdev=net0 -netdev user,id=net0 -boot order=nc -no-reboot -watchdog i6300esb -watchdog-action debug -rtc base=localtime -drive file=/fs/KVM/disk0-vm-intel12-openwrt-i386-8,media=disk,if=virtio -drive file=/fs/KVM/disk1-vm-intel12-openwrt-i386-8,media=disk,if=virtio -pidfile /dev/shm/kboot/pid-vm-intel12-openwrt-i386-8 -serial file:/dev/shm/kboot/serial-vm-intel12-openwrt-i386-8 -daemonize -display none -monitor null
Thanks,
Xiaolong
5 years, 9 months
[x86/uaccess] 5b710f34e1: kernel BUG at mm/usercopy.c:75!
by kernel test robot
FYI, we noticed the following commit:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
commit 5b710f34e194c6b7710f69fdb5d798fdf35b98c1 ("x86/uaccess: Enable hardened usercopy")
in testcase: boot
on test machine: 1 threads qemu-system-i386 -enable-kvm with 360M memory
caused below changes:
+------------------------------------------+------------+------------+
| | f5509cc18d | 5b710f34e1 |
+------------------------------------------+------------+------------+
| boot_successes | 12 | 0 |
| boot_failures | 0 | 19 |
| kernel_BUG_at_mm/usercopy.c | 0 | 19 |
| EIP_is_at__check_object_size | 0 | 19 |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 19 |
+------------------------------------------+------------+------------+
[ 177.875629] usercopy: kernel memory overwrite attempt detected to 80028f40 (<spans multiple pages>) (512 bytes)
[ 177.965655] ------------[ cut here ]------------
[ 177.965655] ------------[ cut here ]------------
[ 177.976995] kernel BUG at mm/usercopy.c:75!
[ 177.976995] kernel BUG at mm/usercopy.c:75!
[ 177.991519] invalid opcode: 0000 [#1]
[ 177.991519] invalid opcode: 0000 [#1]
[ 178.000490] CPU: 0 PID: 1 Comm: init Not tainted 4.7.0-00004-g5b710f3 #2
[ 178.000490] CPU: 0 PID: 1 Comm: init Not tainted 4.7.0-00004-g5b710f3 #2
[ 178.016498] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
[ 178.016498] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
[ 178.037761] task: 80028000 ti: 8002a000 task.ti: 8002a000
[ 178.037761] task: 80028000 ti: 8002a000 task.ti: 8002a000
[ 178.050690] EIP: 0060:[<8110a056>] EFLAGS: 00010246 CPU: 0
[ 178.050690] EIP: 0060:[<8110a056>] EFLAGS: 00010246 CPU: 0
[ 178.064166] EIP is at __check_object_size+0x202/0x258
[ 178.064166] EIP is at __check_object_size+0x202/0x258
[ 178.076286] EAX: 00000063 EBX: 80028f40 ECX: 810945ac EDX: 80028000
[ 178.076286] EAX: 00000063 EBX: 80028f40 ECX: 810945ac EDX: 80028000
[ 178.091360] ESI: 817c7dfa EDI: 94b3a5a0 EBP: 8002beac ESP: 8002be7c
[ 178.091360] ESI: 817c7dfa EDI: 94b3a5a0 EBP: 8002beac ESP: 8002be7c
[ 178.116671] DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068
[ 178.116671] DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068
[ 178.129596] CR0: 80050033 CR2: 775e1460 CR3: 0dfbc000 CR4: 00000690
[ 178.129596] CR0: 80050033 CR2: 775e1460 CR3: 0dfbc000 CR4: 00000690
[ 178.154127] Stack:
[ 178.154127] Stack:
[ 178.170232] 817c7e39
[ 178.170232] 817c7e39 817c7e03 817c7e03 8184213b 8184213b 80028f40 80028f40 817c7dcc 817c7dcc 00000200 00000200 94b3a000 94b3a000 00028000 00028000
[ 178.205104] 00000200
[ 178.205104] 00000200 7ffcbc40 7ffcbc40 80028000 80028000 00000200 00000200 8002bf44 8002bf44 81047847 81047847 80028f40 80028f40 80028f00 80028f00
[ 178.246126] 00000000
[ 178.246126] 00000000 00000000 00000000 00000000 00000000 7ffcbbd0 7ffcbbd0 81045015 81045015 80028000 80028000 8002bef8 8002bef8 81081804 81081804
[ 178.290075] Call Trace:
[ 178.290075] Call Trace:
[ 178.303259] [<81047847>] __fpu__restore_sig+0x14f/0x439
[ 178.303259] [<81047847>] __fpu__restore_sig+0x14f/0x439
[ 178.328374] [<81045015>] ? sched_clock+0x9/0xd
[ 178.328374] [<81045015>] ? sched_clock+0x9/0xd
[ 178.350312] [<81081804>] ? sched_clock_cpu+0x19/0xc8
FYI, raw QEMU command line is:
qemu-system-i386 -enable-kvm -kernel /pkg/linux/i386-randconfig-w0-08170631/gcc-6/5b710f34e194c6b7710f69fdb5d798fdf35b98c1/vmlinuz-4.7.0-00004-g5b710f3 -append 'ip=::::vm-lkp-wsx03-quantal-i386-6::dhcp root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-lkp-wsx03-quantal-i386-6/boot-1-quantal-core-i386.cgz-5b710f34e194c6b7710f69fdb5d798fdf35b98c1-20160817-52554-1cf9h0a-0.yaml ARCH=i386 kconfig=i386-randconfig-w0-08170631 branch=linus/master commit=5b710f34e194c6b7710f69fdb5d798fdf35b98c1 BOOT_IMAGE=/pkg/linux/i386-randconfig-w0-08170631/gcc-6/5b710f34e194c6b7710f69fdb5d798fdf35b98c1/vmlinuz-4.7.0-00004-g5b710f3 max_uptime=600 RESULT_ROOT=/result/boot/1/vm-lkp-wsx03-quantal-i386/quantal-core-i386.cgz/i386-randconfig-w0-08170631/gcc-6/5b710f34e194c6b7710f69fdb5d798fdf35b98c1/0 LKP_SERVER=inn 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 systemd.log_level=err ignore_loglevel earlyprintk=ttyS0,115200 console=ttyS0,115200 console=tty0 vga=normal rw drbd.minor_count=8' -initrd /fs/sdc1/initrd-vm-lkp-wsx03-quantal-i386-6 -m 360 -smp 1 -device e1000,netdev=net0 -netdev user,id=net0 -boot order=nc -no-reboot -watchdog i6300esb -watchdog-action debug -rtc base=localtime -pidfile /dev/shm/kboot/pid-vm-lkp-wsx03-quantal-i386-6 -serial file:/dev/shm/kboot/serial-vm-lkp-wsx03-quantal-i386-6 -daemonize -display none -monitor null
Thanks,
Kernel Test Robot
5 years, 9 months
[x86/uaccess] 5b710f34e1: kernel BUG at mm/usercopy.c:75!
by kernel test robot
FYI, we noticed the following commit:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
commit 5b710f34e194c6b7710f69fdb5d798fdf35b98c1 ("x86/uaccess: Enable hardened usercopy")
in testcase: boot
on test machine: 1 threads qemu-system-i386 -enable-kvm with 360M memory
caused below changes:
+------------------------------------------+------------+------------+
| | f5509cc18d | 5b710f34e1 |
+------------------------------------------+------------+------------+
| boot_successes | 12 | 0 |
| boot_failures | 0 | 19 |
| kernel_BUG_at_mm/usercopy.c | 0 | 19 |
| EIP_is_at__check_object_size | 0 | 19 |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 19 |
+------------------------------------------+------------+------------+
[ 177.875629] usercopy: kernel memory overwrite attempt detected to 80028f40 (<spans multiple pages>) (512 bytes)
[ 177.965655] ------------[ cut here ]------------
[ 177.965655] ------------[ cut here ]------------
[ 177.976995] kernel BUG at mm/usercopy.c:75!
[ 177.976995] kernel BUG at mm/usercopy.c:75!
[ 177.991519] invalid opcode: 0000 [#1]
[ 177.991519] invalid opcode: 0000 [#1]
[ 178.000490] CPU: 0 PID: 1 Comm: init Not tainted 4.7.0-00004-g5b710f3 #2
[ 178.000490] CPU: 0 PID: 1 Comm: init Not tainted 4.7.0-00004-g5b710f3 #2
[ 178.016498] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
[ 178.016498] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
[ 178.037761] task: 80028000 ti: 8002a000 task.ti: 8002a000
[ 178.037761] task: 80028000 ti: 8002a000 task.ti: 8002a000
[ 178.050690] EIP: 0060:[<8110a056>] EFLAGS: 00010246 CPU: 0
[ 178.050690] EIP: 0060:[<8110a056>] EFLAGS: 00010246 CPU: 0
[ 178.064166] EIP is at __check_object_size+0x202/0x258
[ 178.064166] EIP is at __check_object_size+0x202/0x258
[ 178.076286] EAX: 00000063 EBX: 80028f40 ECX: 810945ac EDX: 80028000
[ 178.076286] EAX: 00000063 EBX: 80028f40 ECX: 810945ac EDX: 80028000
[ 178.091360] ESI: 817c7dfa EDI: 94b3a5a0 EBP: 8002beac ESP: 8002be7c
[ 178.091360] ESI: 817c7dfa EDI: 94b3a5a0 EBP: 8002beac ESP: 8002be7c
[ 178.116671] DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068
[ 178.116671] DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068
[ 178.129596] CR0: 80050033 CR2: 775e1460 CR3: 0dfbc000 CR4: 00000690
[ 178.129596] CR0: 80050033 CR2: 775e1460 CR3: 0dfbc000 CR4: 00000690
[ 178.154127] Stack:
[ 178.154127] Stack:
[ 178.170232] 817c7e39
[ 178.170232] 817c7e39 817c7e03 817c7e03 8184213b 8184213b 80028f40 80028f40 817c7dcc 817c7dcc 00000200 00000200 94b3a000 94b3a000 00028000 00028000
[ 178.205104] 00000200
[ 178.205104] 00000200 7ffcbc40 7ffcbc40 80028000 80028000 00000200 00000200 8002bf44 8002bf44 81047847 81047847 80028f40 80028f40 80028f00 80028f00
[ 178.246126] 00000000
[ 178.246126] 00000000 00000000 00000000 00000000 00000000 7ffcbbd0 7ffcbbd0 81045015 81045015 80028000 80028000 8002bef8 8002bef8 81081804 81081804
[ 178.290075] Call Trace:
[ 178.290075] Call Trace:
[ 178.303259] [<81047847>] __fpu__restore_sig+0x14f/0x439
[ 178.303259] [<81047847>] __fpu__restore_sig+0x14f/0x439
[ 178.328374] [<81045015>] ? sched_clock+0x9/0xd
[ 178.328374] [<81045015>] ? sched_clock+0x9/0xd
[ 178.350312] [<81081804>] ? sched_clock_cpu+0x19/0xc8
FYI, raw QEMU command line is:
qemu-system-i386 -enable-kvm -kernel /pkg/linux/i386-randconfig-w0-08170631/gcc-6/5b710f34e194c6b7710f69fdb5d798fdf35b98c1/vmlinuz-4.7.0-00004-g5b710f3 -append 'ip=::::vm-lkp-wsx03-quantal-i386-6::dhcp root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-lkp-wsx03-quantal-i386-6/boot-1-quantal-core-i386.cgz-5b710f34e194c6b7710f69fdb5d798fdf35b98c1-20160817-52554-1cf9h0a-0.yaml ARCH=i386 kconfig=i386-randconfig-w0-08170631 branch=linus/master commit=5b710f34e194c6b7710f69fdb5d798fdf35b98c1 BOOT_IMAGE=/pkg/linux/i386-randconfig-w0-08170631/gcc-6/5b710f34e194c6b7710f69fdb5d798fdf35b98c1/vmlinuz-4.7.0-00004-g5b710f3 max_uptime=600 RESULT_ROOT=/result/boot/1/vm-lkp-wsx03-quantal-i386/quantal-core-i386.cgz/i386-randconfig-w0-08170631/gcc-6/5b710f34e194c6b7710f69fdb5d798fdf35b98c1/0 LKP_SERVER=inn 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 systemd.log_level=err ignore_loglevel earlyprintk=ttyS0,115200 console=ttyS0,115200 console=tty0 vga=normal rw drbd.minor_count=8' -initrd /fs/sdc1/initrd-vm-lkp-wsx03-quantal-i386-6 -m 360 -smp 1 -device e1000,netdev=net0 -netdev user,id=net0 -boot order=nc -no-reboot -watchdog i6300esb -watchdog-action debug -rtc base=localtime -pidfile /dev/shm/kboot/pid-vm-lkp-wsx03-quantal-i386-6 -serial file:/dev/shm/kboot/serial-vm-lkp-wsx03-quantal-i386-6 -daemonize -display none -monitor null
Thanks,
Kernel Test Robot
5 years, 9 months