BUG: sleeping function called from invalid context at arch/x86/mm/fault.c:1253 in_atomic(): 0, irqs_disabled(): 1, non_block: 0, pid: 6816, name: syz-fuzzer 1 lock held by syz-fuzzer/6816: #0: ffff8880a1cccbe8 (&mm->mmap_lock#2){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:56 [inline] #0: ffff8880a1cccbe8 (&mm->mmap_lock#2){++++}-{3:3}, at: do_user_addr_fault+0x260/0xd00 arch/x86/mm/fault.c:1236 irq event stamp: 12260472 hardirqs last enabled at (12260471): [] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:168 [inline] hardirqs last enabled at (12260471): [] _raw_spin_unlock_irq+0x1f/0x80 kernel/locking/spinlock.c:199 hardirqs last disabled at (12260472): [] exit_to_usermode_loop arch/x86/entry/common.c:247 [inline] hardirqs last disabled at (12260472): [] __prepare_exit_to_usermode+0x121/0x1f0 arch/x86/entry/common.c:269 softirqs last enabled at (12260442): [] __do_softirq+0x748/0xa60 kernel/softirq.c:319 softirqs last disabled at (12260259): [] asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:711 CPU: 0 PID: 6816 Comm: syz-fuzzer Not tainted 5.8.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x18f/0x20d lib/dump_stack.c:118 ___might_sleep.cold+0x1ef/0x235 kernel/sched/core.c:6899 do_user_addr_fault+0x28d/0xd00 arch/x86/mm/fault.c:1253 handle_page_fault arch/x86/mm/fault.c:1365 [inline] exc_page_fault+0xab/0x170 arch/x86/mm/fault.c:1418 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:544 RIP: 0010:__prepare_exit_to_usermode+0x69/0x1f0 arch/x86/entry/common.c:272 Code: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <00> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 RSP: 0018:ffffc900015d7f28 EFLAGS: 00010046 RAX: 0000000000004000 RBX: ffff88808ddcc180 RCX: ffffffff81796911 RDX: ffff88808ddcc180 RSI: ffffffff81007f81 RDI: 0000000000000005 RBP: 0000000000004000 R08: 0000000000000001 R09: ffff88808ddcc187 R10: 0000000000000000 R11: 0000000000000000 R12: ffffc900015d7f58 R13: ffff88808ddcc180 R14: 0000000000000000 R15: 0000000000000000 prepare_exit_to_usermode+0x5/0x30 arch/x86/entry/common.c:300 asm_sysvec_reschedule_ipi+0x12/0x20 arch/x86/include/asm/idtentry.h:592 RIP: 0033:0x41fa09 Code: Bad RIP value. RSP: 002b:000000c000141ea8 EFLAGS: 00000206 RAX: 0000000000203003 RBX: 00007fd0b26502aa RCX: 0000000000000003 RDX: 0000000000000020 RSI: 0000000000000003 RDI: 000000000000000a RBP: 000000c000141f28 R08: 00007fd0b27a8fff R09: 000000c00d4e5540 R10: 000000c00002fe98 R11: 0000000000000018 R12: 0000000000000054 R13: 0000000000000001 R14: 000000c0000601e0 R15: 0000000000000200 BUG: unable to handle page fault for address: 0000000000004000 #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page PGD 959d3067 P4D 959d3067 PUD 8cfc2067 PMD 0 Oops: 0002 [#1] PREEMPT SMP KASAN CPU: 0 PID: 6816 Comm: syz-fuzzer Tainted: G W 5.8.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__prepare_exit_to_usermode+0x69/0x1f0 arch/x86/entry/common.c:272 Code: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <00> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 RSP: 0018:ffffc900015d7f28 EFLAGS: 00010046 RAX: 0000000000004000 RBX: ffff88808ddcc180 RCX: ffffffff81796911 RDX: ffff88808ddcc180 RSI: ffffffff81007f81 RDI: 0000000000000005 RBP: 0000000000004000 R08: 0000000000000001 R09: ffff88808ddcc187 R10: 0000000000000000 R11: 0000000000000000 R12: ffffc900015d7f58 R13: ffff88808ddcc180 R14: 0000000000000000 R15: 0000000000000000 FS: 000000c0000a6090(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000004000 CR3: 000000009e334000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: prepare_exit_to_usermode+0x5/0x30 arch/x86/entry/common.c:300 asm_sysvec_reschedule_ipi+0x12/0x20 arch/x86/include/asm/idtentry.h:592 RIP: 0033:0x41fa09 Code: Bad RIP value. RSP: 002b:000000c000141ea8 EFLAGS: 00000206 RAX: 0000000000203003 RBX: 00007fd0b26502aa RCX: 0000000000000003 RDX: 0000000000000020 RSI: 0000000000000003 RDI: 000000000000000a RBP: 000000c000141f28 R08: 00007fd0b27a8fff R09: 000000c00d4e5540 R10: 000000c00002fe98 R11: 0000000000000018 R12: 0000000000000054 R13: 0000000000000001 R14: 000000c0000601e0 R15: 0000000000000200 Modules linked in: CR2: 0000000000004000 ---[ end trace 57615ceefe28b18d ]--- RIP: 0010:__prepare_exit_to_usermode+0x69/0x1f0 arch/x86/entry/common.c:272 Code: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <00> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 RSP: 0018:ffffc900015d7f28 EFLAGS: 00010046 RAX: 0000000000004000 RBX: ffff88808ddcc180 RCX: ffffffff81796911 RDX: ffff88808ddcc180 RSI: ffffffff81007f81 RDI: 0000000000000005 RBP: 0000000000004000 R08: 0000000000000001 R09: ffff88808ddcc187 R10: 0000000000000000 R11: 0000000000000000 R12: ffffc900015d7f58 R13: ffff88808ddcc180 R14: 0000000000000000 R15: 0000000000000000 FS: 000000c0000a6090(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000004000 CR3: 000000009e334000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600