[dummy-irq] genirq: Flags mismatch irq 0. 00000080 (dummy_irq) vs. 00015a20 (timer)
by Fengguang Wu
Hi Jiri,
This patch is found to trigger a call trace dump during kernel boot.
Can it be possibly fixed? Thanks!
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
commit 54f69b92f037f4ff5779e5645ab714dee5b59095
Author: Jiri Kosina <jkosina(a)suse.cz>
AuthorDate: Thu Mar 21 00:21:21 2013 +0100
Commit: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
CommitDate: Mon Mar 25 13:22:32 2013 -0700
dummy-irq: introduce a dummy IRQ handler driver
This module accepts a single 'irq' parameter, which it should register for.
Its sole purpose is to help with debugging of IRQ sharing problems, by
force-enabling IRQ that would otherwise be disabled.
Suggested-by: Alan Stern <stern(a)rowland.harvard.edu>
Signed-off-by: Jiri Kosina <jkosina(a)suse.cz>
Acked-by: Daniel Vetter <daniel.vetter(a)ffwll.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
+------------------------------------------------------+------------+------------+---------------+
| | 4c6e22b8a9 | 54f69b92f0 | next-20140905 |
+------------------------------------------------------+------------+------------+---------------+
| boot_successes | 0 | 0 | 0 |
| boot_failures | 80 | 20 | 21 |
| BUG:kernel_boot_hang | 80 | 20 | 8 |
| genirq:Flags_mismatch_irq.(dummy_irq)vs.(timer) | 0 | 20 | |
| backtrace:request_threaded_irq | 0 | 20 | |
| backtrace:dummy_irq_init | 0 | 20 | |
| backtrace:kernel_init_freeable | 0 | 20 | 20 |
| WARNING:at_include/linux/kref.h:kobject_get() | 0 | 0 | 20 |
| WARNING:at_kernel/locking/lockdep.c:__lock_acquire() | 0 | 0 | 20 |
| backtrace:platform_driver_unregister | 0 | 0 | 20 |
| backtrace:init_mac80211_hwsim | 0 | 0 | 20 |
| INFO:task_blocked_for_more_than_seconds | 0 | 0 | 13 |
| INFO:lockdep_is_turned_off | 0 | 0 | 13 |
| Kernel_panic-not_syncing:hung_task:blocked_tasks | 0 | 0 | 13 |
| backtrace:watchdog | 0 | 0 | 13 |
+------------------------------------------------------+------------+------------+---------------+
]
[ 1.929439] lp0: using parport0 (interrupt-driven).
[ 1.929439] lp0: using parport0 (interrupt-driven).
[ 1.933789] genirq: Flags mismatch irq 0. 00000080 (dummy_irq) vs. 00015a20 (timer)
[ 1.933789] genirq: Flags mismatch irq 0. 00000080 (dummy_irq) vs. 00015a20 (timer)
[ 1.942934] Pid: 1, comm: swapper Not tainted 3.9.0-rc2-00065-g54f69b9 #19
[ 1.942934] Pid: 1, comm: swapper Not tainted 3.9.0-rc2-00065-g54f69b9 #19
[ 1.943172] Call Trace:
[ 1.943172] Call Trace:
[ 1.943172] [<782a5f16>] __setup_irq+0x416/0x440
[ 1.943172] [<782a5f16>] __setup_irq+0x416/0x440
[ 1.943172] [<78458f30>] ? bmp085_i2c_probe+0x60/0x60
[ 1.943172] [<78458f30>] ? bmp085_i2c_probe+0x60/0x60
[ 1.943172] [<782a6134>] request_threaded_irq+0xa4/0x150
[ 1.943172] [<782a6134>] request_threaded_irq+0xa4/0x150
[ 1.943172] [<78cefd9b>] ? bmp085_i2c_driver_init+0x11/0x11
[ 1.943172] [<78cefd9b>] ? bmp085_i2c_driver_init+0x11/0x11
[ 1.943172] [<78cefdbf>] dummy_irq_init+0x24/0x5f
[ 1.943172] [<78cefdbf>] dummy_irq_init+0x24/0x5f
[ 1.943172] [<78cd49a2>] do_one_initcall+0x6a/0x10d
[ 1.943172] [<78cd49a2>] do_one_initcall+0x6a/0x10d
[ 1.943172] [<78cd4b25>] kernel_init_freeable+0xe0/0x153
[ 1.943172] [<78cd4b25>] kernel_init_freeable+0xe0/0x153
[ 1.943172] [<7884645b>] kernel_init+0xb/0x140
[ 1.943172] [<7884645b>] kernel_init+0xb/0x140
[ 1.943172] [<788521fb>] ret_from_kernel_thread+0x1b/0x30
[ 1.943172] [<788521fb>] ret_from_kernel_thread+0x1b/0x30
[ 1.943172] [<78846450>] ? rest_init+0xb0/0xb0
[ 1.943172] [<78846450>] ? rest_init+0xb0/0xb0
[ 1.993830] dummy-irq: cannot register IRQ 0
[ 1.993830] dummy-irq: cannot register IRQ 0
[ 1.999645] i2c-core: driver [apds9802als] using legacy suspend method
git bisect start v3.10 v3.9 --
git bisect bad ff89acc563a0bd49965674f56552ad6620415fe2 # 16:03 0- 20 Merge branch 'rcu/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu
git bisect bad 24d0c2542b38963ae4d5171ecc0a2c1326c656bc # 16:03 0- 20 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
git bisect bad 151173e8ce9b95bbbbd7eedb9035cfaffbdb7cb2 # 16:03 0- 20 Merge tag 'for-v3.10' of git://git.infradead.org/battery-2.6
git bisect bad 6c24499f40d96bf07a85b709fb1bee5cea611a1d # 16:14 0- 13 tracing: Fix small merge bug
git bisect bad ec25e246b94a3233ab064994ef05a170bdba0e7c # 16:26 0- 7 Merge tag 'usb-3.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
git bisect good 8127b39e700f965a60fca443d23f3e171bf7c3a9 # 16:37 20+ 20 Merge tag 'fbdev-for-3.10' of git://gitorious.org/linux-omap-dss2/linux
git bisect bad 4f567cbc957a7cffd1a428a000d93bd903f42349 # 16:49 0- 20 Merge tag 'char-misc-3.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
git bisect good 000a74f41e601bc4e36a760aa42f219a019c5391 # 17:00 20+ 20 Merge tag 'pinctrl-for-v3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl
git bisect good 92ddcf4a011a95dac98d3bbb0211a2fa42f13dc1 # 17:11 20+ 20 Merge tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
git bisect bad b68301e9acd30f7fd63533a145f5e003e25ac9bd # 17:16 0- 1 mei: prefix me hardware specific functions with mei_me_
git bisect good b85c4a18f6543873eaa71772f6252bc4d403eeb2 # 17:28 20+ 20 sound/pcmcia: use module_pcmcia_driver() in pcmcia drivers
git bisect good 9ea03dec380208bfee015b25f253c2f58aba0071 # 17:39 20+ 20 memory: emif: setup LP settings on freq update
git bisect bad a6025a2a861845447adeb7a11c3043039959d3a1 # 17:42 0- 6 Drivers: hv: balloon: make local functions static
git bisect good 36caf3e525b24556f649aecd097cad73bde6f035 # 17:53 20+ 20 memory: emif: Fix the incorrect 'size' parameter in memcpy
git bisect good f57f27bc6ed7106276004dd224aaeeb160a5b4b8 # 18:06 20+ 20 memory: emif: Load the correct custom config values from dt
git bisect bad 54f69b92f037f4ff5779e5645ab714dee5b59095 # 18:08 0- 5 dummy-irq: introduce a dummy IRQ handler driver
git bisect good 4c6e22b8a93ef038b70661e590de250a09417af7 # 18:20 20+ 20 mei: add mei_irq_compl_handler function
# first bad commit: [54f69b92f037f4ff5779e5645ab714dee5b59095] dummy-irq: introduce a dummy IRQ handler driver
git bisect good 4c6e22b8a93ef038b70661e590de250a09417af7 # 18:32 60+ 80 mei: add mei_irq_compl_handler function
git bisect bad 92d88cb068a5dc66d53ef017999b2419b125f764 # 18:32 0- 21 Add linux-next specific files for 20140905
git bisect bad 92d88cb068a5dc66d53ef017999b2419b125f764 # 18:34 0- 21 Add linux-next specific files for 20140905
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
-cpu kvm64
-enable-kvm
-kernel $kernel
-initrd $initrd
-m 320
-smp 1
-net nic,vlan=1,model=e1000
-net user,vlan=1
-boot order=nc
-no-reboot
-watchdog i6300esb
-rtc base=localtime
-serial stdio
-display none
-monitor null
)
append=(
hung_task_panic=1
earlyprintk=ttyS0,115200
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[*]}"
----------------------------------------------------------------------------
Thanks,
Fengguang
_______________________________________________
LKP mailing list
LKP(a)linux.intel.com
6 years, 4 months
[drm] INFO: trying to register non-static key.
by Fengguang Wu
Greetings,
0day kernel testing robot got the below dmesg and the first bad commit is
git://anongit.freedesktop.org/drm-intel topic/core-stuff
commit 4e396fc20db96c0af710601f081ffb41b0fe611c
Author: Daniel Vetter <daniel.vetter(a)ffwll.ch>
AuthorDate: Fri Sep 5 14:27:41 2014 +0200
Commit: Daniel Vetter <daniel.vetter(a)ffwll.ch>
CommitDate: Fri Sep 5 14:34:48 2014 +0200
drm: Drop modeset locking from crtc init function
At driver init no one can access modeset objects and we're
single-threaded. So locking is just cargo-culting here. Worse, with
the new ww mutexes and ww mutex slowpath debugging the mutex_lock
might actually fail, and we don't have the full-blown ww recovery
dance.
Which then leads to fireworks when we try to unlock the not-locked
crtc lock.
An audit of all the functions called from here shows that none of them
contain locking checks, so there's also no reason to keep the locking
around just for consistency of caller contexts. Besides that I have
the rule (at least in i915) that such places where we take locks just
to simplify locking checks and not for correctness always require a
comment.
This regression was introduced in
commit 51fd371bbaf94018a1223b4e2cf20b9880fd92d4
Author: Rob Clark <robdclark(a)gmail.com>
Date: Tue Nov 19 12:10:12 2013 -0500
drm: convert crtc and connection_mutex to ww_mutex (v5)
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=83341
Cc: Rob Clark <robdclark(a)gmail.com>
Cc: thellstrom(a)vmware.com
Cc: maarten.lankhorst(a)canonical.com
Cc: stable(a)vger.kernel.org
Signed-off-by: Daniel Vetter <daniel.vetter(a)intel.com>
===================================================
PARENT COMMIT NOT CLEAN. LOOK OUT FOR WRONG BISECT!
===================================================
Attached dmesg for the parent commit, too, to help confirm whether it is a noise error.
+------------------------------------------------------------------+------------+------------+------------+
| | 5c551b501a | 4e396fc20d | 5a2aa64d4e |
+------------------------------------------------------------------+------------+------------+------------+
| boot_successes | 31 | 0 | 0 |
| boot_failures | 29 | 20 | 11 |
| Kernel_panic-not_syncing:Out_of_memory_and_no_killable_processes | 25 | | |
| backtrace:lock_torture_stats | 25 | | |
| BUG:unable_to_handle_kernel_paging_request | 3 | | |
| Oops | 2 | 20 | 11 |
| EIP_is_at__lock_acquire | 1 | | |
| Kernel_panic-not_syncing:Fatal_exception_in_interrupt | 1 | | |
| backtrace:set_memory_np | 2 | | |
| backtrace:free_init_pages | 2 | | |
| backtrace:populate_rootfs | 2 | | |
| backtrace:kernel_init_freeable | 2 | 20 | 11 |
| EIP_is_at__change_page_attr_set_clr | 1 | | |
| Kernel_panic-not_syncing:Fatal_exception | 1 | 20 | 11 |
| BUG:kernel_boot_hang | 1 | | |
| INFO:trying_to_register_non-static_key | 0 | 20 | 11 |
| BUG:unable_to_handle_kernel_NULL_pointer_dereference | 0 | 20 | 11 |
| EIP_is_at__ww_mutex_lock | 0 | 20 | 11 |
| backtrace:drm_modeset_lock_all | 0 | 20 | 11 |
| backtrace:drm_encoder_init | 0 | 20 | 11 |
| backtrace:cirrus_modeset_init | 0 | 20 | 11 |
| backtrace:__pci_register_driver | 0 | 20 | 11 |
| backtrace:drm_pci_init | 0 | 20 | 11 |
| backtrace:cirrus_init | 0 | 20 | 11 |
+------------------------------------------------------------------+------------+------------+------------+
[ 0.836476] [drm] radeon kernel modesetting enabled.
[ 0.837550] [TTM] Zone kernel: Available graphics memory: 145694 kiB
[ 0.838064] [TTM] Initializing pool allocator
[ 0.838626] INFO: trying to register non-static key.
[ 0.839022] the code is fine but needs lockdep annotation.
[ 0.839454] turning off the locking correctness validator.
[ 0.839884] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.17.0-rc2-00221-g4e396fc #5
[ 0.840367] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.7.5-20140531_083030-gandalf 04/01/2014
[ 0.840367] 00000000 00000000 d341fc08 c69981fd c7394920 d341fc7c c5c7b341 c6c9ea3c
[ 0.840367] 0900b705 d3440000 d341fc90 c5c79b96 d3440000 402dc174 d3440000 402dc174
[ 0.840367] 00000005 01440000 00000000 d2529848 d2529848 00000000 c73626e0 d34405d0
[ 0.840367] Call Trace:
[ 0.840367] [<c69981fd>] dump_stack+0x48/0x60
[ 0.840367] [<c5c7b341>] __lock_acquire+0x1c21/0x1da0
[ 0.840367] [<c5c79b96>] ? __lock_acquire+0x476/0x1da0
[ 0.840367] [<c5c78a96>] ? __lock_is_held+0x46/0x60
[ 0.840367] [<c5c7bd11>] lock_acquire+0x91/0xc0
[ 0.840367] [<c625e531>] ? drm_modeset_lock+0x31/0xf0
[ 0.840367] [<c69a607c>] __ww_mutex_lock+0x6c/0x780
[ 0.840367] [<c625e531>] ? drm_modeset_lock+0x31/0xf0
[ 0.840367] [<c625e531>] ? drm_modeset_lock+0x31/0xf0
[ 0.840367] [<c625e531>] ? drm_modeset_lock+0x31/0xf0
[ 0.840367] [<c625e531>] drm_modeset_lock+0x31/0xf0
[ 0.840367] [<c625e7c4>] drm_modeset_lock_all_crtcs+0x34/0x50
[ 0.840367] [<c625e884>] __drm_modeset_lock_all+0xa4/0xe0
[ 0.840367] [<c625e8ca>] drm_modeset_lock_all+0xa/0x30
[ 0.840367] [<c625022b>] drm_encoder_init+0x1b/0xe0
[ 0.840367] [<c5d0ea08>] ? kmem_cache_alloc+0x98/0x190
[ 0.840367] [<c6366d81>] ? cirrus_modeset_init+0xe1/0x1c0
[ 0.840367] [<c6366da7>] cirrus_modeset_init+0x107/0x1c0
[ 0.840367] [<c6365e47>] cirrus_driver_load+0x57/0x120
[ 0.840367] [<c624b75e>] drm_dev_register+0x9e/0x100
[ 0.840367] [<c624cea1>] drm_get_pci_dev+0x91/0x1c0
[ 0.840367] [<c5c77e5b>] ? trace_hardirqs_on+0xb/0x10
[ 0.840367] [<c69a5f58>] ? mutex_unlock+0x8/0x10
[ 0.840367] [<c6366fcc>] cirrus_pci_probe+0xac/0xf0
[ 0.840367] [<c6113337>] pci_device_probe+0x77/0xe0
[ 0.840367] [<c5d7fbb0>] ? sysfs_create_link+0x20/0x40
[ 0.840367] [<c63c3673>] driver_probe_device+0x73/0x230
[ 0.840367] [<c6113292>] ? pci_match_device+0xc2/0xf0
[ 0.840367] [<c63c3911>] __driver_attach+0x91/0xa0
[ 0.840367] [<c63c3880>] ? __device_attach+0x50/0x50
[ 0.840367] [<c63c1f7f>] bus_for_each_dev+0x4f/0x80
[ 0.840367] [<c63c39d9>] driver_attach+0x19/0x20
[ 0.840367] [<c63c3880>] ? __device_attach+0x50/0x50
[ 0.840367] [<c63c2897>] bus_add_driver+0x137/0x1f0
[ 0.840367] [<c6edb6e6>] ? mgag200_init+0x22/0x22
[ 0.840367] [<c6edb6e6>] ? mgag200_init+0x22/0x22
[ 0.840367] [<c63c4044>] driver_register+0x54/0xe0
[ 0.840367] [<c6113595>] __pci_register_driver+0x45/0x50
[ 0.840367] [<c624d0ba>] drm_pci_init+0xea/0x110
[ 0.840367] [<c5c77e5b>] ? trace_hardirqs_on+0xb/0x10
[ 0.840367] [<c6edb6e6>] ? mgag200_init+0x22/0x22
[ 0.840367] [<c6edb706>] cirrus_init+0x20/0x22
[ 0.840367] [<c6eafc92>] do_one_initcall+0x16a/0x179
[ 0.840367] [<c5c54f00>] ? parse_args+0x150/0x3e0
[ 0.840367] [<c6eafd8e>] kernel_init_freeable+0xed/0x16a
[ 0.840367] [<c69925db>] kernel_init+0xb/0xe0
[ 0.840367] [<c69a9521>] ret_from_kernel_thread+0x21/0x30
[ 0.840367] [<c69925d0>] ? rest_init+0x120/0x120
[ 0.862651] BUG: unable to handle kernel NULL pointer dereference at (null)
[ 0.863236] IP: [<c69a610a>] __ww_mutex_lock+0xfa/0x780
[ 0.863655] *pdpt = 00000000125ad001 *pde = 0000000000000000
[ 0.864131] Oops: 0002 [#1] SMP DEBUG_PAGEALLOC
[ 0.864521] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.17.0-rc2-00221-g4e396fc #5
[ 0.865109] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.7.5-20140531_083030-gandalf 04/01/2014
[ 0.865883] task: d3440000 ti: d341e000 task.ti: d341e000
[ 0.866310] EIP: 0060:[<c69a610a>] EFLAGS: 00010082 CPU: 0
[ 0.866638] EIP is at __ww_mutex_lock+0xfa/0x780
[ 0.866638] EAX: 00000000 EBX: d2520b40 ECX: d2529834 EDX: d341fcdc
[ 0.866638] ESI: d2529810 EDI: d2529814 EBP: d341fcf8 ESP: d341fcb4
[ 0.866638] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
[ 0.866638] CR0: 8005003b CR2: 00000000 CR3: 125ac000 CR4: 000006b0
[ 0.866638] Stack:
[ 0.866638] 00000000 00000001 d2520b58 c625e531 c625e531 d2529848 00000001 d3440000
[ 0.866638] d2520b40 00000246 d2529834 00000000 11111111 d341fcdc d2520b40 d2529810
[ 0.866638] d2520b40 d341fd0c c625e531 d2529800 d2528c00 d2520b40 d341fd20 c625e7c4
[ 0.866638] Call Trace:
[ 0.866638] [<c625e531>] ? drm_modeset_lock+0x31/0xf0
[ 0.866638] [<c625e531>] ? drm_modeset_lock+0x31/0xf0
[ 0.866638] [<c625e531>] drm_modeset_lock+0x31/0xf0
[ 0.866638] [<c625e7c4>] drm_modeset_lock_all_crtcs+0x34/0x50
[ 0.866638] [<c625e884>] __drm_modeset_lock_all+0xa4/0xe0
[ 0.866638] [<c625e8ca>] drm_modeset_lock_all+0xa/0x30
[ 0.866638] [<c625022b>] drm_encoder_init+0x1b/0xe0
[ 0.866638] [<c5d0ea08>] ? kmem_cache_alloc+0x98/0x190
[ 0.866638] [<c6366d81>] ? cirrus_modeset_init+0xe1/0x1c0
[ 0.866638] [<c6366da7>] cirrus_modeset_init+0x107/0x1c0
[ 0.866638] [<c6365e47>] cirrus_driver_load+0x57/0x120
[ 0.866638] [<c624b75e>] drm_dev_register+0x9e/0x100
[ 0.866638] [<c624cea1>] drm_get_pci_dev+0x91/0x1c0
[ 0.866638] [<c5c77e5b>] ? trace_hardirqs_on+0xb/0x10
[ 0.866638] [<c69a5f58>] ? mutex_unlock+0x8/0x10
[ 0.866638] [<c6366fcc>] cirrus_pci_probe+0xac/0xf0
[ 0.866638] [<c6113337>] pci_device_probe+0x77/0xe0
[ 0.866638] [<c5d7fbb0>] ? sysfs_create_link+0x20/0x40
[ 0.866638] [<c63c3673>] driver_probe_device+0x73/0x230
[ 0.866638] [<c6113292>] ? pci_match_device+0xc2/0xf0
[ 0.866638] [<c63c3911>] __driver_attach+0x91/0xa0
[ 0.866638] [<c63c3880>] ? __device_attach+0x50/0x50
[ 0.866638] [<c63c1f7f>] bus_for_each_dev+0x4f/0x80
[ 0.866638] [<c63c39d9>] driver_attach+0x19/0x20
[ 0.866638] [<c63c3880>] ? __device_attach+0x50/0x50
[ 0.866638] [<c63c2897>] bus_add_driver+0x137/0x1f0
[ 0.866638] [<c6edb6e6>] ? mgag200_init+0x22/0x22
[ 0.866638] [<c6edb6e6>] ? mgag200_init+0x22/0x22
[ 0.866638] [<c63c4044>] driver_register+0x54/0xe0
[ 0.866638] [<c6113595>] __pci_register_driver+0x45/0x50
[ 0.866638] [<c624d0ba>] drm_pci_init+0xea/0x110
[ 0.866638] [<c5c77e5b>] ? trace_hardirqs_on+0xb/0x10
[ 0.866638] [<c6edb6e6>] ? mgag200_init+0x22/0x22
[ 0.866638] [<c6edb706>] cirrus_init+0x20/0x22
[ 0.866638] [<c6eafc92>] do_one_initcall+0x16a/0x179
[ 0.866638] [<c5c54f00>] ? parse_args+0x150/0x3e0
[ 0.866638] [<c6eafd8e>] kernel_init_freeable+0xed/0x16a
[ 0.866638] [<c69925db>] kernel_init+0xb/0xe0
[ 0.866638] [<c69a9521>] ret_from_kernel_thread+0x21/0x30
[ 0.866638] [<c69925d0>] ? rest_init+0x120/0x120
[ 0.866638] Code: 55 e4 89 f0 e8 a8 e9 2c ff 8b 45 d8 8d 55 e4 8b 48 04 89 f0 e8 d8 eb 2c ff 8b 46 28 8d 4e 24 8d 55 e4 89 56 28 89 4d e4 89 45 e8 <89> 10 8b 45 d8 89 4d d4 89 45 ec 8d 74 26 00 8d bc 27 00 00 00
[ 0.866638] EIP: [<c69a610a>] __ww_mutex_lock+0xfa/0x780 SS:ESP 0068:d341fcb4
[ 0.866638] CR2: 0000000000000000
[ 0.866638] ---[ end trace 5dc0d5f349200b14 ]---
[ 0.866638] Kernel panic - not syncing: Fatal exception
git bisect start 5a2aa64d4eafdaef278ff495025c59a5cd96eafb 69e273c0b0a3c337a521d083374c918dc52c666f --
git bisect good 82c3b0c30522510fcee89a14302aeb06df65f8d1 # 22:42 20+ 5 Merge 'spi/fix/rockchip' into devel-roam-i386-201409052138
git bisect good 259fc4e3fc3c3f073edd07564eb82433d7c86cc7 # 23:47 20+ 0 Merge 'drm-intel/drm-intel-nightly' into devel-roam-i386-201409052138
git bisect bad 70d805ad73fa5ee4d860ff10f4ff98050c01c2d9 # 00:58 0- 1 Merge 'hch-scsi-queue/core-for-3.18' into devel-roam-i386-201409052138
git bisect good 16cd192c2100085aa6ce04ec186fe62346a3b173 # 01:31 20+ 20 Merge 'drm/drm-mst-dell-30-hacks' into devel-roam-i386-201409052138
git bisect bad 31c010b13c93e6a7e8553be9b1d885b61df434b4 # 01:50 1- 20 Merge 'drm-intel/topic/core-stuff' into devel-roam-i386-201409052138
git bisect bad 4e396fc20db96c0af710601f081ffb41b0fe611c # 02:15 0- 4 drm: Drop modeset locking from crtc init function
# first bad commit: [4e396fc20db96c0af710601f081ffb41b0fe611c] drm: Drop modeset locking from crtc init function
git bisect good 5c551b501aa8637e844ea85eaea10f4f75aff716 # 03:00 60+ 29 drm/i915/hdmi: Enable pipe pixel replication for SD interlaced modes
git bisect bad 5a2aa64d4eafdaef278ff495025c59a5cd96eafb # 03:00 0- 11 0day head guard for 'devel-roam-i386-201409052138'
git bisect good fb762340e55638332407560396aea380b7af9cbf # 03:11 60+ 26 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k
git bisect good 92d88cb068a5dc66d53ef017999b2419b125f764 # 04:16 60+ 2 Add linux-next specific files for 20140905
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
-cpu kvm64
-enable-kvm
-kernel $kernel
-initrd $initrd
-m 320
-smp 1
-net nic,vlan=1,model=e1000
-net user,vlan=1
-boot order=nc
-no-reboot
-watchdog i6300esb
-rtc base=localtime
-serial stdio
-display none
-monitor null
)
append=(
hung_task_panic=1
earlyprintk=ttyS0,115200
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[*]}"
----------------------------------------------------------------------------
Thanks,
Fengguang
_______________________________________________
LKP mailing list
LKP(a)linux.intel.com
6 years, 4 months
[drm/i915] c2b6ef43779: dmesg.WARNING:CPU:PID:at_drivers/gpu/drm/i915/i915_irq.c:ironlake_enable_display_irq_i915()
by Fengguang Wu
FYI, we noticed the below dmesg warning changes on
git://linuxtv.org/snawrocki/samsung.git next-20140721-exynos4412-odroid-sound
commit c2b6ef437792d4d5f972d5147b809aac78a5b273 ("drm/i915: set pm._irqs_disabled at IRQ init time")
test case: lkp-t410/boot/1
lkp-t410 is a Westmere laptop.
e59a094c9058421 c2b6ef437792d4d5f972d5147
--------------- -------------------------
0 +Inf% 1 ± 0% TOTAL dmesg.WARNING:CPU:PID:at_drivers/gpu/drm/i915/i915_irq.c:ironlake_enable_display_irq_i915()
0 +Inf% 1 ± 0% TOTAL dmesg.WARNING:CPU:PID:at_drivers/gpu/drm/i915/i915_irq.c:ibx_display_interrupt_update_i915()
1 ± 0% -100.0% 0 ± 0% TOTAL dmesg.WARNING:CPU:PID:at_drivers/gpu/drm/i915/intel_pm.c:intel_disable_gt_powersave_i915()
After patch, the dmesg sometimes show this warning
[ 9.146723] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 9.146724] [drm] Driver supports precise vblank timestamp query.
[ 9.147237] ------------[ cut here ]------------
[ 9.147300] WARNING: CPU: 0 PID: 271 at drivers/gpu/drm/i915/i915_irq.c:139 ironlake_enable_display_irq+0x73/0x80 [i915]()
[ 9.147336] Modules linked in: snd_hda_codec_conexant snd_hda_codec_generic mxm_wmi i915(+) snd_hda_intel snd_hda_controller video parport_pc thinkpad_acpi snd_hda_codec sdhci_pci rfkill snd_hwdep parport drm_kms_helper uvcvideo sdhci videobuf2_vmalloc videobuf2_memops mmc_core videobuf2_core firewire_ohci pcspkr snd_pcm v4l2_common ahci firewire_core libahci videodev intel_ips i2c_i801 snd_timer drm crc_itu_t snd libata wmi soundcore acpi_cpufreq
[ 9.147340] CPU: 0 PID: 271 Comm: modprobe Not tainted 3.16.0-rc4-00052-gc2b6ef4 #1
[ 9.147342] Hardware name: LENOVO 25222AU/25222AU, BIOS 6IET52WW (1.12 ) 02/16/2010
[ 9.147347] 0000000000000009 ffff880076b0f8e0 ffffffff8182b6d0 0000000000000000
[ 9.147350] ffff880076b0f918 ffffffff8106d0dd ffff880074f30000 ffff880074f37128
[ 9.147354] 0000000000000246 ffff880074f30000 ffff880074f30000 ffff880076b0f928
[ 9.147355] Call Trace:
[ 9.147365] [<ffffffff8182b6d0>] dump_stack+0x4d/0x66
[ 9.147373] [<ffffffff8106d0dd>] warn_slowpath_common+0x7d/0xa0
[ 9.147376] [<ffffffff8106d1ba>] warn_slowpath_null+0x1a/0x20
[ 9.147421] [<ffffffffa02a88b3>] ironlake_enable_display_irq+0x73/0x80 [i915]
[ 9.147466] [<ffffffffa02a912f>] ironlake_irq_postinstall+0x17f/0x1a0 [i915]
[ 9.147488] [<ffffffffa00957be>] drm_irq_install+0xbe/0x1a0 [drm]
[ 9.147547] [<ffffffffa03067e7>] i915_driver_load+0xb07/0xfe0 [i915]
[ 9.147555] [<ffffffff813de338>] ? kobject_uevent_env+0x178/0x690
[ 9.147560] [<ffffffff814df1e7>] ? get_device+0x17/0x30
[ 9.147564] [<ffffffff814e4875>] ? klist_class_dev_get+0x15/0x20
[ 9.147569] [<ffffffff8181943a>] ? klist_add_tail+0x3a/0x40
[ 9.147572] [<ffffffff814e0919>] ? device_add+0x1f9/0x610
[ 9.147595] [<ffffffffa009c176>] ? drm_sysfs_device_add+0xd6/0x120 [drm]
[ 9.147614] [<ffffffffa009878d>] drm_dev_register+0xad/0x100 [drm]
[ 9.147634] [<ffffffffa009b26f>] drm_get_pci_dev+0x8f/0x1f0 [drm]
[ 9.147668] [<ffffffffa027856b>] i915_pci_probe+0x3b/0x60 [i915]
[ 9.147674] [<ffffffff81412c25>] local_pci_probe+0x45/0xa0
[ 9.147679] [<ffffffff81413db5>] ? pci_match_device+0xe5/0x110
[ 9.147683] [<ffffffff81413ef1>] pci_device_probe+0xd1/0x130
[ 9.147688] [<ffffffff814e39b0>] driver_probe_device+0x90/0x3c0
[ 9.147691] [<ffffffff814e3db3>] __driver_attach+0x93/0xa0
[ 9.147694] [<ffffffff814e3d20>] ? __device_attach+0x40/0x40
[ 9.147697] [<ffffffff814e1a33>] bus_for_each_dev+0x63/0xa0
[ 9.147700] [<ffffffff814e344e>] driver_attach+0x1e/0x20
[ 9.147704] [<ffffffff814e3060>] bus_add_driver+0x180/0x250
[ 9.147707] [<ffffffff814e4584>] driver_register+0x64/0xf0
[ 9.147712] [<ffffffff814125bc>] __pci_register_driver+0x4c/0x50
[ 9.147731] [<ffffffffa009b4da>] drm_pci_init+0x10a/0x140 [drm]
[ 9.147736] [<ffffffffa035d000>] ? 0xffffffffa035cfff
[ 9.147771] [<ffffffffa035d089>] i915_init+0x89/0x90 [i915]
[ 9.147779] [<ffffffff8100212c>] do_one_initcall+0xbc/0x1f0
[ 9.147784] [<ffffffff811a9c35>] ? kfree+0x125/0x160
[ 9.147789] [<ffffffff8118fea2>] ? __vunmap+0xb2/0x100
[ 9.147797] [<ffffffff810ec9bc>] load_module+0x15fc/0x1a30
[ 9.147801] [<ffffffff810e8550>] ? store_uevent+0x40/0x40
[ 9.147805] [<ffffffff8119025c>] ? __vmalloc_node_range+0xbc/0x270
[ 9.147810] [<ffffffff810eceb1>] SyS_init_module+0xc1/0x110
[ 9.147817] [<ffffffff81834529>] system_call_fastpath+0x16/0x1b
[ 9.147820] ---[ end trace 2d05078fac923b98 ]---
[ 9.147880] vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=io+mem:owns=io+mem
Thanks,
Fengguang
_______________________________________________
LKP mailing list
LKP(a)linux.intel.com
6 years, 4 months
[LSM] Kernel panic - not syncing: Could not register security module
by Fengguang Wu
Hi Kees,
0day kernel testing robot got the below dmesg and the first bad commit is
git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git lsm/mnt-restrict
commit d9df832e0cc059bc6f94ee6ea5286fdd1efac503
Author: Kees Cook <keescook(a)chromium.org>
AuthorDate: Sat Sep 21 15:52:51 2013 -0700
Commit: Kees Cook <keescook(a)chromium.org>
CommitDate: Tue Sep 2 14:23:48 2014 -0700
LSM: MntRestrict blocks mounts on symlink targets
On systems where certain filesystem contents cannot be entirely trusted,
it is beneficial to block mounts on symlinks. This makes sure that
malicious filesystem contents cannot trigger the over-mounting of trusted
filesystems. (For example, a bind-mounted subdirectory of /var cannot be
redirected to mount on /etc via a symlink: a daemon cannot elevate privs
to uid-0.)
Signed-off-by: Kees Cook <keescook(a)chromium.org>
+-------------------------------------------------------------+------------+------------+------------------+
| | 7505ceaf86 | d9df832e0c | v3.17-rc3_090307 |
+-------------------------------------------------------------+------------+------------+------------------+
| boot_successes | 183 | 0 | 0 |
| boot_failures | 57 | 20 | 21 |
| BUG:kernel_boot_hang | 57 | | |
| Kernel_panic-not_syncing:Could_not_register_security_module | 0 | 20 | 21 |
| backtrace:panic | 0 | 20 | 21 |
| backtrace:mntrestrict_init | 0 | 20 | 21 |
| backtrace:security_init | 0 | 20 | 21 |
+-------------------------------------------------------------+------------+------------+------------------+
[ 0.008000] ACPI: Core revision 20140724
[ 0.009549] ACPI: All ACPI Tables successfully acquired
[ 0.010749] Security Framework initialized
[ 0.012012] Kernel panic - not syncing: Could not register security module
[ 0.013779] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.17.0-rc3-00003-gd9df832 #6
[ 0.016000] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[ 0.016000] 0000000000000000 ffffffff81a03eb0 ffffffff81563273 ffffffff817aad75
[ 0.016000] ffffffff81a03f28 ffffffff8155e113 ffffffff00000008 ffffffff81a03f38
[ 0.016000] ffffffff81a03ed8 00000000000143c0 ffffffff81b4d998 0000000080000000
[ 0.016000] Call Trace:
[ 0.016000] [<ffffffff81563273>] dump_stack+0x4e/0x7a
[ 0.016000] [<ffffffff8155e113>] panic+0xc6/0x1d8
[ 0.016000] [<ffffffff81ae197b>] mntrestrict_init+0x37/0x49
[ 0.016000] [<ffffffff81adf754>] security_init+0x3c/0x47
[ 0.016000] [<ffffffff81ac0e30>] start_kernel+0x38d/0x3c7
[ 0.016000] [<ffffffff81ac08a0>] ? set_init_arg+0x53/0x53
[ 0.016000] [<ffffffff81ac0120>] ? early_idt_handlers+0x120/0x120
[ 0.016000] [<ffffffff81ac04a2>] x86_64_start_reservations+0x2a/0x2c
[ 0.016000] [<ffffffff81ac0592>] x86_64_start_kernel+0xee/0xfb
Elapsed time: 5
qemu-system-x86_64 -cpu kvm64 -enable-kvm -kernel /kernel/x86_64-randconfig-hsxa1-09030805/d9df832e0cc059bc6f94ee6ea5286fdd1efac503/vmlinuz-3.17.0-rc3-00003-gd9df832 -append 'hung_task_panic=1 earlyprintk=ttyS0,115200 debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 panic=-1 softlockup_panic=1 nmi_watchdog=panic oops=panic load_ramdisk=2 prompt_ramdisk=0 console=ttyS0,115200 console=tty0 vga=normal root=/dev/ram0 rw link=/kbuild-tests/run-queue/kvm/x86_64-randconfig-hsxa1-09030805/linux-devel:devel-hourly-2014090307:d9df832e0cc059bc6f94ee6ea5286fdd1efac503:bisect-linux-6/.vmlinuz-d9df832e0cc059bc6f94ee6ea5286fdd1efac503-20140903092602-20-vp branch=linux-devel/devel-hourly-2014090307 BOOT_IMAGE=/kernel/x86_64-randconfig-hsxa1-09030805/d9df832e0cc059bc6f94ee6ea5286fdd1efac503/vmlinuz-3.17.0-rc3-00003-gd9df832 drbd.minor_count=8' -initrd /kernel-tests/initrd/yocto-minimal-x86_64.cgz -m 320 -smp 1 -net nic,vlan=1,model=e1000 -net user,vlan=1 -boot order=nc -no-reboot -watchdog i6300esb -rtc base=localtime -drive file=/fs/LABEL=KVM/disk0-yocto-vp-25,media=disk,if=virtio -drive file=/fs/LABEL=KVM/disk1-yocto-vp-25,media=disk,if=virtio -drive file=/fs/LABEL=KVM/disk2-yocto-vp-25,media=disk,if=virtio -drive file=/fs/LABEL=KVM/disk3-yocto-vp-25,media=disk,if=virtio -drive file=/fs/LABEL=KVM/disk4-yocto-vp-25,media=disk,if=virtio -drive file=/fs/LABEL=KVM/disk5-yocto-vp-25,media=disk,if=virtio -pidfile /dev/shm/kboot/pid-yocto-vp-25 -serial file:/dev/shm/kboot/serial-yocto-vp-25 -daemonize -display none -monitor null
git bisect start 548c845e0c12d446fbcd0cfc042b14075b7e8ca8 69e273c0b0a3c337a521d083374c918dc52c666f --
git bisect good eade7959972091def889e2e9b3f01ef254e20ac0 # 14:39 20+ 0 Merge 'spi/topic/of-guard' into devel-hourly-2014090307
git bisect bad 0b58f7b34051d9685dbce8e967014ca9e7057c76 # 14:39 0- 20 Merge 'kees/arm/ro-nx' into devel-hourly-2014090307
git bisect bad 424e081d63cbcab953f96eb9a06a7458e6eb0645 # 14:39 0- 20 Merge 'kees/lsm/mnt-restrict' into devel-hourly-2014090307
git bisect good 241aae727b8fd58a9f4bdf4919817957f4f64152 # 14:39 20+ 0 Merge 'renesas/devel' into devel-hourly-2014090307
git bisect good 4caa05c6584e62f376c5153c12d5f6de10a7571a # 14:39 20+ 0 Merge 'kvm/nsvm-fixes' into devel-hourly-2014090307
git bisect good 44a883de40cd921a99bf5e60b9fcce20b5b4c194 # 14:39 20+ 0 Merge 'kees/typos' into devel-hourly-2014090307
git bisect good ea9c715254f99adc3b8a52bbc71bfcb3f329a16c # 14:39 20+ 0 Merge 'staging/staging-next' into devel-hourly-2014090307
git bisect bad d9df832e0cc059bc6f94ee6ea5286fdd1efac503 # 14:41 0- 20 LSM: MntRestrict blocks mounts on symlink targets
# first bad commit: [d9df832e0cc059bc6f94ee6ea5286fdd1efac503] LSM: MntRestrict blocks mounts on symlink targets
git bisect good 7505ceaf863590b24a4c0c83b64817d26e0d51e3 # 14:45 60+ 30 Merge branch 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect bad 548c845e0c12d446fbcd0cfc042b14075b7e8ca8 # 14:45 0- 21 0day head guard for 'devel-hourly-2014090307'
git bisect good 7505ceaf863590b24a4c0c83b64817d26e0d51e3 # 15:00 60+ 57 Merge branch 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect good 40e569af89a97a775e918713e2f08fa5ce5f1bb4 # 15:01 60+ 0 Add linux-next specific files for 20140902
This script may reproduce the error.
----------------------------------------------------------------------------
#!/bin/bash
kernel=$1
kvm=(
qemu-system-x86_64
-cpu kvm64
-enable-kvm
-kernel $kernel
-m 320
-smp 1
-net nic,vlan=1,model=e1000
-net user,vlan=1
-boot order=nc
-no-reboot
-watchdog i6300esb
-rtc base=localtime
-serial stdio
-display none
-monitor null
)
append=(
hung_task_panic=1
earlyprintk=ttyS0,115200
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[*]}"
----------------------------------------------------------------------------
Thanks,
Fengguang
6 years, 4 months