general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 PID: 6253 Comm: syz-executor.0 Not tainted 6.6.0-rc1-syzkaller-00377-ga5ea26536e89 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 RIP: 0010:bpf_prog_offload_verifier_prep+0xaa/0x170 kernel/bpf/offload.c:302 Code: 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 a1 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 65 10 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 0f 85 93 00 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b RSP: 0018:ffffc9000306f820 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffffc90000bd6000 RCX: ffffc90003b61000 RDX: 0000000000000000 RSI: ffffffff81aa82c6 RDI: ffff88807eadcb10 RBP: ffff88807eadcb00 R08: 0000000000000001 R09: fffffbfff199298d R10: ffffffff8cc94c6f R11: dffffc0000000000 R12: 0000000000000000 R13: ffffc90000bd6050 R14: ffff8880783b4000 R15: 0000000000000001 FS: 00007f0d931656c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2fe22000 CR3: 000000004511d000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bpf_check+0x4ee4/0xadf0 kernel/bpf/verifier.c:20215 bpf_prog_load+0x1531/0x2260 kernel/bpf/syscall.c:2712 __sys_bpf+0xbb6/0x4e90 kernel/bpf/syscall.c:5339 __do_sys_bpf kernel/bpf/syscall.c:5443 [inline] __se_sys_bpf kernel/bpf/syscall.c:5441 [inline] __x64_sys_bpf+0x78/0xc0 kernel/bpf/syscall.c:5441 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f0d9247cae9 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:00007f0d931650c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f0d9259bf80 RCX: 00007f0d9247cae9 RDX: 0000000000000090 RSI: 0000000020000280 RDI: 0000000000000005 RBP: 00007f0d924c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f0d9259bf80 R15: 00007ffdcdce3748 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:bpf_prog_offload_verifier_prep+0xaa/0x170 kernel/bpf/offload.c:302 Code: 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 a1 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 65 10 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 0f 85 93 00 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b RSP: 0018:ffffc9000306f820 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffffc90000bd6000 RCX: ffffc90003b61000 RDX: 0000000000000000 RSI: ffffffff81aa82c6 RDI: ffff88807eadcb10 RBP: ffff88807eadcb00 R08: 0000000000000001 R09: fffffbfff199298d R10: ffffffff8cc94c6f R11: dffffc0000000000 R12: 0000000000000000 R13: ffffc90000bd6050 R14: ffff8880783b4000 R15: 0000000000000001 FS: 00007f0d931656c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30422000 CR3: 000000004511d000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 3 bytes skipped: 0: df 48 89 fisttps -0x77(%rax) 3: fa cli 4: 48 c1 ea 03 shr $0x3,%rdx 8: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) c: 0f 85 a1 00 00 00 jne 0xb3 12: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 19: fc ff df 1c: 4c 8b 65 10 mov 0x10(%rbp),%r12 20: 4c 89 e2 mov %r12,%rdx 23: 48 c1 ea 03 shr $0x3,%rdx * 27: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2b: 0f 85 93 00 00 00 jne 0xc4 31: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 38: fc ff df 3b: 4d rex.WRB 3c: 8b .byte 0x8b