BUG: sleeping function called from invalid context at mm/mmap.c:3198 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 9222, name: syz-executor.4 no locks held by syz-executor.4/9222. Preemption disabled at: [] is_module_text_address+0x16/0x140 kernel/module.c:4758 CPU: 0 PID: 9222 Comm: syz-executor.4 Not tainted 5.15.148-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 ___might_sleep+0x547/0x6a0 kernel/sched/core.c:9626 exit_mmap+0x569/0x670 mm/mmap.c:3198 __mmput+0x112/0x3b0 kernel/fork.c:1126 exit_mm+0x688/0x7f0 kernel/exit.c:548 do_exit+0x626/0x2480 kernel/exit.c:859 do_group_exit+0x144/0x310 kernel/exit.c:994 get_signal+0xc66/0x14e0 kernel/signal.c:2889 arch_do_signal_or_restart+0xc3/0x1890 arch/x86/kernel/signal.c:867 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop+0x97/0x130 kernel/entry/common.c:172 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x5d/0x250 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:0x7f7a3e1f3da9 Code: Unable to access opcode bytes at RIP 0x7f7a3e1f3d7f. RSP: 002b:00007f7a3d574178 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: 0000000000000001 RBX: 00007f7a3e321f88 RCX: 00007f7a3e1f3da9 RDX: 00000000000f4240 RSI: 0000000000000081 RDI: 00007f7a3e321f8c RBP: 00007f7a3e321f80 R08: 0000000000000010 R09: 00007f7a3d5746c0 R10: 0000000000000007 R11: 0000000000000246 R12: 00007f7a3e321f8c R13: 000000000000000b R14: 00007ffd0c7fd680 R15: 00007ffd0c7fd768 BUG: scheduling while atomic: syz-executor.4/9222/0x00000002 no locks held by syz-executor.4/9222. Modules linked in: Preemption disabled at: [] is_module_text_address+0x16/0x140 kernel/module.c:4758