BUG: scheduling while atomic: udevd/100/0x00000002 Modules linked in: Preemption disabled at: [] is_module_text_address+0x1a/0x140 kernel/module.c:4811 CPU: 1 PID: 100 Comm: udevd Not tainted 5.15.148-syzkaller-00013-gad06eaf051cd #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106 dump_stack+0x15/0x17 lib/dump_stack.c:113 __schedule_bug+0x195/0x260 kernel/sched/core.c:5707 schedule_debug kernel/sched/core.c:5734 [inline] __schedule+0xd19/0x1590 kernel/sched/core.c:6402 schedule+0x11f/0x1e0 kernel/sched/core.c:6595 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6654 __mutex_lock_common kernel/locking/mutex.c:692 [inline] __mutex_lock+0x90e/0x1870 kernel/locking/mutex.c:755 __mutex_lock_slowpath+0xe/0x10 kernel/locking/mutex.c:1006 mutex_lock+0x135/0x1e0 kernel/locking/mutex.c:288 kobject_uevent_env+0x4c4/0x700 lib/kobject_uevent.c:586 kobject_synth_uevent+0x4eb/0xae0 lib/kobject_uevent.c:208 uevent_store+0x25/0x60 drivers/base/core.c:2420 dev_attr_store+0x5c/0x80 drivers/base/core.c:2121 sysfs_kf_write+0x123/0x140 fs/sysfs/file.c:139 kernfs_fop_write_iter+0x2c4/0x410 fs/kernfs/file.c:296 call_write_iter include/linux/fs.h:2202 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0xd5d/0x1110 fs/read_write.c:594 ksys_write+0x199/0x2c0 fs/read_write.c:647 __do_sys_write fs/read_write.c:659 [inline] __se_sys_write fs/read_write.c:656 [inline] __x64_sys_write+0x7b/0x90 fs/read_write.c:656 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:0x7fc2890b2bf2 Code: 89 c7 48 89 44 24 08 e8 7b 34 fa ff 48 8b 44 24 08 48 83 c4 28 c3 c3 64 8b 04 25 18 00 00 00 85 c0 75 20 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 6f 48 8b 15 07 a2 0d 00 f7 d8 64 89 02 48 83 RSP: 002b:00007fff1f6fd198 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00005652184d8850 RCX: 00007fc2890b2bf2 RDX: 0000000000000007 RSI: 00005652184e7d00 RDI: 000000000000000c RBP: 0000000000000007 R08: 00005652184e7d00 R09: 0000000000000040 R10: 000000000000010f R11: 0000000000000246 R12: 0000000000000007 R13: 00005652184e7d00 R14: 00007fff1f6fd578 R15: 0000000000000000