BUG: scheduling while atomic: syz-executor351/320/0x00000002 Modules linked in: Preemption disabled at: [] rwsem_write_trylock+0x93/0x290 kernel/locking/rwsem.c:264 CPU: 0 PID: 320 Comm: syz-executor351 Not tainted 6.1.75-syzkaller-00120-gebcdb9dc211f #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/0x1b lib/dump_stack.c:113 __schedule_bug+0x195/0x260 kernel/sched/core.c:5960 schedule_debug kernel/sched/core.c:5987 [inline] __schedule+0xcf7/0x1550 kernel/sched/core.c:6622 schedule+0xc3/0x180 kernel/sched/core.c:6805 rwsem_down_write_slowpath+0xddf/0x20a0 kernel/locking/rwsem.c:1227 __down_write_common kernel/locking/rwsem.c:1357 [inline] __down_write kernel/locking/rwsem.c:1366 [inline] down_write+0x21/0x30 kernel/locking/rwsem.c:1619 lock_anon_vma_root mm/rmap.c:253 [inline] unlink_anon_vmas+0xf0/0x5b0 mm/rmap.c:410 free_pgtables+0x4af/0x660 mm/memory.c:441 exit_mmap+0x415/0x940 mm/mmap.c:3341 __mmput+0x95/0x310 kernel/fork.c:1298 mmput+0x56/0x170 kernel/fork.c:1321 exit_mm kernel/exit.c:566 [inline] do_exit+0xb29/0x2b80 kernel/exit.c:862 do_group_exit+0x21a/0x2d0 kernel/exit.c:1025 __do_sys_exit_group kernel/exit.c:1036 [inline] __se_sys_exit_group kernel/exit.c:1034 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1034 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f9e8eeac039 Code: Unable to access opcode bytes at 0x7f9e8eeac00f. RSP: 002b:00007ffe0d2754b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f9e8eeac039 RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000 RBP: 00007f9e8ef282b0 R08: ffffffffffffffb8 R09: 00000000000000a0 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f9e8ef282b0 R13: 0000000000000000 R14: 00007f9e8ef28d20 R15: 00007f9e8ee7d1d0