BUG: sleeping function called from invalid context at arch/x86/mm/fault.c:1351 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 11946, name: syz-executor.5 2 locks held by syz-executor.5/11946: #0: ffffffff850077e0 (rcu_read_lock){....}-{1:2}, at: bpf_test_run+0x89/0x520 net/bpf/test_run.c:38 #1: ffff88810c24f658 (&mm->mmap_lock#2){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:136 [inline] #1: ffff88810c24f658 (&mm->mmap_lock#2){++++}-{3:3}, at: do_user_addr_fault arch/x86/mm/fault.c:1334 [inline] #1: ffff88810c24f658 (&mm->mmap_lock#2){++++}-{3:3}, at: handle_page_fault arch/x86/mm/fault.c:1450 [inline] #1: ffff88810c24f658 (&mm->mmap_lock#2){++++}-{3:3}, at: exc_page_fault+0x137/0x730 arch/x86/mm/fault.c:1506 Preemption disabled at: [] migrate_disable+0x36/0xa0 kernel/sched/core.c:1753 CPU: 1 PID: 11946 Comm: syz-executor.5 Not tainted 5.11.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x77/0x97 lib/dump_stack.c:120 ___might_sleep.cold.124+0xf2/0x130 kernel/sched/core.c:7901 do_user_addr_fault arch/x86/mm/fault.c:1351 [inline] handle_page_fault arch/x86/mm/fault.c:1450 [inline] exc_page_fault+0x157/0x730 arch/x86/mm/fault.c:1506 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:580 RIP: 0010:bpf_prog_e48ebe87b99394c4+0x11/0x744 Code: cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc 0f 1f 44 00 00 66 90 55 48 89 e5 31 c0 48 8b 47 28 <48> 8b 40 00 8b 80 00 01 00 00 c9 c3 cc cc cc cc cc cc cc cc cc cc RSP: 0018:ffffc90000f83d08 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffc90000ee5038 RDX: ffffffffa00768bc RSI: ffffc90000ee5038 RDI: ffffc90000f83de0 RBP: ffffc90000f83d08 R08: 0000000000000001 R09: 0000000000000001 R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000028850 R13: 0000000000000001 R14: ffffc90000ee5000 R15: ffff88811f69d000 bpf_prog_run_xdp include/linux/filter.h:743 [inline] bpf_test_run+0x129/0x520 net/bpf/test_run.c:48 bpf_prog_test_run_xdp+0x126/0x1a0 net/bpf/test_run.c:649 bpf_prog_test_run kernel/bpf/syscall.c:3122 [inline] __do_sys_bpf+0x70b/0x2480 kernel/bpf/syscall.c:4400 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45e149 Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fae382a2c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045e149 RDX: 0000000000000028 RSI: 00000000200000c0 RDI: 000000000000000a RBP: 000000000119bfc0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119bf8c R13: 00007fff4536e81f R14: 00007fae382a39c0 R15: 000000000119bf8c BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 120137067 P4D 120137067 PUD 1200db067 PMD 0 Oops: 0000 [#1] PREEMPT SMP CPU: 1 PID: 11946 Comm: syz-executor.5 Tainted: G W 5.11.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:bpf_prog_e48ebe87b99394c4+0x11/0x744 Code: cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc 0f 1f 44 00 00 66 90 55 48 89 e5 31 c0 48 8b 47 28 <48> 8b 40 00 8b 80 00 01 00 00 c9 c3 cc cc cc cc cc cc cc cc cc cc RSP: 0018:ffffc90000f83d08 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffc90000ee5038 RDX: ffffffffa00768bc RSI: ffffc90000ee5038 RDI: ffffc90000f83de0 RBP: ffffc90000f83d08 R08: 0000000000000001 R09: 0000000000000001 R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000028850 R13: 0000000000000001 R14: ffffc90000ee5000 R15: ffff88811f69d000 FS: 00007fae382a3700(0000) GS:ffff88813bd00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7406569000 CR3: 00000001200e2000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bpf_prog_run_xdp include/linux/filter.h:743 [inline] bpf_test_run+0x129/0x520 net/bpf/test_run.c:48 bpf_prog_test_run_xdp+0x126/0x1a0 net/bpf/test_run.c:649 bpf_prog_test_run kernel/bpf/syscall.c:3122 [inline] __do_sys_bpf+0x70b/0x2480 kernel/bpf/syscall.c:4400 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45e149 Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fae382a2c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045e149 RDX: 0000000000000028 RSI: 00000000200000c0 RDI: 000000000000000a RBP: 000000000119bfc0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119bf8c R13: 00007fff4536e81f R14: 00007fae382a39c0 R15: 000000000119bf8c Modules linked in: CR2: 0000000000000000 ---[ end trace ac5aab17b85f6838 ]--- RIP: 0010:bpf_prog_e48ebe87b99394c4+0x11/0x744 Code: cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc 0f 1f 44 00 00 66 90 55 48 89 e5 31 c0 48 8b 47 28 <48> 8b 40 00 8b 80 00 01 00 00 c9 c3 cc cc cc cc cc cc cc cc cc cc RSP: 0018:ffffc90000f83d08 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffc90000ee5038 RDX: ffffffffa00768bc RSI: ffffc90000ee5038 RDI: ffffc90000f83de0 RBP: ffffc90000f83d08 R08: 0000000000000001 R09: 0000000000000001 R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000028850 R13: 0000000000000001 R14: ffffc90000ee5000 R15: ffff88811f69d000 FS: 00007fae382a3700(0000) GS:ffff88813bd00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffdcbfffedc CR3: 00000001200e2000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400