BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD a0c1d067 P4D a0c1d067 PUD a60c4067 PMD 0 Oops: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 10982 Comm: syz-executor.2 Not tainted 5.7.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:bpf_prog_e48ebe87b99394c4+0x1f/0x42c Code: cc cc cc cc cc cc cc cc cc cc cc 0f 1f 44 00 00 55 48 89 e5 48 81 ec 00 00 00 00 53 41 55 41 56 41 57 6a 00 31 c0 48 8b 47 28 <48> 8b 40 00 8b 80 00 01 00 00 5b 41 5f 41 5e 41 5d 5b c9 c3 cc cc RSP: 0018:ffffc9000a45f968 EFLAGS: 00010246 RAX: 0000000000000000 RBX: dffffc0000000000 RCX: 0000000000032950 RDX: ffffffffa0054bd4 RSI: ffffc90000eec038 RDI: ffffc9000a45fb78 RBP: ffffc9000a45f990 R08: fffffbfff17308f9 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: ffffc90000eec000 R14: ffff8880b42e6000 R15: ffffc9000a45faf8 FS: 00007f5b2f1bd700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 00000000a7e87000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bpf_prog_run_xdp include/linux/filter.h:734 [inline] bpf_test_run+0x213/0xae0 net/bpf/test_run.c:47 bpf_prog_test_run_xdp+0x2fa/0x4f0 net/bpf/test_run.c:507 bpf_prog_test_run kernel/bpf/syscall.c:2994 [inline] __do_sys_bpf+0xd6a/0x3b30 kernel/bpf/syscall.c:4131 do_syscall_64+0x8e/0x4e0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 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:00007f5b2f1bcc68 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: 00007fffc83c3c5f R14: 00007f5b2f1bd9c0 R15: 000000000119bf8c Modules linked in: CR2: 0000000000000000 ---[ end trace bab98122a49e2858 ]--- RIP: 0010:bpf_prog_e48ebe87b99394c4+0x1f/0x42c Code: cc cc cc cc cc cc cc cc cc cc cc 0f 1f 44 00 00 55 48 89 e5 48 81 ec 00 00 00 00 53 41 55 41 56 41 57 6a 00 31 c0 48 8b 47 28 <48> 8b 40 00 8b 80 00 01 00 00 5b 41 5f 41 5e 41 5d 5b c9 c3 cc cc RSP: 0018:ffffc9000a45f968 EFLAGS: 00010246 RAX: 0000000000000000 RBX: dffffc0000000000 RCX: 0000000000032950 RDX: ffffffffa0054bd4 RSI: ffffc90000eec038 RDI: ffffc9000a45fb78 RBP: ffffc9000a45f990 R08: fffffbfff17308f9 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: ffffc90000eec000 R14: ffff8880b42e6000 R15: ffffc9000a45faf8 FS: 00007f5b2f1bd700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 00000000a7e87000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400