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: 5845 Comm: syz-executor591 Not tainted 5.14.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:btf_type_vlen include/linux/btf.h:183 [inline] RIP: 0010:btf_tag_resolve+0x65c/0x990 kernel/bpf/btf.c:3898 Code: df 48 89 d9 48 c1 e9 03 80 3c 01 00 0f 85 35 03 00 00 48 8b 1b 48 8d 7b 04 48 b8 00 00 00 00 00 fc ff df 48 89 f9 48 c1 e9 03 <0f> b6 0c 01 48 89 f8 83 e0 07 83 c0 03 38 c8 7c 08 84 c9 0f 85 92 RSP: 0018:ffffc9000169fa48 EFLAGS: 00010247 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000004 RSI: ffff8880175210c0 RDI: 0000000000000004 RBP: ffff888016dc3c00 R08: 0000000000000000 R09: 0000000000000001 R10: fffffbfff1689388 R11: dffffc0000000000 R12: ffff88802087e000 R13: ffff88802087e010 R14: 0000000000000008 R15: 0000000000000000 FS: 0000555556a0f300(0000) GS:ffff8880b9e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000000 CR3: 000000001c433000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btf_resolve+0x223/0xf40 kernel/bpf/btf.c:4185 btf_check_all_types kernel/bpf/btf.c:4226 [inline] btf_parse_type_sec kernel/bpf/btf.c:4267 [inline] btf_parse kernel/bpf/btf.c:4501 [inline] btf_new_fd+0x1364/0x2040 kernel/bpf/btf.c:5982 bpf_btf_load kernel/bpf/syscall.c:3993 [inline] __sys_bpf+0x2c1/0x44a0 kernel/bpf/syscall.c:4632 __do_sys_bpf kernel/bpf/syscall.c:4691 [inline] __se_sys_bpf kernel/bpf/syscall.c:4689 [inline] __x64_sys_bpf+0x70/0xb0 kernel/bpf/syscall.c:4689 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f76e5cd2bc9 Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffc99bcd7b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f76e5cd2bc9 RDX: 0000000000000020 RSI: 0000000020000000 RDI: 0000000000000012 RBP: 00007f76e5c96d70 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007f76e5c96e00 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 8e1a3c36005d1b92 ]--- RIP: 0010:btf_type_vlen include/linux/btf.h:183 [inline] RIP: 0010:btf_tag_resolve+0x65c/0x990 kernel/bpf/btf.c:3898 Code: df 48 89 d9 48 c1 e9 03 80 3c 01 00 0f 85 35 03 00 00 48 8b 1b 48 8d 7b 04 48 b8 00 00 00 00 00 fc ff df 48 89 f9 48 c1 e9 03 <0f> b6 0c 01 48 89 f8 83 e0 07 83 c0 03 38 c8 7c 08 84 c9 0f 85 92 RSP: 0018:ffffc9000169fa48 EFLAGS: 00010247 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000004 RSI: ffff8880175210c0 RDI: 0000000000000004 RBP: ffff888016dc3c00 R08: 0000000000000000 R09: 0000000000000001 R10: fffffbfff1689388 R11: dffffc0000000000 R12: ffff88802087e000 R13: ffff88802087e010 R14: 0000000000000008 R15: 0000000000000000 FS: 0000555556a0f300(0000) GS:ffff8880b9e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055684eb26038 CR3: 000000001c433000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: df 48 89 fisttps -0x77(%rax) 3: d9 48 c1 (bad) -0x3f(%rax) 6: e9 03 80 3c 01 jmpq 0x13c800e b: 00 0f add %cl,(%rdi) d: 85 35 03 00 00 48 test %esi,0x48000003(%rip) # 0x48000016 13: 8b 1b mov (%rbx),%ebx 15: 48 8d 7b 04 lea 0x4(%rbx),%rdi 19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 20: fc ff df 23: 48 89 f9 mov %rdi,%rcx 26: 48 c1 e9 03 shr $0x3,%rcx * 2a: 0f b6 0c 01 movzbl (%rcx,%rax,1),%ecx <-- trapping instruction 2e: 48 89 f8 mov %rdi,%rax 31: 83 e0 07 and $0x7,%eax 34: 83 c0 03 add $0x3,%eax 37: 38 c8 cmp %cl,%al 39: 7c 08 jl 0x43 3b: 84 c9 test %cl,%cl 3d: 0f .byte 0xf 3e: 85 .byte 0x85 3f: 92 xchg %eax,%edx