BUG: sleeping function called from invalid context at include/linux/pagemap.h:624 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 11873, name: syz-executor.0 INFO: lockdep is turned off. Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 PID: 11873 Comm: syz-executor.0 Tainted: G W 5.13.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:105 ___might_sleep.cold+0x1f1/0x237 kernel/sched/core.c:9154 lock_page include/linux/pagemap.h:624 [inline] __munlock_pagevec+0xa22/0x2340 mm/mlock.c:314 munlock_vma_pages_range+0x9d7/0xf00 mm/mlock.c:475 munlock_vma_pages_all mm/internal.h:354 [inline] unlock_range mm/mmap.c:2811 [inline] exit_mmap+0x47a/0x620 mm/mmap.c:3188 __mmput+0x122/0x470 kernel/fork.c:1101 mmput+0x58/0x60 kernel/fork.c:1122 exit_mm kernel/exit.c:501 [inline] do_exit+0xae2/0x2a60 kernel/exit.c:812 do_group_exit+0x125/0x310 kernel/exit.c:922 get_signal+0x47f/0x2160 kernel/signal.c:2808 arch_do_signal_or_restart+0x2a9/0x1c40 arch/x86/kernel/signal.c:865 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop kernel/entry/common.c:172 [inline] exit_to_user_mode_prepare+0x17d/0x290 kernel/entry/common.c:209 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:302 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4196c4 Code: Unable to access opcode bytes at RIP 0x41969a. RSP: 002b:00007f37e7f4f060 EFLAGS: 00000293 ORIG_RAX: 0000000000000101 RAX: fffffffffffffffe RBX: 000000000056bf80 RCX: 00000000004196c4 RDX: 0000000000000000 RSI: 00007f37e7f4f0f0 RDI: 00000000ffffff9c RBP: 00007f37e7f4f0f0 R08: 0000000000000000 R09: 00007f37e7f4ef70 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000 R13: 00007ffc4883d2cf R14: 00007f37e7f4f300 R15: 0000000000022000 BUG: scheduling while atomic: syz-executor.0/11873/0x00000002 INFO: lockdep is turned off. Modules linked in: Preemption disabled at: [<0000000000000000>] 0x0