BUG: scheduling while atomic: syz-executor.3/28684/0x00000002 Modules linked in: Preemption disabled at: [] spin_lock include/linux/spinlock.h:363 [inline] [] task_lock include/linux/sched/task.h:196 [inline] [] exit_files+0x59/0xa0 fs/file.c:461 CPU: 1 PID: 28684 Comm: syz-executor.3 Tainted: G W 5.15.149-syzkaller-00490-g5d96939590c0 #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 do_task_dead+0x99/0xa0 kernel/sched/core.c:6530 do_exit+0x2089/0x2ca0 kernel/exit.c:929 do_group_exit+0x141/0x310 kernel/exit.c:1000 get_signal+0x7a3/0x1630 kernel/signal.c:2896 arch_do_signal_or_restart+0xbd/0x1680 arch/x86/kernel/signal.c:867 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop+0xa0/0xe0 kernel/entry/common.c:172 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:0x7f711c9beea9 Code: Unable to access opcode bytes at RIP 0x7f711c9bee7f. RSP: 002b:00007f711b732178 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: 0000000000000001 RBX: 00007f711caecf88 RCX: 00007f711c9beea9 RDX: 00000000000f4240 RSI: 0000000000000081 RDI: 00007f711caecf8c RBP: 00007f711caecf80 R08: 00007ffd413ad0b0 R09: 00007f711b7326c0 R10: ffffffffffffffff R11: 0000000000000246 R12: 00007f711caecf8c R13: 000000000000000b R14: 00007ffd41261fe0 R15: 00007ffd412620c8