BUG: scheduling while atomic: syz-executor.0/821/0x00000002 Modules linked in: Preemption disabled at: [] __up_read kernel/locking/rwsem.c:1400 [inline] [] up_read+0x16/0x170 kernel/locking/rwsem.c:1671 CPU: 1 PID: 821 Comm: syz-executor.0 Not tainted 6.1.78-syzkaller-00164-gac9706483e98 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106 dump_stack+0x15/0x1b lib/dump_stack.c:113 __schedule_bug+0x195/0x260 kernel/sched/core.c:5975 schedule_debug kernel/sched/core.c:6002 [inline] __schedule+0xcf7/0x1550 kernel/sched/core.c:6637 schedule+0xc3/0x180 kernel/sched/core.c:6820 exit_to_user_mode_loop+0x4e/0xa0 kernel/entry/common.c:159 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:297 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f1a1887c9c1 Code: 44 24 18 31 c0 41 83 e2 40 75 3e 89 f0 25 00 00 41 00 3d 00 00 41 00 74 30 89 f2 b8 01 01 00 00 48 89 fe bf 9c ff ff ff 0f 05 <48> 3d 00 f0 ff ff 77 3f 48 8b 54 24 18 64 48 2b 14 25 28 00 00 00 RSP: 002b:00007ffc262807b0 EFLAGS: 00000287 ORIG_RAX: 0000000000000101 RAX: 0000000000000003 RBX: 00007f1a188d9636 RCX: 00007f1a1887c9c1 RDX: 0000000000090800 RSI: 00007ffc26281980 RDI: 00000000ffffff9c RBP: 00007ffc2628195c R08: 00007ffc262c2080 R09: 00007ffc262c20b0 R10: 0000000000000000 R11: 0000000000000287 R12: 00007ffc26281980 R13: 00007f1a188d9636 R14: 000000000000d21b R15: 0000000000000018