BUG: sleeping function called from invalid context at fs/dcache.c:872 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 4843, name: udevd no locks held by udevd/4843. Preemption disabled at: [] is_module_text_address+0x16/0x140 kernel/module.c:4758 CPU: 0 PID: 4843 Comm: udevd Not tainted 5.15.148-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 ___might_sleep+0x547/0x6a0 kernel/sched/core.c:9626 dput+0x3e/0x420 fs/dcache.c:872 path_put+0x35/0x60 fs/namei.c:559 do_readlinkat+0x29a/0x3a0 fs/stat.c:457 __do_sys_readlink fs/stat.c:475 [inline] __se_sys_readlink fs/stat.c:472 [inline] __x64_sys_readlink+0x7b/0x90 fs/stat.c:472 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f9a9027ed47 Code: 73 01 c3 48 8b 0d e1 90 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 59 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d b1 90 0d 00 f7 d8 64 89 01 48 RSP: 002b:00007ffd05b0b0f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000059 RAX: ffffffffffffffda RBX: 00007ffd05b0b108 RCX: 00007f9a9027ed47 RDX: 0000000000000400 RSI: 00007ffd05b0b108 RDI: 00007ffd05b0b5e8 RBP: 0000000000000400 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000010 R11: 0000000000000246 R12: 00007ffd05b0b5e8 R13: 00007ffd05b0b558 R14: 000056129b414910 R15: 000056129a98ca04 BUG: scheduling while atomic: udevd/4843/0x00000002 no locks held by udevd/4843. Modules linked in: Preemption disabled at: [] is_module_text_address+0x16/0x140 kernel/module.c:4758