BUG: kernel NULL pointer dereference, address: 0000000000000032 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 800000011d4dd067 P4D 800000011d4dd067 PUD 11d47f067 PMD 0 Oops: 0000 [#1] PREEMPT SMP PTI CPU: 1 PID: 2798 Comm: syz-executor.0 Not tainted 6.8.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 RIP: 0010:do_misc_fixups kernel/bpf/verifier.c:19586 [inline] RIP: 0010:bpf_check+0x25e0/0x4c90 kernel/bpf/verifier.c:21268 Code: 75 42 41 8b 4e 04 85 c9 74 3a 66 41 83 7e 02 01 75 05 83 f9 01 74 1d 48 8b 44 24 18 48 8b 00 48 8b 40 38 48 8b 80 08 01 00 00 40 32 04 0f 84 66 02 00 00 41 c6 06 bc 66 41 c7 46 02 00 00 e9 RSP: 0018:ffffc900017a3b40 EFLAGS: 00010216 RAX: 0000000000000000 RBX: 0000000000000005 RCX: 0000000000010000 RDX: 0000000000000038 RSI: 0000000000000005 RDI: 0000000000000070 RBP: ffffc900017a3d30 R08: 0000000000000000 R09: ffffc90000139000 R10: 000000000000000b R11: 0000000000000000 R12: 0000000000000004 R13: ffff8881158d8aa0 R14: ffffc90000139070 R15: 0000000000000001 FS: 00007f4f359346c0(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000032 CR3: 000000011262c000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bpf_prog_load+0x647/0x6f0 kernel/bpf/syscall.c:2895 __sys_bpf+0x351/0x5a0 kernel/bpf/syscall.c:5631 __do_sys_bpf kernel/bpf/syscall.c:5738 [inline] __se_sys_bpf kernel/bpf/syscall.c:5736 [inline] __x64_sys_bpf+0x17/0x20 kernel/bpf/syscall.c:5736 do_syscall_64+0x94/0x1a0 entry_SYSCALL_64_after_hwframe+0x6f/0x77 RIP: 0033:0x7f4f35db2da9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 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 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f4f359340c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f4f35ee0f80 RCX: 00007f4f35db2da9 RDX: 0000000000000090 RSI: 00000000200000c0 RDI: 0000000000000005 RBP: 00007f4f35dff47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4f35ee0f80 R15: 00007ffd83ef8178 Modules linked in: CR2: 0000000000000032 ---[ end trace 0000000000000000 ]--- RIP: 0010:do_misc_fixups kernel/bpf/verifier.c:19586 [inline] RIP: 0010:bpf_check+0x25e0/0x4c90 kernel/bpf/verifier.c:21268 Code: 75 42 41 8b 4e 04 85 c9 74 3a 66 41 83 7e 02 01 75 05 83 f9 01 74 1d 48 8b 44 24 18 48 8b 00 48 8b 40 38 48 8b 80 08 01 00 00 40 32 04 0f 84 66 02 00 00 41 c6 06 bc 66 41 c7 46 02 00 00 e9 RSP: 0018:ffffc900017a3b40 EFLAGS: 00010216 RAX: 0000000000000000 RBX: 0000000000000005 RCX: 0000000000010000 RDX: 0000000000000038 RSI: 0000000000000005 RDI: 0000000000000070 RBP: ffffc900017a3d30 R08: 0000000000000000 R09: ffffc90000139000 R10: 000000000000000b R11: 0000000000000000 R12: 0000000000000004 R13: ffff8881158d8aa0 R14: ffffc90000139070 R15: 0000000000000001 FS: 00007f4f359346c0(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000032 CR3: 000000011262c000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 75 42 jne 0x44 2: 41 8b 4e 04 mov 0x4(%r14),%ecx 6: 85 c9 test %ecx,%ecx 8: 74 3a je 0x44 a: 66 41 83 7e 02 01 cmpw $0x1,0x2(%r14) 10: 75 05 jne 0x17 12: 83 f9 01 cmp $0x1,%ecx 15: 74 1d je 0x34 17: 48 8b 44 24 18 mov 0x18(%rsp),%rax 1c: 48 8b 00 mov (%rax),%rax 1f: 48 8b 40 38 mov 0x38(%rax),%rax 23: 48 8b 80 08 01 00 00 mov 0x108(%rax),%rax * 2a: f6 40 32 04 testb $0x4,0x32(%rax) <-- trapping instruction 2e: 0f 84 66 02 00 00 je 0x29a 34: 41 c6 06 bc movb $0xbc,(%r14) 38: 66 41 c7 46 02 00 00 movw $0x0,0x2(%r14) 3f: e9 .byte 0xe9