general protection fault, probably for non-canonical address 0xdffffc0000000009: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000048-0x000000000000004f] CPU: 0 PID: 18614 Comm: syz-executor.0 Not tainted 5.8.0-rc4-next-20200710-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__btf_resolve_helper_id+0x149/0xb10 kernel/bpf/btf.c:4102 Code: 80 3c 03 00 0f 85 dd 08 00 00 48 8b 05 50 ea 0a 0b 48 8d 78 48 48 89 04 24 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 50 09 00 00 48 8b 04 24 31 ff RSP: 0018:ffffc90004c07378 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 1ffffffff1927258 RCX: ffffc900019f9000 RDX: 0000000000000009 RSI: ffffffff8188a851 RDI: 0000000000000048 RBP: ffffffff818b8f70 R08: ffffc90004c073e4 R09: ffffc90004c07670 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: ffff888042314260 R15: ffff888042314000 FS: 00007f8ff8d59700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000009563d000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btf_resolve_helper_id+0x10c/0x1c0 kernel/bpf/btf.c:4164 check_helper_call+0x1641/0x5650 kernel/bpf/verifier.c:4721 do_check kernel/bpf/verifier.c:8938 [inline] do_check_common+0x7253/0xc2d0 kernel/bpf/verifier.c:10574 do_check_main kernel/bpf/verifier.c:10640 [inline] bpf_check+0x857f/0xce51 kernel/bpf/verifier.c:11093 bpf_prog_load+0xdaf/0x1b60 kernel/bpf/syscall.c:2195 __do_sys_bpf+0x1edf/0x4b10 kernel/bpf/syscall.c:4120 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:384 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45cba9 Code: Bad RIP value. RSP: 002b:00007f8ff8d58c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00000000004db900 RCX: 000000000045cba9 RDX: 0000000000000048 RSI: 0000000020000780 RDI: 0000000000000005 RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000070 R14: 00000000004c34d0 R15: 00007f8ff8d596d4 Modules linked in: ---[ end trace 463b4c728f5da46d ]--- RIP: 0010:__btf_resolve_helper_id+0x149/0xb10 kernel/bpf/btf.c:4102 Code: 80 3c 03 00 0f 85 dd 08 00 00 48 8b 05 50 ea 0a 0b 48 8d 78 48 48 89 04 24 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 50 09 00 00 48 8b 04 24 31 ff RSP: 0018:ffffc90004c07378 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 1ffffffff1927258 RCX: ffffc900019f9000 RDX: 0000000000000009 RSI: ffffffff8188a851 RDI: 0000000000000048 RBP: ffffffff818b8f70 R08: ffffc90004c073e4 R09: ffffc90004c07670 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: ffff888042314260 R15: ffff888042314000 FS: 00007f8ff8d59700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000009563d000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400