Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 PID: 5094 Comm: syz-executor307 Not tainted 6.9.0-syzkaller-12126-gfb66df20a720 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:____bpf_get_attach_cookie_tracing kernel/trace/bpf_trace.c:1179 [inline]
RIP: 0010:bpf_get_attach_cookie_tracing+0x46/0x60 kernel/trace/bpf_trace.c:1174
Code: d5 03 00 48 81 c3 00 18 00 00 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 24 82 5a 00 48 8b 1b 48 89 d8 48 c1 e8 03 <42> 80 3c 30 00 74 08 48 89 df e8 0b 82 5a 00 48 8b 03 5b 41 5e c3
RSP: 0018:ffffc9000358fba8 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff8880227b0000
RDX: 0000000000000000 RSI: ffffc90000ace048 RDI: 0000000000000000
RBP: ffffc9000358fbc0 R08: ffffffff8997ee77 R09: 1ffffffff25f4ab0
R10: dffffc0000000000 R11: ffffffffa0000950 R12: ffffc9000358fc80
R13: dffffc0000000000 R14: dffffc0000000000 R15: 0000000000000000
FS: 0000555575749380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000142 CR3: 00000000757ae000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
bpf_prog_fe13437f26555f61+0x1a/0x1c
bpf_dispatcher_nop_func include/linux/bpf.h:1243 [inline]
__bpf_prog_run include/linux/filter.h:691 [inline]
bpf_prog_run include/linux/filter.h:698 [inline]
__bpf_prog_test_run_raw_tp+0x149/0x310 net/bpf/test_run.c:732
bpf_prog_test_run_raw_tp+0x47b/0x6a0 net/bpf/test_run.c:772
bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4291
__sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5705
__do_sys_bpf kernel/bpf/syscall.c:5794 [inline]
__se_sys_bpf kernel/bpf/syscall.c:5792 [inline]
__x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5792
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fbe2bd9f4a9
Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 00 00 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff622db708 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007fff622db8d8 RCX: 00007fbe2bd9f4a9
RDX: 000000000000000c RSI: 0000000020000080 RDI: 000000000000000a
RBP: 00007fbe2be12610 R08: 0000000000000000 R09: 00007fff622db8d8
R10: 00007fbe2bddab23 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fff622db8c8 R14: 0000000000000001 R15: 0000000000000001
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:____bpf_get_attach_cookie_tracing kernel/trace/bpf_trace.c:1179 [inline]
RIP: 0010:bpf_get_attach_cookie_tracing+0x46/0x60 kernel/trace/bpf_trace.c:1174
Code: d5 03 00 48 81 c3 00 18 00 00 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 24 82 5a 00 48 8b 1b 48 89 d8 48 c1 e8 03 <42> 80 3c 30 00 74 08 48 89 df e8 0b 82 5a 00 48 8b 03 5b 41 5e c3
RSP: 0018:ffffc9000358fba8 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff8880227b0000
RDX: 0000000000000000 RSI: ffffc90000ace048 RDI: 0000000000000000
RBP: ffffc9000358fbc0 R08: ffffffff8997ee77 R09: 1ffffffff25f4ab0
R10: dffffc0000000000 R11: ffffffffa0000950 R12: ffffc9000358fc80
R13: dffffc0000000000 R14: dffffc0000000000 R15: 0000000000000000
FS: 0000555575749380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000142 CR3: 00000000757ae000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 1 bytes skipped:
0: 03 00 add (%rax),%eax
2: 48 81 c3 00 18 00 00 add $0x1800,%rbx
9: 48 89 d8 mov %rbx,%rax
c: 48 c1 e8 03 shr $0x3,%rax
10: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1)
15: 74 08 je 0x1f
17: 48 89 df mov %rbx,%rdi
1a: e8 24 82 5a 00 call 0x5a8243
1f: 48 8b 1b mov (%rbx),%rbx
22: 48 89 d8 mov %rbx,%rax
25: 48 c1 e8 03 shr $0x3,%rax
* 29: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1) <-- trapping instruction
2e: 74 08 je 0x38
30: 48 89 df mov %rbx,%rdi
33: e8 0b 82 5a 00 call 0x5a8243
38: 48 8b 03 mov (%rbx),%rax
3b: 5b pop %rbx
3c: 41 5e pop %r14
3e: c3 ret