[mm, oom_adj] 9954f89181: INFO: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected ]
by kernel test robot
FYI, we noticed the following commit:
https://github.com/0day-ci/linux Michal-Hocko/Handle-oom-bypass-more-gracefully/20160530-210927
commit 9954f891814d3f23e10036d2b6404cc80aaa461b ("mm, oom_adj: make sure processes sharing mm have same view of oom_score_adj")
on test machine: vm-kbuild-1G: 2 threads qemu-system-x86_64 -enable-kvm -cpu Haswell,+smep,+smap with 1G memory
caused below changes:
+----------------+------------+------------+
| | 04e2f60b36 | 9954f89181 |
+----------------+------------+------------+
| boot_successes | 8 | 4 |
+----------------+------------+------------+
======================================================
======================================================
[ INFO: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected ]
[ INFO: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected ]
4.7.0-rc1-next-20160530-00003-g9954f89 #288 Not tainted
4.7.0-rc1-next-20160530-00003-g9954f89 #288 Not tainted
------------------------------------------------------
------------------------------------------------------
(md-udevd)/256 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire:
(md-udevd)/256 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire:
( (&(&p->alloc_lock)->rlock&(&p->alloc_lock)->rlock){+.+...}){+.+...}, at: , at: [<ffffffff811d1008>] find_lock_task_mm+0x98/0x1b0
[<ffffffff811d1008>] find_lock_task_mm+0x98/0x1b0
and this task is already holding:
and this task is already holding:
( (&(&sighand->siglock)->rlock&(&sighand->siglock)->rlock){......}){......}, at: , at: [<ffffffff810c1e09>] __lock_task_sighand+0xd9/0x370
[<ffffffff810c1e09>] __lock_task_sighand+0xd9/0x370
which would create a new lock dependency:
which would create a new lock dependency:
( (&(&sighand->siglock)->rlock&(&sighand->siglock)->rlock){......}){......} -> -> ( (&(&p->alloc_lock)->rlock&(&p->alloc_lock)->rlock){+.+...}){+.+...}
FYI, raw QEMU command line is:
qemu-system-x86_64 -enable-kvm -cpu Haswell,+smep,+smap -kernel /pkg/linux/x86_64-randconfig-i0-201622/gcc-6/9954f891814d3f23e10036d2b6404cc80aaa461b/vmlinuz-4.7.0-rc1-next-20160530-00003-g9954f89 -append 'root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-kbuild-1G-11/bisect_boot-1-debian-x86_64-2015-02-07.cgz-x86_64-randconfig-i0-201622-9954f891814d3f23e10036d2b6404cc80aaa461b-20160531-56076-kodgfu-0.yaml ARCH=x86_64 kconfig=x86_64-randconfig-i0-201622 branch=linux-devel/devel-catchup-201605302311 commit=9954f891814d3f23e10036d2b6404cc80aaa461b BOOT_IMAGE=/pkg/linux/x86_64-randconfig-i0-201622/gcc-6/9954f891814d3f23e10036d2b6404cc80aaa461b/vmlinuz-4.7.0-rc1-next-20160530-00003-g9954f89 max_uptime=600 RESULT_ROOT=/result/boot/1/vm-kbuild-1G/debian-x86_64-2015-02-07.cgz/x86_64-randconfig-i0-201622/gcc-6/9954f891814d3f23e10036d2b6404cc80aaa461b/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-1G-11::dhcp' -initrd /fs/sdf1/initrd-vm-kbuild-1G-11 -m 1024 -smp 2 -device e1000,netdev=net0 -netdev user,id=net0,hostfwd=tcp::23010-:22 -boot order=nc -no-reboot -watchdog i6300esb -rtc base=localtime -device virtio-scsi-pci,id=scsi0 -drive file=/fs/sdf1/disk0-vm-kbuild-1G-11,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/sdf1/disk1-vm-kbuild-1G-11,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/sdf1/disk2-vm-kbuild-1G-11,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/sdf1/disk3-vm-kbuild-1G-11,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/sdf1/disk4-vm-kbuild-1G-11,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-11 -serial file:/dev/shm/kboot/serial-vm-kbuild-1G-11 -daemonize -display none -monitor null
Thanks,
Kernel Test Robot
4 years, 10 months
[thermal: core] 97d8135659: WARNING: CPU: 0 PID: 1 at fs/sysfs/group.c:61 internal_create_group
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 Eduardo-Valentin/thermal-core-prevent-zones-with-no-types-to-be-registered/20160531-054136
commit 97d8135659e25ffd8c586e3f406e9cc531ec9ada
Author: Eduardo Valentin <edubezval(a)gmail.com>
AuthorDate: Mon May 30 14:27:23 2016 -0700
Commit: 0day robot <fengguang.wu(a)intel.com>
CommitDate: Tue May 31 05:41:39 2016 +0800
thermal: core: use dev.groups to manage always present tz attributes
Thermal zones attributes are all being created using
device_create_file(). This has the disadvantage of making the code
complicated and sometimes we may miss the cleanup of them.
This patch starts to move the thermal zone sysfs attributes to the
dev.groups, so Linux device core manage them for us. For now, this patch
only moves those attributes are always present regardless of thermal
zone condition.
This change has also the advantage of cleaning up the thermal zone
parameters sysfs entries that are left unclean after device
registration.
Cc: Zhang Rui <rui.zhang(a)intel.com>
Cc: linux-pm(a)vger.kernel.org
Cc: linux-kernel(a)vger.kernel.org
Signed-off-by: Eduardo Valentin <edubezval(a)gmail.com>
+----------------------------------------------------+------------+------------+------------+
| | 00df3b0fa7 | 97d8135659 | 3235aa7037 |
+----------------------------------------------------+------------+------------+------------+
| boot_successes | 63 | 0 | 0 |
| boot_failures | 0 | 22 | 13 |
| WARNING:at_fs/sysfs/group.c:#internal_create_group | 0 | 22 | 13 |
| BUG:unable_to_handle_kernel | 0 | 22 | 13 |
| Oops | 0 | 22 | 13 |
| EIP_is_at_string | 0 | 22 | 13 |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 22 | 13 |
| backtrace:power_supply_register | 0 | 22 | 13 |
| backtrace:test_power_init | 0 | 22 | 13 |
| backtrace:kernel_init_freeable | 0 | 22 | 13 |
+----------------------------------------------------+------------+------------+------------+
[ 9.247998] power_supply test_battery: uevent
[ 9.248630] power_supply test_battery: POWER_SUPPLY_NAME=test_battery
[ 9.253672] ------------[ cut here ]------------
[ 9.254381] WARNING: CPU: 0 PID: 1 at fs/sysfs/group.c:61 internal_create_group+0x20e/0x2b0
[ 9.255723] BUG: unable to handle kernel paging request at 6c756d65
[ 9.256688] IP: [<c8feab11>] string+0x21/0x90
[ 9.257367] *pdpt = 0000000000000000 *pde = 0000000000000000
[ 9.258217] Oops: 0000 [#1] PREEMPT SMP
[ 9.258806] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.6.0-rc6-00055-g97d8135 #109
[ 9.259952] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
[ 9.261204] task: cf43c000 ti: cf43e000 task.ti: cf43e000
[ 9.261929] EIP: 0060:[<c8feab11>] EFLAGS: 00010086 CPU: 0
[ 9.262771] EIP is at string+0x21/0x90
[ 9.263335] EAX: ca5dc7aa EBX: cf43fe20 ECX: 6c756d65 EDX: ffffffff
[ 9.278285] ESI: fffffffe EDI: 00000002 EBP: cf43fd44 ESP: cf43fd34
[ 9.279146] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
[ 9.279896] CR0: 80050033 CR2: 6c756d65 CR3: 09e45000 CR4: 000406b0
[ 9.280866] Stack:
[ 9.281166] ca5dcb80 cf43fe20 ca5dc7aa 00000002 cf43fd78 c8fec580 ffffff04 ffff0a00
[ 9.282400] ca5dc7a0 000003e0 ca5dcb80 c9a90b4c ffffff04 ffff0a00 000003e0 00000000
[ 9.283659] c8f87d4e cf43fd88 c8fecd8e cf43fe1c 00000000 cf43fdac c8ea0eac cf43fe1c
[ 9.284899] Call Trace:
[ 9.285266] [<c8fec580>] vsnprintf+0xf0/0x480
[ 9.285879] [<c8f87d4e>] ? internal_create_group+0x20e/0x2b0
[ 9.286746] [<c8fecd8e>] vscnprintf+0xe/0x40
[ 9.287397] [<c8ea0eac>] vprintk_emit+0x8c/0x510
[ 9.302114] [<c8f87d4e>] ? internal_create_group+0x20e/0x2b0
[ 9.302920] [<c8ea1346>] vprintk+0x16/0x20
[ 9.303516] [<c8e4a207>] __warn+0x57/0xd0
[ 9.304076] [<c8e4a2a8>] warn_slowpath_fmt+0x28/0x30
[ 9.304892] [<c8f87d4e>] internal_create_group+0x20e/0x2b0
[ 9.305704] [<c8f87ed3>] sysfs_create_groups+0x33/0x90
[ 9.306449] [<c9198abd>] device_add+0x59d/0x5f0
[ 9.307142] [<c91a5dd0>] ? pm_runtime_init+0xe0/0xf0
[ 9.307839] [<c9198bf2>] device_register+0x12/0x20
[ 9.308564] [<c94c7ecf>] thermal_zone_device_register+0x14f/0x590
[ 9.309485] [<c9467ab5>] __power_supply_register+0x265/0x310
[ 9.310304] [<c9467f6a>] power_supply_register+0xa/0x10
[ 9.311029] [<c9c917a5>] test_power_init+0x1d/0x84
[ 9.311785] [<c9c91788>] ? wm831x_power_driver_init+0x11/0x11
[ 9.312629] [<c9c57bac>] do_one_initcall+0xd0/0x151
[ 9.313332] [<c9c574ce>] ? set_debug_rodata+0xf/0xf
[ 9.314010] [<c8e64969>] ? parse_args+0x259/0x450
[ 9.332793] [<c9c57cfb>] ? kernel_init_freeable+0xce/0x16a
[ 9.333607] [<c9c57d1e>] kernel_init_freeable+0xf1/0x16a
[ 9.334369] [<c97d2bc8>] kernel_init+0x8/0xf0
[ 9.334964] [<c97da449>] ret_from_kernel_thread+0x21/0x38
[ 9.335803] [<c97d2bc0>] ? rest_init+0x120/0x120
[ 9.336486] Code: 74 26 00 8d bc 27 00 00 00 00 55 89 e5 57 56 53 83 ec 04 89 55 f0 8b 55 0c c1 fa 10 81 f9 ff 0f 00 00 8d 72 ff 76 53 85 d2 74 5f <0f> b6 19 8d 79 01 84 db 74 55 83 c6 01 b9 01 00 00 00 eb 0f 8d
[ 9.340346] EIP: [<c8feab11>] string+0x21/0x90 SS:ESP 0068:cf43fd34
[ 9.341267] CR2: 000000006c756d65
[ 9.341787] ---[ end trace 74ad2750544ebaea ]---
[ 9.342455] Kernel panic - not syncing: Fatal exception
git bisect start 3235aa7037fd530e6b3cd3fa09a31c4159b93f3d v4.6 --
git bisect good 68691a7d8fc680e62ac25eb72d828ae0d9a9575a # 10:43 22+ 0 Merge 'renesas/dt-for-v4.8' into devel-spot-201605310956
git bisect good ea56ac5a4e477d72a92cba946cc7e4bdb9267d19 # 10:49 22+ 0 Merge 'spi/for-linus' into devel-spot-201605310956
git bisect bad 1df51c3d7ca8f709696dc6e3e0c0460ab6af2178 # 10:52 0- 21 Merge 'linux-review/Taeung-Song/perf-config-Reimplement-perf_config-using-perf_config_set__inter/20160531-091823' into devel-spot-201605310956
git bisect good aa5f145eb406e53aa42cfa691ca75e21b035ac14 # 10:58 22+ 1 Merge 'padovan/sync' into devel-spot-201605310956
git bisect bad d653fe96997012e4b733e419bffb43f4925c3432 # 11:07 0- 22 Merge 'linux-review/Eduardo-Valentin/thermal-core-prevent-zones-with-no-types-to-be-registered/20160531-054136' into devel-spot-201605310956
git bisect bad 35580bbd034992b00ee0e7a3bbe7e9a9bde16ee8 # 11:11 0- 8 thermal: core: move mode attribute to tz->device.groups
git bisect good 00df3b0fa7ca4bd4bd975040d1e4003fb208d2f3 # 11:17 22+ 0 thermal: core: group device_create_file() calls that are always created
git bisect bad 1c42dd7b0f28a4c9f0be4b0071c100f3c7ed82b3 # 11:25 0- 22 thermal: core: move emul_temp creation to tz->device.groups
git bisect bad 97d8135659e25ffd8c586e3f406e9cc531ec9ada # 11:30 0- 22 thermal: core: use dev.groups to manage always present tz attributes
# first bad commit: [97d8135659e25ffd8c586e3f406e9cc531ec9ada] thermal: core: use dev.groups to manage always present tz attributes
git bisect good 00df3b0fa7ca4bd4bd975040d1e4003fb208d2f3 # 11:33 63+ 0 thermal: core: group device_create_file() calls that are always created
# extra tests with CONFIG_DEBUG_INFO_REDUCED
git bisect bad 97d8135659e25ffd8c586e3f406e9cc531ec9ada # 11:38 0- 66 thermal: core: use dev.groups to manage always present tz attributes
# extra tests on HEAD of linux-devel/devel-spot-201605310956
git bisect bad 3235aa7037fd530e6b3cd3fa09a31c4159b93f3d # 11:38 0- 13 0day head guard for 'devel-spot-201605310956'
# extra tests on tree/branch linux-review/Eduardo-Valentin/thermal-core-prevent-zones-with-no-types-to-be-registered/20160531-054136
git bisect bad 9c0c578957cdc0972c2779f34dfbb45932f4f778 # 11:52 0- 44 thermal: sysfs: remove symbols of emul_temp when config is disabled
# 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, 10 months
[random] 0891fb16f2: general protection fault: 0000 [#1] SMP
by kernel test robot
FYI, we noticed the following commit:
https://git.kernel.org/pub/scm/linux/kernel/git/tytso/random.git dev
commit 0891fb16f2ea9000e5380031af77395d489cefd6 ("random: make /dev/urandom scalable for silly userspace programs")
on test machine: vm-kbuild-yocto-x86_64: 1 threads qemu-system-x86_64 -enable-kvm -cpu SandyBridge with 320M memory
caused below changes:
+---------------------------------------------------------+------------+------------+
| | b569608ded | 0891fb16f2 |
+---------------------------------------------------------+------------+------------+
| boot_successes | 32 | 0 |
| boot_failures | 0 | 27 |
| general_protection_fault:#[##]SMP | 0 | 27 |
| RIP:__lock_acquire | 0 | 27 |
| RIP:do_raw_spin_trylock | 0 | 27 |
| WARNING:at_include/linux/uaccess.h:#__probe_kernel_read | 0 | 12 |
| BUG:kernel_boot_hang | 0 | 24 |
| backtrace:rand_initialize | 0 | 27 |
| backtrace:kernel_init_freeable | 0 | 27 |
| backtrace:get_random_bytes | 0 | 27 |
| backtrace:init_oops_id | 0 | 27 |
+---------------------------------------------------------+------------+------------+
[ 2.409725] TSC deadline timer enabled
[ 2.411030] smpboot: CPU0: Intel Xeon E312xx (Sandy Bridge) (family: 0x6, model: 0x2a, stepping: 0x1)
[ 2.432179] Performance Events: unsupported p6 CPU model 42 no PMU driver, software events only.
[ 2.436726] general protection fault: 0000 [#1] SMP
[ 2.438391] Modules linked in:
[ 2.439836] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.7.0-rc1-00002-g0891fb1 #1
[ 2.444724] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
[ 2.447799] task: ffff880012be8040 ti: ffff880012bec000 task.ti: ffff880012bec000
[ 2.454528] RIP: 0010:[<ffffffff810eab9d>] [<ffffffff810eab9d>] __lock_acquire+0xb0/0x1591
[ 2.477282] RSP: 0000:ffff880012befc40 EFLAGS: 00010002
[ 2.479036] RAX: 0000000000000046 RBX: 0000000000000001 RCX: a56b6b6b6b6b6bcb
[ 2.499158] RDX: 0000000000000000 RSI: 0000000000000000 RDI: a56b6b6b6b6b6bcb
[ 2.500929] RBP: ffff880012befcf0 R08: 0000000000000001 R09: 0000000000000001
[ 2.502689] R10: ffff880012befd10 R11: ffffffff8164eb51 R12: 0000000000000000
[ 2.504555] R13: 0000000000000000 R14: 0000000000000001 R15: ffff880012be8040
[ 2.516596] FS: 0000000000000000(0000) GS:ffff880013400000(0000) knlGS:0000000000000000
[ 2.519547] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 2.521487] CR2: 00000000ffffffff CR3: 0000000002418000 CR4: 00000000000406f0
[ 2.523324] Stack:
[ 2.524291] ffffffff8164f06c 0000000012bf2218 ffff880000000000 ffffffff8106fd3d
[ 2.545475] ffff880000000000 0000000100000000 ffffffff811e3586 0000001000000008
[ 2.548590] ffff880012bf22f0 ffff880000000000 ffffea00004afc80 ffff880012befce0
[ 2.551350] Call Trace:
[ 2.570511] [<ffffffff8164f06c>] ? rand_initialize+0x5e/0xbb
[ 2.572349] [<ffffffff8106fd3d>] ? save_stack_trace+0x2b/0x46
[ 2.574200] [<ffffffff811e3586>] ? set_track+0x65/0xea
[ 2.575943] [<ffffffff810ec4de>] lock_acquire+0x188/0x223
[ 2.577720] [<ffffffff810ec4de>] ? lock_acquire+0x188/0x223
[ 2.597573] [<ffffffff8164eb51>] ? _extract_crng+0x5c/0x9d
[ 2.599401] [<ffffffff8164efc6>] ? _initialize_crng+0x60/0xa8
[ 2.610465] [<ffffffff81ccaff5>] _raw_spin_lock_irqsave+0x4d/0x88
[ 2.612102] [<ffffffff8164eb51>] ? _extract_crng+0x5c/0x9d
[ 2.613617] [<ffffffff8164eb51>] _extract_crng+0x5c/0x9d
[ 2.615112] [<ffffffff8164efc6>] ? _initialize_crng+0x60/0xa8
[ 2.616669] [<ffffffff8164ebb7>] extract_crng+0x25/0x27
[ 2.618147] [<ffffffff8164ed0c>] get_random_bytes+0x153/0x1d4
[ 2.636864] [<ffffffff81107881>] ? rcu_read_lock_sched_held+0x59/0x61
[ 2.638527] [<ffffffff8164efc6>] _initialize_crng+0x60/0xa8
[ 2.640062] [<ffffffff8164f077>] rand_initialize+0x69/0xbb
[ 2.641678] [<ffffffff8164f00e>] ? _initialize_crng+0xa8/0xa8
[ 2.653460] [<ffffffff8100042b>] do_one_initcall+0x90/0x123
[ 2.655002] [<ffffffff81071dea>] ? print_cpu_info+0xb6/0xbb
[ 2.656526] [<ffffffff827c575e>] ? native_smp_prepare_cpus+0x2fe/0x342
[ 2.673870] [<ffffffff827b2021>] kernel_init_freeable+0x120/0x257
[ 2.675780] [<ffffffff81cbd9a2>] kernel_init+0xe/0xf5
[ 2.677497] [<ffffffff81ccbc2f>] ret_from_fork+0x1f/0x40
[ 2.699307] [<ffffffff81cbd994>] ? rest_init+0x13b/0x13b
[ 2.701132] Code: 8a 03 61 02 85 db 0f 85 cf 00 00 00 48 c7 c1 4f fc 1f 82 48 c7 c2 08 e3 1e 82 be 8d 0c 00 00 eb 72 8b 1d 7b f7 37 01 85 db 74 14 <48> 81 39 a0 26 99 82 41 ba 00 00 00 00 44 89 d3 41 0f 45 d8 83
[ 2.731322] RIP [<ffffffff810eab9d>] __lock_acquire+0xb0/0x1591
[ 2.733255] RSP <ffff880012befc40>
[ 2.734460] general protection fault: 0000 [#2] SMP
[ 2.735873] Modules linked in:
[ 2.755159] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G D 4.7.0-rc1-00002-g0891fb1 #1
[ 2.758197] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
[ 2.760912] task: ffff880012be8040 ti: ffff880012bec000 task.ti: ffff880012bec000
[ 2.763384] RIP: 0010:[<ffffffff810efd1e>] [<ffffffff810efd1e>] do_raw_spin_trylock+0x5/0x3e
[ 2.801850] RSP: 0000:ffff880012befa00 EFLAGS: 00010002
[ 2.803599] RAX: 0000000000000046 RBX: a56b6b6b6b6b6bcb RCX: 0000000000000000
[ 2.805679] RDX: 0000000000000000 RSI: 0000000000000000 RDI: a56b6b6b6b6b6bb3
[ 2.807753] RBP: ffff880012befa28 R08: 0000000000000001 R09: 0000000000000000
[ 2.809545] R10: ffff880012be8040 R11: 00000000000fffa0 R12: a56b6b6b6b6b6bb3
[ 2.820647] R13: 0000000000000046 R14: ffffffff810a02c5 R15: ffff880012be8040
[ 2.822729] FS: 0000000000000000(0000) GS:ffff880013400000(0000) knlGS:0000000000000000
[ 2.825671] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 2.837280] CR2: 00000000ffffffff CR3: 0000000002418000 CR4: 00000000000406f0
[ 2.839169] Stack:
[ 2.840319] ffffffff81ccaffd ffffffff8164eb51 a56b6b6b6b6b6b6b ffff880012befa78
[ 2.843558] a56b6b6b6b6b6bb3 ffff880012befa58 ffffffff8164eb51 0000000000000008
[ 2.864474] ffff880012befa78 ffffffff8298ffc0 ffffffff810a02c5 ffff880012befa68
[ 2.867744] Call Trace:
[ 2.868985] [<ffffffff81ccaffd>] ? _raw_spin_lock_irqsave+0x55/0x88
[ 2.890957] [<ffffffff8164eb51>] ? _extract_crng+0x5c/0x9d
[ 2.892755] [<ffffffff8164eb51>] _extract_crng+0x5c/0x9d
[ 2.894326] [<ffffffff810a02c5>] ? init_oops_id+0x26/0x37
[ 2.895828] [<ffffffff8164ebb7>] extract_crng+0x25/0x27
[ 2.897379] [<ffffffff8164ed0c>] get_random_bytes+0x153/0x1d4
[ 2.908245] [<ffffffff81ccb1de>] ? _raw_spin_unlock_irqrestore+0x41/0x5e
[ 2.910220] [<ffffffff810fc634>] ? console_unlock+0x493/0x4ed
[ 2.911787] [<ffffffff810a02c5>] init_oops_id+0x26/0x37
[ 2.913268] [<ffffffff810a04cb>] print_oops_end_marker+0xe/0x23
[ 2.914856] [<ffffffff810a04fc>] oops_exit+0x1c/0x28
[ 2.929223] [<ffffffff8106557d>] oops_end+0x7e/0xbb
[ 2.930908] [<ffffffff81065986>] die+0x5a/0x63
[ 2.932511] [<ffffffff81062a6c>] do_general_protection+0xe0/0x186
[ 2.934418] [<ffffffff81ccd7b8>] general_protection+0x28/0x30
[ 2.954288] [<ffffffff8164eb51>] ? _extract_crng+0x5c/0x9d
[ 2.956094] [<ffffffff810eab9d>] ? __lock_acquire+0xb0/0x1591
[ 2.957942] [<ffffffff8164f06c>] ? rand_initialize+0x5e/0xbb
[ 2.959769] [<ffffffff8106fd3d>] ? save_stack_trace+0x2b/0x46
[ 2.961521] [<ffffffff811e3586>] ? set_track+0x65/0xea
[ 2.981219] [<ffffffff810ec4de>] lock_acquire+0x188/0x223
[ 2.983021] [<ffffffff810ec4de>] ? lock_acquire+0x188/0x223
[ 2.984841] [<ffffffff8164eb51>] ? _extract_crng+0x5c/0x9d
[ 2.986637] [<ffffffff8164efc6>] ? _initialize_crng+0x60/0xa8
[ 2.988258] [<ffffffff81ccaff5>] _raw_spin_lock_irqsave+0x4d/0x88
[ 2.989867] [<ffffffff8164eb51>] ? _extract_crng+0x5c/0x9d
[ 3.009419] [<ffffffff8164eb51>] _extract_crng+0x5c/0x9d
[ 3.010926] [<ffffffff8164efc6>] ? _initialize_crng+0x60/0xa8
[ 3.012480] [<ffffffff8164ebb7>] extract_crng+0x25/0x27
[ 3.013955] [<ffffffff8164ed0c>] get_random_bytes+0x153/0x1d4
[ 3.015509] [<ffffffff81107881>] ? rcu_read_lock_sched_held+0x59/0x61
[ 3.035367] [<ffffffff8164efc6>] _initialize_crng+0x60/0xa8
[ 3.036914] [<ffffffff8164f077>] rand_initialize+0x69/0xbb
[ 3.047156] [<ffffffff8164f00e>] ? _initialize_crng+0xa8/0xa8
[ 3.049011] [<ffffffff8100042b>] do_one_initcall+0x90/0x123
[ 3.050825] [<ffffffff81071dea>] ? print_cpu_info+0xb6/0xbb
[ 3.052644] [<ffffffff827c575e>] ? native_smp_prepare_cpus+0x2fe/0x342
[ 3.054630] [<ffffffff827b2021>] kernel_init_freeable+0x120/0x257
[ 3.074345] [<ffffffff81cbd9a2>] kernel_init+0xe/0xf5
[ 3.075846] [<ffffffff81ccbc2f>] ret_from_fork+0x1f/0x40
[ 3.077339] [<ffffffff81cbd994>] ? rest_init+0x13b/0x13b
[ 3.078822] Code: df e8 5c ea ff ff 65 8b 05 28 a4 f1 7e 89 43 08 65 48 8b 04 25 80 c6 00 00 48 89 43 10 5b 41 5c 41 5d 41 5e 5d c3 66 66 66 66 90 <8b> 07 55 48 89 e5 85 c0 74 04 31 c0 eb 29 ba 01 00 00 00 3e 0f
[ 3.111598] RIP [<ffffffff810efd1e>] do_raw_spin_trylock+0x5/0x3e
[ 3.113317] RSP <ffff880012befa00>
[ 3.114517] general protection fault: 0000 [#3] SMP
[ 3.115937] Modules linked in:
[ 3.117152] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G D 4.7.0-rc1-00002-g0891fb1 #1
[ 3.139785] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
[ 3.142395] task: ffff880012be8040 ti: ffff880012bec000 task.ti: ffff880012bec000
[ 3.165149] RIP: 0010:[<ffffffff810efd1e>] [<ffffffff810efd1e>] do_raw_spin_trylock+0x5/0x3e
[ 3.188371] RSP: 0000:ffff880012bef7c0 EFLAGS: 00010002
[ 3.190129] RAX: 0000000000000046 RBX: a56b6b6b6b6b6bcb RCX: 0000000000000000
[ 3.192203] RDX: 0000000000000000 RSI: 0000000000000000 RDI: a56b6b6b6b6b6bb3
[ 3.204174] RBP: ffff880012bef7e8 R08: 0000000000000001 R09: 0000000000000000
[ 3.205938] R10: ffff880012be8040 R11: 00000000000fffa0 R12: a56b6b6b6b6b6bb3
[ 3.207691] R13: 0000000000000046 R14: ffffffff810a02c5 R15: ffff880012be8040
[ 3.209462] FS: 0000000000000000(0000) GS:ffff880013400000(0000) knlGS:0000000000000000
[ 3.231977] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 3.233521] CR2: 00000000ffffffff CR3: 0000000002418000 CR4: 00000000000406f0
[ 3.235346] Stack:
[ 3.236497] ffffffff81ccaffd ffffffff8164eb51 a56b6b6b6b6b6b6b ffff880012bef838
[ 3.257650] a56b6b6b6b6b6bb3 ffff880012bef818 ffffffff8164eb51 0000000000000008
[ 3.260389] ffff880012bef838 ffffffff8298ffc0 ffffffff810a02c5 ffff880012bef828
[ 3.263546] Call Trace:
[ 3.264774] [<ffffffff81ccaffd>] ? _raw_spin_lock_irqsave+0x55/0x88
[ 3.284751] [<ffffffff8164eb51>] ? _extract_crng+0x5c/0x9d
[ 3.286567] [<ffffffff8164eb51>] _extract_crng+0x5c/0x9d
[ 3.288338] [<ffffffff810a02c5>] ? init_oops_id+0x26/0x37
[ 3.342393] [<ffffffff8164ebb7>] extract_crng+0x25/0x27
[ 3.344149] [<ffffffff8164ed0c>] get_random_bytes+0x153/0x1d4
[ 3.345839] [<ffffffff81ccb1de>] ? _raw_spin_unlock_irqrestore+0x41/0x5e
[ 3.347556] [<ffffffff810fc634>] ? console_unlock+0x493/0x4ed
[ 3.367389] [<ffffffff810a02c5>] init_oops_id+0x26/0x37
[ 3.369146] [<ffffffff810a04cb>] print_oops_end_marker+0xe/0x23
[ 3.371011] [<ffffffff810a04fc>] oops_exit+0x1c/0x28
[ 3.372505] [<ffffffff8106557d>] oops_end+0x7e/0xbb
[ 3.373947] [<ffffffff81065986>] die+0x5a/0x63
[ 3.375311] [<ffffffff810a02c5>] ? init_oops_id+0x26/0x37
[ 3.394856] [<ffffffff81062a6c>] do_general_protection+0xe0/0x186
[ 3.396531] [<ffffffff81ccd7b8>] general_protection+0x28/0x30
[ 3.398110] [<ffffffff810a02c5>] ? init_oops_id+0x26/0x37
[ 3.399621] [<ffffffff810efd1e>] ? do_raw_spin_trylock+0x5/0x3e
[ 3.401449] [<ffffffff81ccaffd>] ? _raw_spin_lock_irqsave+0x55/0x88
[ 3.411444] [<ffffffff8164eb51>] ? _extract_crng+0x5c/0x9d
[ 3.413207] [<ffffffff8164eb51>] _extract_crng+0x5c/0x9d
[ 3.414699] [<ffffffff810a02c5>] ? init_oops_id+0x26/0x37
[ 3.416209] [<ffffffff8164ebb7>] extract_crng+0x25/0x27
[ 3.443863] [<ffffffff8164ed0c>] get_random_bytes+0x153/0x1d4
[ 3.445759] [<ffffffff81ccb1de>] ? _raw_spin_unlock_irqrestore+0x41/0x5e
[ 3.447776] [<ffffffff810fc634>] ? console_unlock+0x493/0x4ed
[ 3.449626] [<ffffffff810a02c5>] init_oops_id+0x26/0x37
[ 3.451380] [<ffffffff810a04cb>] print_oops_end_marker+0xe/0x23
[ 3.470354] [<ffffffff810a04fc>] oops_exit+0x1c/0x28
[ 3.472060] [<ffffffff8106557d>] oops_end+0x7e/0xbb
[ 3.473740] [<ffffffff81065986>] die+0x5a/0x63
[ 3.475358] [<ffffffff81062a6c>] do_general_protection+0xe0/0x186
[ 3.497305] [<ffffffff81ccd7b8>] general_protection+0x28/0x30
[ 3.499165] [<ffffffff8164eb51>] ? _extract_crng+0x5c/0x9d
[ 3.500959] [<ffffffff810eab9d>] ? __lock_acquire+0xb0/0x1591
[ 3.502670] [<ffffffff8164f06c>] ? rand_initialize+0x5e/0xbb
[ 3.524492] [<ffffffff8106fd3d>] ? save_stack_trace+0x2b/0x46
[ 3.526337] [<ffffffff811e3586>] ? set_track+0x65/0xea
[ 3.528053] [<ffffffff810ec4de>] lock_acquire+0x188/0x223
[ 3.529560] [<ffffffff810ec4de>] ? lock_acquire+0x188/0x223
[ 3.531104] [<ffffffff8164eb51>] ? _extract_crng+0x5c/0x9d
[ 3.550766] [<ffffffff8164efc6>] ? _initialize_crng+0x60/0xa8
[ 3.552626] [<ffffffff81ccaff5>] _raw_spin_lock_irqsave+0x4d/0x88
[ 3.554535] [<ffffffff8164eb51>] ? _extract_crng+0x5c/0x9d
[ 3.556337] [<ffffffff8164eb51>] _extract_crng+0x5c/0x9d
[ 3.557925] [<ffffffff8164efc6>] ? _initialize_crng+0x60/0xa8
[ 3.559478] [<ffffffff8164ebb7>] extract_crng+0x25/0x27
[ 3.579004] [<ffffffff8164ed0c>] get_random_bytes+0x153/0x1d4
[ 3.580853] [<ffffffff81107881>] ? rcu_read_lock_sched_held+0x59/0x61
[ 3.582821] [<ffffffff8164efc6>] _initialize_crng+0x60/0xa8
[ 3.584372] [<ffffffff8164f077>] rand_initialize+0x69/0xbb
[ 3.585886] [<ffffffff8164f00e>] ? _initialize_crng+0xa8/0xa8
[ 3.587449] [<ffffffff8100042b>] do_one_initcall+0x90/0x123
[ 3.607213] [<ffffffff81071dea>] ? print_cpu_info+0xb6/0xbb
[ 3.609036] [<ffffffff827c575e>] ? native_smp_prepare_cpus+0x2fe/0x342
[ 3.611032] [<ffffffff827b2021>] kernel_init_freeable+0x120/0x257
[ 3.612799] [<ffffffff81cbd9a2>] kernel_init+0xe/0xf5
[ 3.614255] [<ffffffff81ccbc2f>] ret_from_fork+0x1f/0x40
[ 3.615740] [<ffffffff81cbd994>] ? rest_init+0x13b/0x13b
[ 3.635502] Code: df e8 5c ea ff ff 65 8b 05 28 a4 f1 7e 89 43 08 65 48 8b 04 25 80 c6 00 00 48 89 43 10 5b 41 5c 41 5d 41 5e 5d c3 66 66 66 66 90 <8b> 07 55 48 89 e5 85 c0 74 04 31 c0 eb 29 ba 01 00 00 00 3e 0f
[ 3.654805] RIP [<ffffffff810efd1e>] do_raw_spin_trylock+0x5/0x3e
[ 3.665194] RSP <ffff880012bef7c0>
[ 3.666680] general protection fault: 0000 [#4] SMP
[ 3.678410] Modules linked in:
[ 3.679865] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G D 4.7.0-rc1-00002-g0891fb1 #1
[ 3.697371] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
[ 3.720400] task: ffff880012be8040 ti: ffff880012bec000 task.ti: ffff880012bec000
FYI, raw QEMU command line is:
qemu-system-x86_64 -enable-kvm -cpu SandyBridge -kernel /pkg/linux/x86_64-nfsroot/gcc-6/0891fb16f2ea9000e5380031af77395d489cefd6/vmlinuz-4.7.0-rc1-00002-g0891fb1 -append 'root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-kbuild-yocto-x86_64-41/rand_boot-1-yocto-minimal-x86_64.cgz-x86_64-nfsroot-0891fb16f2ea9000e5380031af77395d489cefd6-20160530-113351-on1567-1.yaml ARCH=x86_64 kconfig=x86_64-nfsroot branch=linux-devel/devel-spot-201605301442 commit=0891fb16f2ea9000e5380031af77395d489cefd6 BOOT_IMAGE=/pkg/linux/x86_64-nfsroot/gcc-6/0891fb16f2ea9000e5380031af77395d489cefd6/vmlinuz-4.7.0-rc1-00002-g0891fb1 max_uptime=600 RESULT_ROOT=/result/boot/1/vm-kbuild-yocto-x86_64/yocto-minimal-x86_64.cgz/x86_64-nfsroot/gcc-6/0891fb16f2ea9000e5380031af77395d489cefd6/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-x86_64-41::dhcp drbd.minor_count=8' -initrd /fs/sdc1/initrd-vm-kbuild-yocto-x86_64-41 -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/sdc1/disk0-vm-kbuild-yocto-x86_64-41,media=disk,if=virtio -pidfile /dev/shm/kboot/pid-vm-kbuild-yocto-x86_64-41 -serial file:/dev/shm/kboot/serial-vm-kbuild-yocto-x86_64-41 -daemonize -display none -monitor null
Thanks,
Kernel Test Robot
4 years, 10 months
[gpio] cc736607c8: kernel BUG at drivers/base/driver.c:153!
by kernel test robot
FYI, we noticed the following commit:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
commit cc736607c86d39ea078519af0de6ee0fbf3096a6 ("gpio: ws16c48: Utilize the ISA bus driver")
on test machine: vm-kbuild-yocto-i386: 2 threads qemu-system-i386 -enable-kvm with 320M memory
caused below changes:
+-------------------------------------------------------+------------+------------+
| | 86ea8a95a4 | cc736607c8 |
+-------------------------------------------------------+------------+------------+
| boot_successes | 11 | 0 |
| boot_failures | 1 | 12 |
| BUG:unable_to_handle_kernel | 1 | |
| Oops | 1 | |
| EIP_is_at_perf_prepare_sample | 1 | |
| Kernel_panic-not_syncing:Fatal_exception_in_interrupt | 1 | |
| backtrace:vfs_fstatat | 1 | |
| backtrace:SyS_fstatat64 | 1 | |
| kernel_BUG_at_drivers/base/driver.c | 0 | 12 |
| invalid_opcode:#[##]PREEMPT_SMP | 0 | 12 |
| EIP_is_at_driver_register | 0 | 12 |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 12 |
| backtrace:ws16c48_driver_init | 0 | 12 |
| backtrace:kernel_init_freeable | 0 | 12 |
+-------------------------------------------------------+------------+------------+
[ 25.433696] rbtree testing -> 28301 cycles
[ 26.544836] augmented rbtree testing -> 42740 cycles
[ 28.246337] ------------[ cut here ]------------
[ 28.246942] kernel BUG at drivers/base/driver.c:153!
[ 28.247784] invalid opcode: 0000 [#1] PREEMPT SMP
[ 28.248433] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.6.0-rc4-00032-gcc73660 #2
[ 28.249361] task: c0030000 ti: c0032000 task.ti: c0032000
[ 28.250038] EIP: 0060:[<c1755cfa>] EFLAGS: 00010246 CPU: 0
[ 28.250738] EIP is at driver_register+0xa/0xe0
[ 28.280022] EAX: c272a298 EBX: 00000000 ECX: 00000000 EDX: c276a800
[ 28.280780] ESI: c272a280 EDI: 00000000 EBP: c0033f14 ESP: c0033eec
[ 28.281620] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
[ 28.282282] CR0: 80050033 CR2: 00000000 CR3: 02a5f000 CR4: 00000690
[ 28.283045] Stack:
[ 28.283298] c176aca6 000e3f00 d0d4b000 00000286 d0d4b000 d3818000 00000000 c28a143b
[ 28.284428] d0d4b308 00000000 c0033f1c c28a144e c0033f78 c2879b8e c10ab791 00000000
[ 28.285512] 00000000 c0033f38 c10d7aab c0033f48 00060006 00000000 c26e1b34 c259e774
[ 28.296719] Call Trace:
[ 28.297044] [<c176aca6>] ? isa_register_driver+0x26/0x150
[ 28.297840] [<c28a143b>] ? wm8994_gpio_init+0x11/0x11
[ 28.298463] [<c28a144e>] ws16c48_driver_init+0x13/0x15
[ 28.299105] [<c2879b8e>] do_one_initcall+0xdf/0x174
[ 28.299704] [<c10ab791>] ? parse_args+0x331/0x540
[ 28.300291] [<c10d7aab>] ? trace_hardirqs_on+0xb/0x10
[ 28.300915] [<c2879d8c>] ? kernel_init_freeable+0x169/0x208
[ 28.311797] [<c2879da5>] kernel_init_freeable+0x182/0x208
[ 28.312479] [<c2093f2b>] kernel_init+0xb/0x120
[ 28.313052] [<c10b4f9c>] ? schedule_tail+0xc/0x90
[ 28.313669] [<c209ac91>] ret_from_kernel_thread+0x21/0x40
[ 28.314359] [<c2093f20>] ? rest_init+0x110/0x110
[ 28.314951] Code: b9 ff 8b 43 70 eb 0c 8d 76 00 8d bc 27 00 00 00 00 31 c0 5b 5d c3 8d 74 26 00 8d bc 27 00 00 00 00 8b 50 04 8b 4a 48 85 c9 75 06 <0f> 0b 8d 74 26 00 55 89 e5 56 53 83 ec 08 89 c3 8b 42 24 85 c0
[ 28.328199] EIP: [<c1755cfa>] driver_register+0xa/0xe0 SS:ESP 0068:c0033eec
[ 28.329049] ---[ end trace 4ee2a401683f9ad5 ]---
[ 28.329576] Kernel panic - not syncing: Fatal exception
FYI, raw QEMU command line is:
qemu-system-i386 -enable-kvm -kernel /pkg/linux/i386-randconfig-b0-05261412/gcc-6/cc736607c86d39ea078519af0de6ee0fbf3096a6/vmlinuz-4.6.0-rc4-00032-gcc73660 -append 'root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-kbuild-yocto-i386-27/bisect_boot-1-yocto-minimal-i386.cgz-i386-randconfig-b0-05261412-cc736607c86d39ea078519af0de6ee0fbf3096a6-20160526-98636-1416dgc-0.yaml ARCH=i386 kconfig=i386-randconfig-b0-05261412 branch=linux-devel/devel-spot-201605261344 commit=cc736607c86d39ea078519af0de6ee0fbf3096a6 BOOT_IMAGE=/pkg/linux/i386-randconfig-b0-05261412/gcc-6/cc736607c86d39ea078519af0de6ee0fbf3096a6/vmlinuz-4.6.0-rc4-00032-gcc73660 max_uptime=600 RESULT_ROOT=/result/boot/1/vm-kbuild-yocto-i386/yocto-minimal-i386.cgz/i386-randconfig-b0-05261412/gcc-6/cc736607c86d39ea078519af0de6ee0fbf3096a6/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-i386-27::dhcp drbd.minor_count=8' -initrd /fs/sde1/initrd-vm-kbuild-yocto-i386-27 -m 320 -smp 2 -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-i386-27,media=disk,if=virtio -pidfile /dev/shm/kboot/pid-vm-kbuild-yocto-i386-27 -serial file:/dev/shm/kboot/serial-vm-kbuild-yocto-i386-27 -daemonize -display none -monitor null
Thanks,
Xiaolong
4 years, 10 months
[gpio] 72bf7443ba: kernel BUG at drivers/base/driver.c:153!
by kernel test robot
FYI, we noticed the following commit:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
commit 72bf7443ba618b9f7a3167c1f591a0dc00faeb2d ("gpio: 104-idi-48: Utilize the ISA bus driver")
on test machine: vm-vp-quantal-i386: 1 threads qemu-system-i386 -enable-kvm -cpu Haswell,+smep,+smap with 360M memory
caused below changes:
[ 5.268521] rbtree testing -> 27624 cycles
[ 6.369886] augmented rbtree testing -> 39374 cycles
[ 7.893834] ------------[ cut here ]------------
[ 7.894491] kernel BUG at drivers/base/driver.c:153!
[ 7.895396] invalid opcode: 0000 [#1] DEBUG_PAGEALLOC
[ 7.896242] Modules linked in:
[ 7.896663] CPU: 0 PID: 1 Comm: swapper Not tainted 4.6.0-rc4-00030-g72bf744 #1
[ 7.897640] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
[ 7.898718] task: 8001b000 ti: 80036000 task.ti: 80036000
[ 7.899380] EIP: 0060:[<811cb002>] EFLAGS: 00010246 CPU: 0
[ 7.900175] EIP is at driver_register+0x9/0xa0
[ 7.900723] EAX: 815ff918 EBX: 815ff900 ECX: 00000006 EDX: 8160f060
[ 7.901635] ESI: 00000000 EDI: 00000000 EBP: 80037f1c ESP: 80037f00
[ 7.902397] DS: 007b ES: 007b FS: 0000 GS: 00e0 SS: 0068
[ 7.903056] CR0: 80050033 CR2: 00000000 CR3: 016a3000 CR4: 00040690
[ 7.904137] Stack:
[ 7.904406] 811d7d6e 00000286 00000000 00000286 81651c82 8016af40 00000000 80037f24
[ 7.905462] 81651c95 80037f84 81000493 8163743f 948dc8bc 815d3f00 80037f70 810498fa
[ 7.906528] 00000000 815d3fd0 00060006 815d2bf8 000000ff 948dc8bd 00000200 8157b55f
[ 7.907586] Call Trace:
[ 7.912053] [<811d7d6e>] ? isa_register_driver+0x26/0x110
[ 7.912795] [<81651c82>] ? gpiolib_debugfs_init+0x1f/0x1f
[ 7.913536] [<81651c95>] idi_48_driver_init+0x13/0x15
[ 7.914217] [<81000493>] do_one_initcall+0xd9/0x17b
[ 7.917980] [<8163743f>] ? repair_env_string+0x12/0x54
[ 7.918697] [<810498fa>] ? parse_args+0x1a2/0x275
[ 7.919343] [<81637ba2>] kernel_init_freeable+0xd8/0x15b
[ 7.924274] [<81387f6f>] kernel_init+0x8/0xcb
[ 7.924823] [<8138cac8>] ret_from_kernel_thread+0x20/0x34
[ 7.925487] [<81387f67>] ? rest_init+0x10e/0x10e
[ 7.926055] Code: 02 31 db 8d 45 f0 e8 93 b6 1b 00 eb 00 5a 89 d8 59 5b 5e 5d c3 55 8b 40 3c 89 e5 e8 af 02 f3 ff 5d c3 8b 50 04 83 7a 48 00 75 02 <0f> 0b 55 89 e5 56 53 83 7a 24 00 89 c3 74 06 83 78 20 00 75 18
[ 7.936637] EIP: [<811cb002>] driver_register+0x9/0xa0 SS:ESP 0068:80037f00
[ 7.937793] ---[ end trace 2ae6a8b9997e94af ]---
[ 7.942071] tsc: Refined TSC clocksource calibration: 2693.510 MHz
FYI, raw QEMU command line is:
qemu-system-i386 -enable-kvm -cpu Haswell,+smep,+smap -kernel /pkg/linux/i386-randconfig-sb0-05261509/gcc-6/72bf7443ba618b9f7a3167c1f591a0dc00faeb2d/vmlinuz-4.6.0-rc4-00030-g72bf744 -append 'root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-vp-quantal-i386-20/bisect_boot-1-quantal-core-i386.cgz-i386-randconfig-sb0-05261509-72bf7443ba618b9f7a3167c1f591a0dc00faeb2d-20160526-51173-1jydwxg-1.yaml ARCH=i386 kconfig=i386-randconfig-sb0-05261509 branch=linux-devel/devel-spot-201605261432 commit=72bf7443ba618b9f7a3167c1f591a0dc00faeb2d BOOT_IMAGE=/pkg/linux/i386-randconfig-sb0-05261509/gcc-6/72bf7443ba618b9f7a3167c1f591a0dc00faeb2d/vmlinuz-4.6.0-rc4-00030-g72bf744 max_uptime=600 RESULT_ROOT=/result/boot/1/vm-vp-quantal-i386/quantal-core-i386.cgz/i386-randconfig-sb0-05261509/gcc-6/72bf7443ba618b9f7a3167c1f591a0dc00faeb2d/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-vp-quantal-i386-20::dhcp drbd.minor_count=8' -initrd /fs/sdd1/initrd-vm-vp-quantal-i386-20 -m 360 -smp 1 -device e1000,netdev=net0 -netdev user,id=net0 -boot order=nc -no-reboot -watchdog i6300esb -rtc base=localtime -pidfile /dev/shm/kboot/pid-vm-vp-quantal-i386-20 -serial file:/dev/shm/kboot/serial-vm-vp-quantal-i386-20 -daemonize -display none -monitor null
Thanks,
Xiaolong
4 years, 10 months
[lkp] [rcu] ac3c30e891: kmsg.shift_exponent#is_too_large_for#-bit_type'long_unsigned_int'
by kernel test robot
FYI, we noticed the following commit:
https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2016.05.17a
commit ac3c30e8911d244986e3bb2c56f7d3ca84405d98 ("rcu: Correctly handle sparse possible CPUs")
on test machine: vm-kbuild-yocto-ia32: 1 threads qemu-system-x86_64 -enable-kvm -cpu Westmere with 320M memory
caused below changes:
[ 18.665139] ================================================================================
[ 18.665163] UBSAN: Undefined behaviour in kernel/rcu/tree_exp.h:379:3
[ 18.665185] shift exponent 64 is too large for 64-bit type 'long unsigned int'
[ 18.665211] CPU: 0 PID: 61 Comm: rcu_torture_fak Not tainted 4.6.0-rc2-00099-gac3c30e #1
[ 18.665251] ffffffff813e0831 0000000000000096 00000000ffffffff 0000000000000001
[ 18.665288] 0000000000000000 0000000000000000 ffff88000fb7bbb8 ffffffff820d7b86
[ 18.665326] ffffffff81478309 000000007a61dc58 000000007a61dc30 ffffffff00000020
[ 18.665333] Call Trace:
[ 18.665369] [<ffffffff813e0831>] ? trace_hardirqs_off+0xcb/0xd6
[ 18.665402] [<ffffffff820d7b86>] dump_stack+0x286/0x3f0
[ 18.665434] [<ffffffff81478309>] ? printk+0x5d/0x65
[ 18.665469] [<ffffffff821c69ec>] ubsan_epilogue+0x12/0x3f
[ 18.665510] [<ffffffff821c742e>] __ubsan_handle_shift_out_of_bounds+0x19c/0x1d1
[ 18.665543] [<ffffffff8212f10d>] ? find_next_bit+0x2c/0x2e
[ 18.665575] [<ffffffff812e22ef>] sync_rcu_exp_select_cpus+0xc87/0xd7f
[ 18.665605] [<ffffffff812e22ef>] ? sync_rcu_exp_select_cpus+0xc87/0xd7f
[ 18.665633] [<ffffffff812df6e7>] ? exp_funnel_lock+0x6a0/0x6b1
[ 18.665665] [<ffffffff812e2a8d>] ? rcu_report_exp_rdp+0x3f/0x3f
[ 18.665706] [<ffffffff812f0cea>] synchronize_rcu_expedited+0x18b/0x1a9
[ 18.665740] [<ffffffff812fa6df>] ? stub_timer+0x28/0x28
[ 18.665773] [<ffffffff81472fc0>] ? torture_random+0xf3/0x112
[ 18.665801] [<ffffffff812d415f>] rcu_torture_fakewriter+0x50c/0x542
[ 18.665827] [<ffffffff812d3c53>] ? rcu_torture_fqs+0x1c5/0x1c5
[ 18.665854] [<ffffffff811ef386>] kthread+0x2b0/0x2c0
[ 18.665881] [<ffffffff83035052>] ret_from_fork+0x22/0x50
[ 18.665909] [<ffffffff811ef0d6>] ? __kthread_unpark+0x1ed/0x1ed
[ 18.665922] ================================================================================
FYI, raw QEMU command line is:
qemu-system-x86_64 -enable-kvm -cpu Westmere -kernel /pkg/linux/x86_64-randconfig-s4-05262217/gcc-6/ac3c30e8911d244986e3bb2c56f7d3ca84405d98/vmlinuz-4.6.0-rc2-00099-gac3c30e -append 'root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-kbuild-yocto-ia32-15/bisect_boot-1-yocto-minimal-i386.cgz-x86_64-randconfig-s4-05262217-ac3c30e8911d244986e3bb2c56f7d3ca84405d98-20160528-4983-ppi8s9-1.yaml ARCH=x86_64 kconfig=x86_64-randconfig-s4-05262217 branch=linux-devel/devel-hourly-2016052620 commit=ac3c30e8911d244986e3bb2c56f7d3ca84405d98 BOOT_IMAGE=/pkg/linux/x86_64-randconfig-s4-05262217/gcc-6/ac3c30e8911d244986e3bb2c56f7d3ca84405d98/vmlinuz-4.6.0-rc2-00099-gac3c30e max_uptime=600 RESULT_ROOT=/result/boot/1/vm-kbuild-yocto-ia32/yocto-minimal-i386.cgz/x86_64-randconfig-s4-05262217/gcc-6/ac3c30e8911d244986e3bb2c56f7d3ca84405d98/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-15::dhcp drbd.minor_count=8' -initrd /fs/sdh1/initrd-vm-kbuild-yocto-ia32-15 -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/sdh1/disk0-vm-kbuild-yocto-ia32-15,media=disk,if=virtio -pidfile /dev/shm/kboot/pid-vm-kbuild-yocto-ia32-15 -serial file:/dev/shm/kboot/serial-vm-kbuild-yocto-ia32-15 -daemonize -display none -monitor null
Thanks,
Xiaolong
4 years, 10 months
[random] 0891fb16f2: general protection fault: 0000 [#1] SMP
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/tytso/random.git dev
commit 0891fb16f2ea9000e5380031af77395d489cefd6
Author: Theodore Ts'o <tytso(a)mit.edu>
AuthorDate: Mon May 2 02:04:41 2016 -0400
Commit: Theodore Ts'o <tytso(a)mit.edu>
CommitDate: Mon May 30 01:21:01 2016 -0400
random: make /dev/urandom scalable for silly userspace programs
On a system with a 4 socket (NUMA) system where a large number of
application threads were all trying to read from /dev/urandom, this
can result in the system spending 80% of its time contending on the
global urandom spinlock. The application should have used its own
PRNG, but let's try to help it from running, lemming-like, straight
over the locking cliff.
Reported-by: Andi Kleen <ak(a)linux.intel.com>
Signed-off-by: Theodore Ts'o <tytso(a)mit.edu>
+------------------------------------------------------+------------+------------+------------+
| | b569608ded | 0891fb16f2 | 728c3c2654 |
+------------------------------------------------------+------------+------------+------------+
| boot_successes | 67 | 0 | 0 |
| boot_failures | 0 | 23 | 13 |
| general_protection_fault:#[##]SMP | 0 | 23 | 13 |
| RIP:__lock_acquire | 0 | 23 | 13 |
| RIP:do_raw_spin_trylock | 0 | 23 | 13 |
| WARNING:at_include/linux/uaccess.h:#pagefault_enable | 0 | 23 | 13 |
| BUG:kernel_boot_hang | 0 | 23 | |
| backtrace:rand_initialize | 0 | 23 | 13 |
| backtrace:kernel_init_freeable | 0 | 23 | 13 |
| backtrace:get_random_bytes | 0 | 23 | 13 |
| backtrace:init_oops_id | 0 | 23 | 13 |
| BUG:unable_to_handle_kernel | 0 | 0 | 13 |
| Oops | 0 | 0 | 13 |
| RIP:task_curr | 0 | 0 | 13 |
+------------------------------------------------------+------------+------------+------------+
[ 2.763808] TSC deadline timer enabled
[ 2.764874] smpboot: CPU0: Intel Xeon E312xx (Sandy Bridge) (family: 0x6, model: 0x2a, stepping: 0x1)
[ 2.767456] Performance Events: unsupported p6 CPU model 42 no PMU driver, software events only.
[ 2.787677] general protection fault: 0000 [#1] SMP
[ 2.788933] Modules linked in:
[ 2.789932] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.7.0-rc1-00002-g0891fb1 #2
[ 2.791863] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
[ 2.794156] task: ffff880031480040 ti: ffff880031484000 task.ti: ffff880031484000
[ 2.812178] RIP: 0010:[<ffffffff81121e13>] [<ffffffff81121e13>] __lock_acquire+0xcc/0xe6f
[ 2.814386] RSP: 0000:ffff880031487c30 EFLAGS: 00010002
[ 2.815691] RAX: 0000000000000046 RBX: 0000000000000001 RCX: 5a5a5a5a5a5a5aba
[ 2.817331] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 5a5a5a5a5a5a5aba
[ 2.818985] RBP: ffff880031487ce0 R08: 0000000000000001 R09: 0000000000000001
[ 2.820699] R10: ffff880031487cf8 R11: 00000000000006bf R12: 0000000000000001
[ 2.822414] R13: ffff880031480040 R14: 0000000000000000 R15: 0000000000000000
[ 2.824099] FS: 0000000000000000(0000) GS:ffff880033600000(0000) knlGS:0000000000000000
[ 2.839153] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 2.840540] CR2: 00000000ffffffff CR3: 0000000004021000 CR4: 00000000000406f0
[ 2.842134] Stack:
[ 2.842843] 0000000131487c40 0000000000000000 ffffffff00000000 0000000000000000
[ 2.845208] ffff880031487c60 ffffffff819371fa 5a5a5a5a5a5a5aba 0000000004a30004
[ 2.847544] 0000000000000001 0000000000000000 ffff880031487c90 ffffffff8109b030
[ 2.860871] Call Trace:
[ 2.861847] [<ffffffff819371fa>] ? _extract_crng+0x5d/0x9d
[ 2.863186] [<ffffffff8109b030>] ? kvm_clock_read+0x25/0x2e
[ 2.864535] [<ffffffff8109b04d>] ? kvm_sched_clock_read+0x9/0x12
[ 2.866096] [<ffffffff810780bf>] ? paravirt_sched_clock+0x9/0xd
[ 2.867578] [<ffffffff81122f7f>] lock_acquire+0x13d/0x1d6
[ 2.868989] [<ffffffff81122f7f>] ? lock_acquire+0x13d/0x1d6
[ 2.870422] [<ffffffff819371fa>] ? _extract_crng+0x5d/0x9d
[ 2.871785] [<ffffffff81937599>] ? _initialize_crng+0x5f/0xae
[ 2.873081] [<ffffffff82ecfa8b>] _raw_spin_lock_irqsave+0x49/0x84
[ 2.874315] [<ffffffff819371fa>] ? _extract_crng+0x5d/0x9d
[ 2.875446] [<ffffffff819371fa>] _extract_crng+0x5d/0x9d
[ 2.876747] [<ffffffff81937599>] ? _initialize_crng+0x5f/0xae
[ 2.891210] [<ffffffff8193725f>] extract_crng+0x25/0x27
[ 2.892512] [<ffffffff81937350>] get_random_bytes+0xef/0x170
[ 2.893912] [<ffffffff8120608e>] ? trace_kmalloc+0x9d/0x132
[ 2.895304] [<ffffffff81937646>] ? rand_initialize+0x5e/0xbb
[ 2.896719] [<ffffffff81937599>] _initialize_crng+0x5f/0xae
[ 2.898168] [<ffffffff81937651>] rand_initialize+0x69/0xbb
[ 2.899540] [<ffffffff819375e8>] ? _initialize_crng+0xae/0xae
[ 2.900726] [<ffffffff8100219d>] do_one_initcall+0x90/0x11f
[ 2.901915] [<ffffffff8107fa12>] ? print_cpu_info+0xb6/0xbb
[ 2.903213] [<ffffffff8463db05>] ? native_smp_prepare_cpus+0x264/0x2b1
[ 2.917683] [<ffffffff84626071>] kernel_init_freeable+0x112/0x253
[ 2.919015] [<ffffffff82ec3a72>] kernel_init+0xe/0xf5
[ 2.920133] [<ffffffff82ecfdaf>] ret_from_fork+0x1f/0x40
[ 2.921243] [<ffffffff82ec3a64>] ? rest_init+0x13b/0x13b
[ 2.922347] Code: d6 5a 04 45 85 e4 0f 85 b6 00 00 00 48 c7 c1 f2 36 9e 83 48 c7 c2 ac 17 9d 83 be 8d 0c 00 00 eb 76 8b 1d c5 b3 f5 02 85 db 74 14 <48> 81 39 e0 76 92 84 41 b9 00 00 00 00 44 89 cb 41 0f 45 dc 41
[ 2.946788] RIP [<ffffffff81121e13>] __lock_acquire+0xcc/0xe6f
[ 2.948325] RSP <ffff880031487c30>
[ 2.949285] general protection fault: 0000 [#2] SMP
[ 2.950488] Modules linked in:
[ 2.951496] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G D 4.7.0-rc1-00002-g0891fb1 #2
[ 2.953726] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
[ 2.968951] task: ffff880031480040 ti: ffff880031484000 task.ti: ffff880031484000
[ 2.970904] RIP: 0010:[<ffffffff81126445>] [<ffffffff81126445>] do_raw_spin_trylock+0x5/0x3e
[ 2.973102] RSP: 0000:ffff8800314879e8 EFLAGS: 00010002
[ 2.974437] RAX: 0000000000000000 RBX: 5a5a5a5a5a5a5aba RCX: 0000000000000000
[ 2.988808] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 5a5a5a5a5a5a5aa2
[ 2.990591] RBP: ffff880031487a10 R08: 0000000000000001 R09: 0000000000000000
[ 2.992206] R10: ffff880031480040 R11: ffffffff855f9a27 R12: 5a5a5a5a5a5a5aa2
[ 2.993949] R13: 0000000000000097 R14: ffffffff810e2c62 R15: 0000000000000000
[ 2.995589] FS: 0000000000000000(0000) GS:ffff880033600000(0000) knlGS:0000000000000000
[ 3.009915] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 3.011151] CR2: 00000000ffffffff CR3: 0000000004021000 CR4: 00000000000406f0
[ 3.012777] Stack:
[ 3.013471] ffffffff82ecfa93 ffffffff819371fa 5a5a5a5a5a5a5a5a ffff880031487a68
[ 3.015821] 5a5a5a5a5a5a5aa2 ffff880031487a48 ffffffff819371fa ffff880031c03a20
[ 3.018173] 0000000000000008 ffff880031487a68 ffffffff84923700 ffffffff810e2c62
[ 3.020531] Call Trace:
[ 3.021323] [<ffffffff82ecfa93>] ? _raw_spin_lock_irqsave+0x51/0x84
[ 3.035854] [<ffffffff819371fa>] ? _extract_crng+0x5d/0x9d
[ 3.036992] [<ffffffff819371fa>] _extract_crng+0x5d/0x9d
[ 3.038104] [<ffffffff810e2c62>] ? init_oops_id+0x26/0x37
[ 3.039227] [<ffffffff8193725f>] extract_crng+0x25/0x27
[ 3.040455] [<ffffffff81937350>] get_random_bytes+0xef/0x170
[ 3.041863] [<ffffffff82ecf349>] ? _raw_spin_unlock_irqrestore+0x3f/0x5a
[ 3.043441] [<ffffffff81131741>] ? console_unlock+0x46b/0x4c5
[ 3.044849] [<ffffffff810e2c62>] init_oops_id+0x26/0x37
[ 3.046174] [<ffffffff810e2e75>] print_oops_end_marker+0xe/0x23
[ 3.047626] [<ffffffff810e2ea6>] oops_exit+0x1c/0x28
[ 3.064940] [<ffffffff810732ca>] oops_end+0x7e/0xbb
[ 3.066165] [<ffffffff810736a0>] die+0x5a/0x63
[ 3.067298] [<ffffffff81070c7f>] do_general_protection+0xd6/0x17c
[ 3.068748] [<ffffffff82ed1d58>] general_protection+0x28/0x30
[ 3.070131] [<ffffffff81121e13>] ? __lock_acquire+0xcc/0xe6f
[ 3.071546] [<ffffffff819371fa>] ? _extract_crng+0x5d/0x9d
[ 3.072936] [<ffffffff8109b030>] ? kvm_clock_read+0x25/0x2e
[ 3.074253] [<ffffffff8109b04d>] ? kvm_sched_clock_read+0x9/0x12
[ 3.075549] [<ffffffff810780bf>] ? paravirt_sched_clock+0x9/0xd
[ 3.076851] [<ffffffff81122f7f>] lock_acquire+0x13d/0x1d6
[ 3.091167] [<ffffffff81122f7f>] ? lock_acquire+0x13d/0x1d6
[ 3.092537] [<ffffffff819371fa>] ? _extract_crng+0x5d/0x9d
[ 3.093879] [<ffffffff81937599>] ? _initialize_crng+0x5f/0xae
[ 3.095237] [<ffffffff82ecfa8b>] _raw_spin_lock_irqsave+0x49/0x84
[ 3.096621] [<ffffffff819371fa>] ? _extract_crng+0x5d/0x9d
[ 3.097903] [<ffffffff819371fa>] _extract_crng+0x5d/0x9d
[ 3.099107] [<ffffffff81937599>] ? _initialize_crng+0x5f/0xae
[ 3.100277] [<ffffffff8193725f>] extract_crng+0x25/0x27
[ 3.101370] [<ffffffff81937350>] get_random_bytes+0xef/0x170
[ 3.102525] [<ffffffff8120608e>] ? trace_kmalloc+0x9d/0x132
[ 3.115933] [<ffffffff81937646>] ? rand_initialize+0x5e/0xbb
[ 3.117314] [<ffffffff81937599>] _initialize_crng+0x5f/0xae
[ 3.118764] [<ffffffff81937651>] rand_initialize+0x69/0xbb
[ 3.120110] [<ffffffff819375e8>] ? _initialize_crng+0xae/0xae
[ 3.121585] [<ffffffff8100219d>] do_one_initcall+0x90/0x11f
[ 3.122967] [<ffffffff8107fa12>] ? print_cpu_info+0xb6/0xbb
[ 3.124391] [<ffffffff8463db05>] ? native_smp_prepare_cpus+0x264/0x2b1
[ 3.126019] [<ffffffff84626071>] kernel_init_freeable+0x112/0x253
[ 3.127279] [<ffffffff82ec3a72>] kernel_init+0xe/0xf5
[ 3.128554] [<ffffffff82ecfdaf>] ret_from_fork+0x1f/0x40
[ 3.129789] [<ffffffff82ec3a64>] ? rest_init+0x13b/0x13b
[ 3.130961] Code: df e8 de ea ff ff 65 8b 05 c1 3d ee 7e 89 43 08 65 48 8b 04 25 40 d6 00 00 48 89 43 10 5b 41 5c 41 5d 41 5e 5d c3 66 66 66 66 90 <8b> 07 55 48 89 e5 85 c0 74 04 31 c0 eb 29 ba 01 00 00 00 3e 0f
[ 3.154796] RIP [<ffffffff81126445>] do_raw_spin_trylock+0x5/0x3e
[ 3.156262] RSP <ffff8800314879e8>
[ 3.157216] general protection fault: 0000 [#3] SMP
[ 3.158447] Modules linked in:
[ 3.159453] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G D 4.7.0-rc1-00002-g0891fb1 #2
[ 3.174773] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
[ 3.176834] task: ffff880031480040 ti: ffff880031484000 task.ti: ffff880031484000
[ 3.178608] RIP: 0010:[<ffffffff81126445>] [<ffffffff81126445>] do_raw_spin_trylock+0x5/0x3e
[ 3.180893] RSP: 0000:ffff880031487798 EFLAGS: 00010002
[ 3.186437] RAX: 0000000000000000 RBX: 5a5a5a5a5a5a5aba RCX: 0000000000000000
[ 3.188120] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 5a5a5a5a5a5a5aa2
[ 3.189831] RBP: ffff8800314877c0 R08: 0000000000000001 R09: 0000000000000000
[ 3.191553] R10: ffff880031480040 R11: ffffffff855f9a27 R12: 5a5a5a5a5a5a5aa2
[ 3.193002] R13: 0000000000000097 R14: ffffffff810e2c62 R15: 0000000000000000
[ 3.194385] FS: 0000000000000000(0000) GS:ffff880033600000(0000) knlGS:0000000000000000
[ 3.196395] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 3.210846] CR2: 00000000ffffffff CR3: 0000000004021000 CR4: 00000000000406f0
[ 3.212526] Stack:
[ 3.213230] ffffffff82ecfa93 ffffffff819371fa 5a5a5a5a5a5a5a5a ffff880031487818
[ 3.215496] 5a5a5a5a5a5a5aa2 ffff8800314877f8 ffffffff819371fa ffff880031c03a20
[ 3.262172] 0000000000000008 ffff880031487818 ffffffff84923700 ffffffff810e2c62
[ 3.264394] Call Trace:
[ 3.265131] [<ffffffff82ecfa93>] ? _raw_spin_lock_irqsave+0x51/0x84
[ 3.266554] [<ffffffff819371fa>] ? _extract_crng+0x5d/0x9d
[ 3.272008] [<ffffffff819371fa>] _extract_crng+0x5d/0x9d
[ 3.273465] [<ffffffff810e2c62>] ? init_oops_id+0x26/0x37
[ 3.278831] [<ffffffff8193725f>] extract_crng+0x25/0x27
[ 3.280144] [<ffffffff81937350>] get_random_bytes+0xef/0x170
[ 3.281533] [<ffffffff82ecf349>] ? _raw_spin_unlock_irqrestore+0x3f/0x5a
[ 3.287081] [<ffffffff81131741>] ? console_unlock+0x46b/0x4c5
[ 3.288524] [<ffffffff810e2c62>] init_oops_id+0x26/0x37
[ 3.289727] [<ffffffff810e2e75>] print_oops_end_marker+0xe/0x23
[ 3.308177] [<ffffffff810e2ea6>] oops_exit+0x1c/0x28
[ 3.309450] [<ffffffff810732ca>] oops_end+0x7e/0xbb
[ 3.310696] [<ffffffff810736a0>] die+0x5a/0x63
[ 3.311673] [<ffffffff810e2c62>] ? init_oops_id+0x26/0x37
[ 3.312785] [<ffffffff81070c7f>] do_general_protection+0xd6/0x17c
[ 3.314259] [<ffffffff82ed1d58>] general_protection+0x28/0x30
[ 3.315808] [<ffffffff810e2c62>] ? init_oops_id+0x26/0x37
[ 3.317232] [<ffffffff81126445>] ? do_raw_spin_trylock+0x5/0x3e
[ 3.318592] [<ffffffff8111e823>] ? trace_hardirqs_off+0xd/0xf
[ 3.334034] [<ffffffff82ecfa93>] ? _raw_spin_lock_irqsave+0x51/0x84
[ 3.335554] [<ffffffff819371fa>] ? _extract_crng+0x5d/0x9d
[ 3.336728] [<ffffffff819371fa>] _extract_crng+0x5d/0x9d
[ 3.338052] [<ffffffff810e2c62>] ? init_oops_id+0x26/0x37
[ 3.339300] [<ffffffff8193725f>] extract_crng+0x25/0x27
[ 3.340727] [<ffffffff81937350>] get_random_bytes+0xef/0x170
[ 3.342190] [<ffffffff82ecf349>] ? _raw_spin_unlock_irqrestore+0x3f/0x5a
[ 3.357682] [<ffffffff81131741>] ? console_unlock+0x46b/0x4c5
[ 3.359072] [<ffffffff810e2c62>] init_oops_id+0x26/0x37
[ 3.360343] [<ffffffff810e2e75>] print_oops_end_marker+0xe/0x23
[ 3.361834] [<ffffffff810e2ea6>] oops_exit+0x1c/0x28
[ 3.363237] [<ffffffff810732ca>] oops_end+0x7e/0xbb
[ 3.364496] [<ffffffff810736a0>] die+0x5a/0x63
[ 3.365484] [<ffffffff81070c7f>] do_general_protection+0xd6/0x17c
[ 3.366959] [<ffffffff82ed1d58>] general_protection+0x28/0x30
[ 3.368402] [<ffffffff81121e13>] ? __lock_acquire+0xcc/0xe6f
[ 3.378641] [<ffffffff819371fa>] ? _extract_crng+0x5d/0x9d
[ 3.379985] [<ffffffff8109b030>] ? kvm_clock_read+0x25/0x2e
[ 3.381369] [<ffffffff8109b04d>] ? kvm_sched_clock_read+0x9/0x12
[ 3.382827] [<ffffffff810780bf>] ? paravirt_sched_clock+0x9/0xd
[ 3.384265] [<ffffffff81122f7f>] lock_acquire+0x13d/0x1d6
[ 3.385605] [<ffffffff81122f7f>] ? lock_acquire+0x13d/0x1d6
[ 3.390930] [<ffffffff819371fa>] ? _extract_crng+0x5d/0x9d
[ 3.392205] [<ffffffff81937599>] ? _initialize_crng+0x5f/0xae
[ 3.402702] [<ffffffff82ecfa8b>] _raw_spin_lock_irqsave+0x49/0x84
[ 3.404179] [<ffffffff819371fa>] ? _extract_crng+0x5d/0x9d
[ 3.405542] [<ffffffff819371fa>] _extract_crng+0x5d/0x9d
[ 3.406872] [<ffffffff81937599>] ? _initialize_crng+0x5f/0xae
[ 3.408273] [<ffffffff8193725f>] extract_crng+0x25/0x27
[ 3.409579] [<ffffffff81937350>] get_random_bytes+0xef/0x170
[ 3.410994] [<ffffffff8120608e>] ? trace_kmalloc+0x9d/0x132
[ 3.412465] [<ffffffff81937646>] ? rand_initialize+0x5e/0xbb
[ 3.427967] [<ffffffff81937599>] _initialize_crng+0x5f/0xae
[ 3.429340] [<ffffffff81937651>] rand_initialize+0x69/0xbb
[ 3.430685] [<ffffffff819375e8>] ? _initialize_crng+0xae/0xae
[ 3.432073] [<ffffffff8100219d>] do_one_initcall+0x90/0x11f
[ 3.433424] [<ffffffff8107fa12>] ? print_cpu_info+0xb6/0xbb
[ 3.434776] [<ffffffff8463db05>] ? native_smp_prepare_cpus+0x264/0x2b1
[ 3.436382] [<ffffffff84626071>] kernel_init_freeable+0x112/0x253
[ 3.437775] [<ffffffff82ec3a72>] kernel_init+0xe/0xf5
[ 3.450979] [<ffffffff82ecfdaf>] ret_from_fork+0x1f/0x40
[ 3.453050] [<ffffffff82ec3a64>] ? rest_init+0x13b/0x13b
[ 3.454377] Code: df e8 de ea ff ff 65 8b 05 c1 3d ee 7e 89 43 08 65 48 8b 04 25 40 d6 00 00 48 89 43 10 5b 41 5c 41 5d 41 5e 5d c3 66 66 66 66 90 <8b> 07 55 48 89 e5 85 c0 74 04 31 c0 eb 29 ba 01 00 00 00 3e 0f
[ 3.474542] RIP [<ffffffff81126445>] do_raw_spin_trylock+0x5/0x3e
[ 3.480162] RSP <ffff880031487798>
git bisect start 728c3c2654e716b33142bb0c792237d11b858859 1a695a905c18548062509178b98bc91e67510864 --
git bisect bad 24c6f2260376100f6d7d5d7d51f6404cdc6b38b0 # 14:48 0- 16 Merge 'vfs/test.d_iput' into devel-spot-201605301405
git bisect bad aa74486cf559487a3b8d6c420fc30f97d97ac7c2 # 14:56 0- 10 Merge 'renesas/dt-for-v4.8' into devel-spot-201605301405
git bisect bad 1234afbead7c326400b7db14687c4faaf7a8aafd # 15:00 0- 20 Merge 'slave-dma/next' into devel-spot-201605301405
git bisect bad 9281231f52b13573fd1314bb2cdb7f86b88f3bb3 # 15:13 0- 21 Merge 'alaahl/for-linust' into devel-spot-201605301405
git bisect good 774df829a06c437c50c043e6768a7fe696963cc4 # 15:19 22+ 0 0day base guard for 'devel-spot-201605301405'
git bisect bad 085a959d1a89e5df1a04f3dec54ddca7dbac2d6e # 15:26 0- 20 Merge 'random/dev' into devel-spot-201605301405
git bisect bad 0891fb16f2ea9000e5380031af77395d489cefd6 # 15:39 0- 24 random: make /dev/urandom scalable for silly userspace programs
git bisect good b569608ded51224a7787dd77a53df27cc962f8c3 # 15:49 22+ 0 random: replace non-blocking pool with a Chacha20-based CRNG
# first bad commit: [0891fb16f2ea9000e5380031af77395d489cefd6] random: make /dev/urandom scalable for silly userspace programs
git bisect good b569608ded51224a7787dd77a53df27cc962f8c3 # 15:52 62+ 0 random: replace non-blocking pool with a Chacha20-based CRNG
# extra tests with CONFIG_DEBUG_INFO_REDUCED
git bisect bad 0891fb16f2ea9000e5380031af77395d489cefd6 # 16:12 0- 34 random: make /dev/urandom scalable for silly userspace programs
# extra tests on HEAD of linux-devel/devel-spot-201605301405
git bisect bad 728c3c2654e716b33142bb0c792237d11b858859 # 16:12 0- 13 0day head guard for 'devel-spot-201605301405'
# extra tests on tree/branch random/dev
git bisect bad 0ffc3d859cfc7839c09f7291dcf9110f6bc083a2 # 16:34 0- 29 random: properly align get_random_int_hash
# extra tests on tree/branch linus/master
git bisect good b02b1fbdd338f70e49efa9ca9899214134526701 # 16:37 60+ 0 Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
# extra tests on tree/branch linux-next/master
git bisect good 421ed810bb7a8d528a00fc4bf866b0be443c8d30 # 16:40 61+ 0 Add linux-next specific files for 20160530
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/lkp Intel Corporation
4 years, 10 months
[lkp] [mm] 55834c5909: boot-slabinfo.num_objs +31.9% increasement
by kernel test robot
FYI, we noticed boot-slabinfo.num_objs +31.9% increasement due to commit:
commit 55834c59098d0c5a97b0f3247e55832b67facdcf ("mm: kasan: initial memory quarantine implementation")
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
in testcase: boot
on test machine: vm-lkp-wsx03-2G: 2 threads qemu-system-x86_64 -enable-kvm -cpu host with 2G memory
with following parameters: sleep=1
Details are as below:
-------------------------------------------------------------------------------------------------->
=========================================================================================
compiler/kconfig/rootfs/sleep/tbox_group/testcase:
gcc-6/x86_64-randconfig-s4-05280557/debian-x86_64-2015-02-07.cgz/1/vm-lkp-wsx03-2G/boot
commit:
b8f1a75d61d8405a753380c6fb17ba84a5603cd4
55834c59098d0c5a97b0f3247e55832b67facdcf
b8f1a75d61d8405a 55834c59098d0c5a97b0f3247e
---------------- --------------------------
%stddev %change %stddev
\ | \
165450 ± 0% +31.9% 218176 ± 1% boot-slabinfo.num_objs
19095 ± 5% +104.3% 39013 ± 3% boot-slabinfo.num_pages
107.27 ± 2% +14.1% 122.43 ± 13% boot-time.boot
97.13 ± 1% +4.3% 101.31 ± 1% boot-time.idle
1105076 ± 0% -7.2% 1025056 ± 0% boot-meminfo.MemFree
36269 ± 12% +215.7% 114517 ± 5% boot-meminfo.SUnreclaim
76469 ± 5% +104.5% 156343 ± 4% boot-meminfo.Slab
boot-slabinfo.num_objs
230000 ++-----------------------------------------------------------------+
| O O |
220000 ++O O O OO OO O O OO OO |
OO O OOOO O OOOOOOO O O OO O |
210000 ++ |
| |
200000 ++ |
| |
190000 ++ |
| |
180000 ++ |
| |
170000 ++ |
********************************************************************
160000 ++-----------------------------------------------------------------+
boot-slabinfo.num_pages
45000 ++-------------O----------------------------------------------------+
| O O OO O O O O OOO |
40000 +O OOO OO OO O O |
O OO O O O O O OO O O |
| O O O |
35000 ++ |
| |
30000 ++ |
| |
25000 ++ |
| |
| * * *
20000 +* * * ** * * * * * * ** **** ** * * * * * * :: * *** *|
* * ** ** * * ** *** * ** *** * * * * * ** *** * ** ** ** * * |
15000 ++------------------------------------------------------------------+
[*] bisect-good sample
[O] bisect-bad sample
Disclaimer:
Results have been estimated based on internal Intel analysis and are provided
for informational purposes only. Any difference in system hardware or software
design or configuration may affect actual performance.
Thanks,
Xiaolong
4 years, 10 months
[PATCH] Revert "i2c: dev: switch from register_chrdev to cdev API"
by Wolfram Sang
This reverts commit d6760b14d4a1243f918d983bba1e35c5a5cd5a6d. When
hitting Linus' tree, buildbots ran additional checks and found boot
problems. Although Dan Carpenter provided an obvious fix already, I
still could not reproduce one problem manually (at least not on a
Saturday morning). So we'll try again later after some more
investigation.
Signed-off-by: Wolfram Sang <wsa(a)the-dreams.de>
---
drivers/i2c/i2c-dev.c | 19 ++++---------------
1 file changed, 4 insertions(+), 15 deletions(-)
diff --git a/drivers/i2c/i2c-dev.c b/drivers/i2c/i2c-dev.c
index 89593dcb79f032..bc3cc7faf5af46 100644
--- a/drivers/i2c/i2c-dev.c
+++ b/drivers/i2c/i2c-dev.c
@@ -22,7 +22,6 @@
/* The I2C_RDWR ioctl code is written by Kolja Waschk <waschk(a)telos.de> */
-#include <linux/cdev.h>
#include <linux/device.h>
#include <linux/fs.h>
#include <linux/i2c-dev.h>
@@ -48,10 +47,9 @@ struct i2c_dev {
struct list_head list;
struct i2c_adapter *adap;
struct device *dev;
- struct cdev cdev;
};
-#define I2C_MINORS MINORMASK
+#define I2C_MINORS 256
static LIST_HEAD(i2c_dev_list);
static DEFINE_SPINLOCK(i2c_dev_list_lock);
@@ -554,12 +552,6 @@ static int i2cdev_attach_adapter(struct device *dev, void *dummy)
if (IS_ERR(i2c_dev))
return PTR_ERR(i2c_dev);
- cdev_init(&i2c_dev->cdev, &i2cdev_fops);
- i2c_dev->cdev.owner = THIS_MODULE;
- res = cdev_add(&i2c_dev->cdev, MKDEV(I2C_MAJOR, adap->nr), 1);
- if (res)
- goto error_cdev;
-
/* register this i2c device with the driver core */
i2c_dev->dev = device_create(i2c_dev_class, &adap->dev,
MKDEV(I2C_MAJOR, adap->nr), NULL,
@@ -573,8 +565,6 @@ static int i2cdev_attach_adapter(struct device *dev, void *dummy)
adap->name, adap->nr);
return 0;
error:
- cdev_del(&i2c_dev->cdev);
-error_cdev:
put_i2c_dev(i2c_dev);
return res;
}
@@ -594,7 +584,6 @@ static int i2cdev_detach_adapter(struct device *dev, void *dummy)
put_i2c_dev(i2c_dev);
device_destroy(i2c_dev_class, MKDEV(I2C_MAJOR, adap->nr));
- cdev_del(&i2c_dev->cdev);
pr_debug("i2c-dev: adapter [%s] unregistered\n", adap->name);
return 0;
@@ -631,7 +620,7 @@ static int __init i2c_dev_init(void)
printk(KERN_INFO "i2c /dev entries driver\n");
- res = register_chrdev_region(MKDEV(I2C_MAJOR, 0), I2C_MINORS, "i2c");
+ res = register_chrdev(I2C_MAJOR, "i2c", &i2cdev_fops);
if (res)
goto out;
@@ -655,7 +644,7 @@ static int __init i2c_dev_init(void)
out_unreg_class:
class_destroy(i2c_dev_class);
out_unreg_chrdev:
- unregister_chrdev_region(MKDEV(I2C_MAJOR, 0), I2C_MINORS);
+ unregister_chrdev(I2C_MAJOR, "i2c");
out:
printk(KERN_ERR "%s: Driver Initialisation failed\n", __FILE__);
return res;
@@ -666,7 +655,7 @@ static void __exit i2c_dev_exit(void)
bus_unregister_notifier(&i2c_bus_type, &i2cdev_notifier);
i2c_for_each_dev(NULL, i2cdev_detach_adapter);
class_destroy(i2c_dev_class);
- unregister_chrdev_region(MKDEV(I2C_MAJOR, 0), I2C_MINORS);
+ unregister_chrdev(I2C_MAJOR, "i2c");
}
MODULE_AUTHOR("Frodo Looijaard <frodol(a)dds.nl> and "
--
2.8.1
4 years, 10 months