BUG: sleeping function called from invalid context at kernel/workqueue.c:3414 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5143, name: udevd preempt_count: 100, expected: 0 RCU nest depth: 0, expected: 0 3 locks held by udevd/5143: #0: ffffffff8d76b070 (tomoyo_ss){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:116 [inline] #0: ffffffff8d76b070 (tomoyo_ss){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:215 [inline] #0: ffffffff8d76b070 (tomoyo_ss){.+.+}-{0:0}, at: tomoyo_read_lock security/tomoyo/common.h:1108 [inline] #0: ffffffff8d76b070 (tomoyo_ss){.+.+}-{0:0}, at: tomoyo_path_perm+0x250/0x560 security/tomoyo/file.c:821 #1: ffffffff8d22e4e0 (remove_cache_srcu){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:116 [inline] #1: ffffffff8d22e4e0 (remove_cache_srcu){.+.+}-{0:0}, at: srcu_read_lock+0x24/0x50 include/linux/srcu.h:215 #2: ffffc90000007be0 ((&vub300->inactivity_timer)){+.-.}-{0:0}, at: call_timer_fn+0xd2/0x540 kernel/time/timer.c:1698 Preemption disabled at: [] softirq_handle_begin kernel/softirq.c:419 [inline] [] handle_softirqs+0x101/0x820 kernel/softirq.c:554 CPU: 0 PID: 5143 Comm: udevd Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 __might_resched+0x48d/0x5f0 kernel/sched/core.c:10212 start_flush_work kernel/workqueue.c:3414 [inline] __flush_work+0x10f/0xac0 kernel/workqueue.c:3474 __cancel_work_timer+0x3f8/0x560 kernel/workqueue.c:3562 mmc_free_host+0x19/0x30 drivers/mmc/core/host.c:694 call_timer_fn+0x189/0x540 kernel/time/timer.c:1701 expire_timers kernel/time/timer.c:1752 [inline] __run_timers+0x570/0x810 kernel/time/timer.c:2023 run_timer_softirq+0x67/0xf0 kernel/time/timer.c:2036 handle_softirqs+0x27d/0x820 kernel/softirq.c:578 __do_softirq kernel/softirq.c:612 [inline] invoke_softirq kernel/softirq.c:452 [inline] __irq_exit_rcu+0xd3/0x190 kernel/softirq.c:661 irq_exit_rcu+0x9/0x20 kernel/softirq.c:673 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1088 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1088 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687 RIP: 0010:phys_addr_valid arch/x86/mm/physaddr.h:7 [inline] RIP: 0010:__phys_addr+0x5c/0xf0 arch/x86/mm/physaddr.c:28 Code: 8e 48 c1 e9 03 48 ba 00 00 00 00 00 fc ff df 0f b6 0c 11 84 c9 75 5c 0f b6 0d 11 67 4f 0d 48 83 f9 40 73 71 48 89 c2 48 d3 ea <48> 85 d2 0f 85 85 00 00 00 5b 41 5e c3 48 c7 c0 10 b0 f5 8c 48 c1 RSP: 0018:ffffc9000331f8d0 EFLAGS: 00000246 RAX: 000000002d0a8800 RBX: ffff8880ad0a8800 RCX: 000000000000002e RDX: 0000000000000000 RSI: ffffea0001d9ea80 RDI: ffff88802d0a8800 RBP: ffff88802d0a8800 R08: 0000000000000001 R09: 0000000000000000 R10: ffff8880767aa000 R11: fffffbfff223dea6 R12: 0000000000000000 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff88802d0a8800 virt_to_folio include/linux/mm.h:1289 [inline] virt_to_slab mm/slab.h:218 [inline] qlink_to_cache+0x5/0xb0 mm/kasan/quarantine.c:129 qlist_free_all+0x39/0xd0 mm/kasan/quarantine.c:182 kasan_quarantine_reduce+0x143/0x160 mm/kasan/quarantine.c:292 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:306 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook+0x6a/0x4d0 mm/slab.h:770 slab_alloc_node mm/slub.c:3495 [inline] __kmem_cache_alloc_node+0x194/0x250 mm/slub.c:3534 __do_kmalloc_node mm/slab_common.c:1006 [inline] __kmalloc+0xa7/0x240 mm/slab_common.c:1020 kmalloc include/linux/slab.h:604 [inline] tomoyo_realpath_from_path+0xe6/0x5c0 security/tomoyo/realpath.c:251 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0x282/0x560 security/tomoyo/file.c:822 security_inode_getattr+0xd3/0x120 security/security.c:2190 vfs_getattr fs/stat.c:173 [inline] vfs_fstat fs/stat.c:198 [inline] __do_sys_newfstat fs/stat.c:473 [inline] __se_sys_newfstat fs/stat.c:470 [inline] __x64_sys_newfstat+0x12c/0x250 fs/stat.c:470 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f8d72511ad7 Code: 73 01 c3 48 8b 0d 21 f3 0d 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 05 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 8b 15 f1 f2 0d 00 f7 d8 64 89 02 b8 RSP: 002b:00007ffd2892ea68 EFLAGS: 00000202 ORIG_RAX: 0000000000000005 RAX: ffffffffffffffda RBX: 000000000000000c RCX: 00007f8d72511ad7 RDX: 0000000000090800 RSI: 00007ffd2892ea70 RDI: 000000000000000c RBP: 00007ffd2892ea70 R08: 00000000000001d0 R09: 0000000000000005 R10: 0000000000000000 R11: 0000000000000202 R12: 0000555c136987b0 R13: 0000000000000100 R14: 0000000000000000 R15: 00007ffd2892ed50 ODEBUG: object ffffc900000079c0 is NOT on stack ffffc90003318000, but annotated. ====================================================== ---------------- Code disassembly (best guess): 0: 8e 48 c1 mov -0x3f(%rax),%cs 3: e9 03 48 ba 00 jmp 0xba480b 8: 00 00 add %al,(%rax) a: 00 00 add %al,(%rax) c: fc cld d: ff lcall (bad) e: df 0f fisttps (%rdi) 10: b6 0c mov $0xc,%dh 12: 11 84 c9 75 5c 0f b6 adc %eax,-0x49f0a38b(%rcx,%rcx,8) 19: 0d 11 67 4f 0d or $0xd4f6711,%eax 1e: 48 83 f9 40 cmp $0x40,%rcx 22: 73 71 jae 0x95 24: 48 89 c2 mov %rax,%rdx 27: 48 d3 ea shr %cl,%rdx * 2a: 48 85 d2 test %rdx,%rdx <-- trapping instruction 2d: 0f 85 85 00 00 00 jne 0xb8 33: 5b pop %rbx 34: 41 5e pop %r14 36: c3 ret 37: 48 c7 c0 10 b0 f5 8c mov $0xffffffff8cf5b010,%rax 3e: 48 rex.W 3f: c1 .byte 0xc1