BUG: scheduling while atomic: syz-executor.2/426/0x00000002 Modules linked in: Preemption disabled at: [] spin_lock include/linux/spinlock.h:363 [inline] [] set_fs_pwd+0x88/0x1a0 fs/fs_struct.c:39 CPU: 0 PID: 426 Comm: syz-executor.2 Not tainted 5.15.146-syzkaller-1068924-g1e6a2d06e944 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 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+0xd0b/0x1580 kernel/sched/core.c:6402 schedule+0x11f/0x1e0 kernel/sched/core.c:6595 exit_to_user_mode_loop+0x4d/0xe0 kernel/entry/common.c:163 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x26/0x160 kernel/entry/common.c:301 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f6a9417808d Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 18 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 9d 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 1b 48 8b 54 24 18 64 48 2b 14 25 28 00 00 00 RSP: 002b:00007ffe174a9310 EFLAGS: 00000246 ORIG_RAX: 000000000000009d RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f6a9417808d RDX: 0000000000000000 RSI: 0000000000000009 RDI: 0000000000000001 RBP: 0000000000000001 R08: 0000000000000000 R09: 00007f6a94dc5320 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000000