================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. udevd/3640 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff88807514c648 ((work_completion)(&(&host->detect)->work)){+.?.}-{0:0}, at: __flush_work+0x109/0xac0 kernel/workqueue.c:3072 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x1bb/0x4a0 kernel/locking/lockdep.c:5678 process_one_work+0x7ec/0x1160 kernel/workqueue.c:2268 worker_thread+0xaf5/0x12a0 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 irq event stamp: 1016854 hardirqs last enabled at (1016854): [] __cancel_work_timer+0x36a/0x560 kernel/workqueue.c:3156 hardirqs last disabled at (1016853): [] try_to_grab_pending+0xfa/0x890 kernel/workqueue.c:1267 softirqs last enabled at (1016768): [] __do_softirq kernel/softirq.c:630 [inline] softirqs last enabled at (1016768): [] invoke_softirq kernel/softirq.c:470 [inline] softirqs last enabled at (1016768): [] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:679 softirqs last disabled at (1016789): [] __do_softirq kernel/softirq.c:630 [inline] softirqs last disabled at (1016789): [] invoke_softirq kernel/softirq.c:470 [inline] softirqs last disabled at (1016789): [] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:679 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock((work_completion)(&(&host->detect)->work)); lock((work_completion)(&(&host->detect)->work)); *** DEADLOCK *** 2 locks held by udevd/3640: #0: ffffffff8cb2d7e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline] #0: ffffffff8cb2d7e0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline] #0: ffffffff8cb2d7e0 (rcu_read_lock){....}-{1:2}, at: ima_match_policy+0x10d/0x21b0 security/integrity/ima/ima_policy.c:725 #1: ffffc900001e0bc0 ((&vub300->inactivity_timer)){+.-.}-{0:0}, at: call_timer_fn+0xcf/0x670 kernel/time/timer.c:1698 stack backtrace: CPU: 1 PID: 3640 Comm: udevd Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 valid_state+0x13b/0x1d0 kernel/locking/lockdep.c:3974 mark_lock_irq+0xa9/0x900 kernel/locking/lockdep.c:4177 mark_lock+0x208/0x320 kernel/locking/lockdep.c:4633 mark_usage kernel/locking/lockdep.c:-1 [inline] __lock_acquire+0xce0/0x7c40 kernel/locking/lockdep.c:5017 lock_acquire+0x1bb/0x4a0 kernel/locking/lockdep.c:5678 __flush_work+0x122/0xac0 kernel/workqueue.c:3072 __cancel_work_timer+0x3f4/0x560 kernel/workqueue.c:3163 mmc_free_host+0x15/0x30 drivers/mmc/core/host.c:672 call_timer_fn+0x1ac/0x670 kernel/time/timer.c:1701 expire_timers kernel/time/timer.c:1752 [inline] __run_timers+0x56c/0x810 kernel/time/timer.c:2023 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:2036 handle_softirqs+0x291/0x910 kernel/softirq.c:596 __do_softirq kernel/softirq.c:630 [inline] invoke_softirq kernel/softirq.c:470 [inline] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:679 irq_exit_rcu+0x5/0x20 kernel/softirq.c:691 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691 RIP: 0010:lock_is_held_type+0x13a/0x190 kernel/locking/lockdep.c:5726 Code: 75 40 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7 04 24 00 02 00 00 75 46 41 f7 c5 00 02 00 00 74 01 fb 65 48 8b 04 25 28 00 00 00 <48> 3b 44 24 08 75 3c 89 e8 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f RSP: 0018:ffffc900032d73b8 EFLAGS: 00000206 RAX: 75924586aa47ef00 RBX: ffff88807c28da00 RCX: 75924586aa47ef00 RDX: ffff88807c28da00 RSI: ffffffff8a8c2a20 RDI: ffffffff8adf68a0 RBP: 0000000000000001 R08: dffffc0000000000 R09: 1ffffffff2161e48 R10: dffffc0000000000 R11: fffffbfff2161e49 R12: 0000000000000000 R13: 0000000000000246 R14: ffffffff8cb2d7e0 R15: ffff88807c28e4e0 ima_match_policy+0x1d0/0x21b0 security/integrity/ima/ima_policy.c:726 ima_get_action+0x71/0xa0 security/integrity/ima/ima_api.c:199 process_measurement+0x2da/0x1c40 security/integrity/ima/ima_main.c:228 ima_file_check+0xc8/0x110 security/integrity/ima/ima_main.c:534 do_open fs/namei.c:3679 [inline] path_openat+0x272b/0x2f10 fs/namei.c:3834 do_filp_open+0x1ee/0x420 fs/namei.c:3861 do_sys_openat2+0x14b/0x4f0 fs/open.c:1320 do_sys_open fs/open.c:1336 [inline] __do_sys_openat fs/open.c:1352 [inline] __se_sys_openat fs/open.c:1347 [inline] __x64_sys_openat+0x135/0x160 fs/open.c:1347 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f6af58a7407 Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff RSP: 002b:00007ffc075864e0 EFLAGS: 00000202 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f6af60a0880 RCX: 00007f6af58a7407 RDX: 0000000000080141 RSI: 00005645b22dd02e RDI: ffffffffffffff9c RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000000001a4 R11: 0000000000000202 R12: 00000000ffffffff R13: 00000000ffffffff R14: ffffffffffffffff R15: 0000000000000000 BUG: sleeping function called from invalid context at kernel/workqueue.c:3013 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 3640, name: udevd preempt_count: 100, expected: 0 RCU nest depth: 1, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [] softirq_handle_begin kernel/softirq.c:434 [inline] [] handle_softirqs+0xfd/0x910 kernel/softirq.c:572 CPU: 1 PID: 3640 Comm: udevd Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 __might_resched+0x489/0x5f0 kernel/sched/core.c:9970 start_flush_work kernel/workqueue.c:3013 [inline] __flush_work+0x142/0xac0 kernel/workqueue.c:3075 __cancel_work_timer+0x3f4/0x560 kernel/workqueue.c:3163 mmc_free_host+0x15/0x30 drivers/mmc/core/host.c:672 call_timer_fn+0x1ac/0x670 kernel/time/timer.c:1701 expire_timers kernel/time/timer.c:1752 [inline] __run_timers+0x56c/0x810 kernel/time/timer.c:2023 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:2036 handle_softirqs+0x291/0x910 kernel/softirq.c:596 __do_softirq kernel/softirq.c:630 [inline] invoke_softirq kernel/softirq.c:470 [inline] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:679 irq_exit_rcu+0x5/0x20 kernel/softirq.c:691 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691 RIP: 0010:lock_is_held_type+0x13a/0x190 kernel/locking/lockdep.c:5726 Code: 75 40 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7 04 24 00 02 00 00 75 46 41 f7 c5 00 02 00 00 74 01 fb 65 48 8b 04 25 28 00 00 00 <48> 3b 44 24 08 75 3c 89 e8 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f RSP: 0018:ffffc900032d73b8 EFLAGS: 00000206 RAX: 75924586aa47ef00 RBX: ffff88807c28da00 RCX: 75924586aa47ef00 RDX: ffff88807c28da00 RSI: ffffffff8a8c2a20 RDI: ffffffff8adf68a0 RBP: 0000000000000001 R08: dffffc0000000000 R09: 1ffffffff2161e48 R10: dffffc0000000000 R11: fffffbfff2161e49 R12: 0000000000000000 R13: 0000000000000246 R14: ffffffff8cb2d7e0 R15: ffff88807c28e4e0 ima_match_policy+0x1d0/0x21b0 security/integrity/ima/ima_policy.c:726 ima_get_action+0x71/0xa0 security/integrity/ima/ima_api.c:199 process_measurement+0x2da/0x1c40 security/integrity/ima/ima_main.c:228 ima_file_check+0xc8/0x110 security/integrity/ima/ima_main.c:534 do_open fs/namei.c:3679 [inline] path_openat+0x272b/0x2f10 fs/namei.c:3834 do_filp_open+0x1ee/0x420 fs/namei.c:3861 do_sys_openat2+0x14b/0x4f0 fs/open.c:1320 do_sys_open fs/open.c:1336 [inline] __do_sys_openat fs/open.c:1352 [inline] __se_sys_openat fs/open.c:1347 [inline] __x64_sys_openat+0x135/0x160 fs/open.c:1347 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f6af58a7407 Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff RSP: 002b:00007ffc075864e0 EFLAGS: 00000202 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f6af60a0880 RCX: 00007f6af58a7407 RDX: 0000000000080141 RSI: 00005645b22dd02e RDI: ffffffffffffff9c RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000000001a4 R11: 0000000000000202 R12: 00000000ffffffff R13: 00000000ffffffff R14: ffffffffffffffff R15: 0000000000000000 ODEBUG: object ffffc900001e09a0 is NOT on stack ffffc900032d0000, but annotated. ------------[ cut here ]------------ WARNING: CPU: 1 PID: 3640 at lib/debugobjects.c:558 debug_object_is_on_stack lib/debugobjects.c:-1 [inline] WARNING: CPU: 1 PID: 3640 at lib/debugobjects.c:558 lookup_object_or_alloc lib/debugobjects.c:591 [inline] WARNING: CPU: 1 PID: 3640 at lib/debugobjects.c:558 __debug_object_init+0x18e/0x440 lib/debugobjects.c:672 Modules linked in: CPU: 1 PID: 3640 Comm: udevd Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 RIP: 0010:debug_object_is_on_stack lib/debugobjects.c:558 [inline] RIP: 0010:lookup_object_or_alloc lib/debugobjects.c:591 [inline] RIP: 0010:__debug_object_init+0x18e/0x440 lib/debugobjects.c:672 Code: 24 04 74 2f 41 ff c6 44 89 35 7e 6a dd 12 48 c7 c1 40 71 df 8a 48 c7 c7 a0 71 df 8a 84 c0 48 0f 45 f9 48 89 de e8 f2 b9 0c 06 <0f> 0b eb 05 4c 8b 7c 24 18 4d 8d 65 10 4d 89 e6 49 c1 ee 03 41 0f RSP: 0018:ffffc900001e0908 EFLAGS: 00010046 RAX: 0000000000000050 RBX: ffffc900001e09a0 RCX: 75924586aa47ef00 RDX: 0000000000000100 RSI: 0000000000000101 RDI: 0000000000000000 RBP: dffffc0000000000 R08: ffffc900001e0587 R09: 1ffff9200003c0b0 R10: dffffc0000000000 R11: fffff5200003c0b1 R12: ffff88807c28da20 R13: ffff888058d9b8c0 R14: 0000000000000001 R15: ffffffff8a8d3120 FS: 00007f6af60a0880(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9c857d0ff8 CR3: 0000000030350000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __synchronize_srcu+0x227/0x350 kernel/rcu/srcutree.c:1241 wakeup_source_remove drivers/base/power/wakeup.c:198 [inline] wakeup_source_unregister+0x112/0x190 drivers/base/power/wakeup.c:242 mmc_host_classdev_release+0x43/0xf0 drivers/mmc/core/host.c:77 device_release+0x92/0x1c0 drivers/base/core.c:-1 kobject_cleanup lib/kobject.c:681 [inline] kobject_release lib/kobject.c:712 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x217/0x450 lib/kobject.c:729 call_timer_fn+0x1ac/0x670 kernel/time/timer.c:1701 expire_timers kernel/time/timer.c:1752 [inline] __run_timers+0x56c/0x810 kernel/time/timer.c:2023 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:2036 handle_softirqs+0x291/0x910 kernel/softirq.c:596 __do_softirq kernel/softirq.c:630 [inline] invoke_softirq kernel/softirq.c:470 [inline] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:679 irq_exit_rcu+0x5/0x20 kernel/softirq.c:691 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691 RIP: 0010:lock_is_held_type+0x13a/0x190 kernel/locking/lockdep.c:5726 Code: 75 40 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7 04 24 00 02 00 00 75 46 41 f7 c5 00 02 00 00 74 01 fb 65 48 8b 04 25 28 00 00 00 <48> 3b 44 24 08 75 3c 89 e8 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f RSP: 0018:ffffc900032d73b8 EFLAGS: 00000206 RAX: 75924586aa47ef00 RBX: ffff88807c28da00 RCX: 75924586aa47ef00 RDX: ffff88807c28da00 RSI: ffffffff8a8c2a20 RDI: ffffffff8adf68a0 RBP: 0000000000000001 R08: dffffc0000000000 R09: 1ffffffff2161e48 R10: dffffc0000000000 R11: fffffbfff2161e49 R12: 0000000000000000 R13: 0000000000000246 R14: ffffffff8cb2d7e0 R15: ffff88807c28e4e0 ima_match_policy+0x1d0/0x21b0 security/integrity/ima/ima_policy.c:726 ima_get_action+0x71/0xa0 security/integrity/ima/ima_api.c:199 process_measurement+0x2da/0x1c40 security/integrity/ima/ima_main.c:228 ima_file_check+0xc8/0x110 security/integrity/ima/ima_main.c:534 do_open fs/namei.c:3679 [inline] path_openat+0x272b/0x2f10 fs/namei.c:3834 do_filp_open+0x1ee/0x420 fs/namei.c:3861 do_sys_openat2+0x14b/0x4f0 fs/open.c:1320 do_sys_open fs/open.c:1336 [inline] __do_sys_openat fs/open.c:1352 [inline] __se_sys_openat fs/open.c:1347 [inline] __x64_sys_openat+0x135/0x160 fs/open.c:1347 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f6af58a7407 Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff RSP: 002b:00007ffc075864e0 EFLAGS: 00000202 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f6af60a0880 RCX: 00007f6af58a7407 RDX: 0000000000080141 RSI: 00005645b22dd02e RDI: ffffffffffffff9c RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000000001a4 R11: 0000000000000202 R12: 00000000ffffffff R13: 00000000ffffffff R14: ffffffffffffffff R15: 0000000000000000 ---------------- Code disassembly (best guess): 0: 75 40 jne 0x42 2: 48 c7 04 24 00 00 00 movq $0x0,(%rsp) 9: 00 a: 9c pushf b: 8f 04 24 pop (%rsp) e: f7 04 24 00 02 00 00 testl $0x200,(%rsp) 15: 75 46 jne 0x5d 17: 41 f7 c5 00 02 00 00 test $0x200,%r13d 1e: 74 01 je 0x21 20: fb sti 21: 65 48 8b 04 25 28 00 mov %gs:0x28,%rax 28: 00 00 * 2a: 48 3b 44 24 08 cmp 0x8(%rsp),%rax <-- trapping instruction 2f: 75 3c jne 0x6d 31: 89 e8 mov %ebp,%eax 33: 48 83 c4 10 add $0x10,%rsp 37: 5b pop %rbx 38: 41 5c pop %r12 3a: 41 5d pop %r13 3c: 41 5e pop %r14 3e: 41 5f pop %r15