general protection fault, probably for non-canonical address 0xdffffc0000000024: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000120-0x0000000000000127] CPU: 1 PID: 6422 Comm: syz-executor.2 Not tainted 5.15.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:cgroup_ancestor include/linux/cgroup.h:593 [inline] RIP: 0010:__bpf_sk_ancestor_cgroup_id net/core/filter.c:4494 [inline] RIP: 0010:____bpf_skb_ancestor_cgroup_id net/core/filter.c:4504 [inline] RIP: 0010:bpf_skb_ancestor_cgroup_id+0x136/0x2c0 net/core/filter.c:4501 Code: 00 00 4c 89 e0 48 c1 e8 03 42 80 3c 28 00 74 08 4c 89 e7 e8 5c fb ba f9 49 8b 1c 24 48 8d bb 20 01 00 00 48 89 f8 48 c1 e8 03 <42> 8a 04 28 84 c0 0f 85 3b 01 00 00 8b ab 20 01 00 00 89 ef 44 89 RSP: 0018:ffffc9000b717350 EFLAGS: 00010206 RAX: 0000000000000024 RBX: 0000000000000000 RCX: 0000000000000007 RDX: ffff888034eb0000 RSI: 0000000000000080 RDI: 0000000000000120 RBP: ffffc9000b717510 R08: ffffffff8812d45b R09: ffffed10173a64a2 R10: ffffed10173a64a2 R11: 0000000000000000 R12: ffff888019f39458 R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000007 FS: 00007fc4fe0a8700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2d222000 CR3: 0000000034e46000 CR4: 00000000001506e0 Call Trace: bpf_prog_ad2c592359f22bcf+0x54/0xc44 bpf_dispatcher_nop_func include/linux/bpf.h:717 [inline] __bpf_prog_run include/linux/filter.h:624 [inline] bpf_prog_run include/linux/filter.h:631 [inline] bpf_test_run+0x44a/0x960 net/bpf/test_run.c:119 bpf_prog_test_run_skb+0xac1/0x1f10 net/bpf/test_run.c:657 bpf_prog_test_run kernel/bpf/syscall.c:3307 [inline] __sys_bpf+0x55ed/0x12c70 kernel/bpf/syscall.c:4605 __do_sys_bpf kernel/bpf/syscall.c:4691 [inline] __se_sys_bpf kernel/bpf/syscall.c:4689 [inline] __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:4689 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7fc500b31709 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc4fe0a8188 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007fc500c35f60 RCX: 00007fc500b31709 RDX: 0000000000000040 RSI: 0000000020000280 RDI: 000000000000000a RBP: 00007fc500b8bcb4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffd66c14ef R14: 00007fc4fe0a8300 R15: 0000000000022000 Modules linked in: ---[ end trace f7a2b27687522ec2 ]--- RIP: 0010:cgroup_ancestor include/linux/cgroup.h:593 [inline] RIP: 0010:__bpf_sk_ancestor_cgroup_id net/core/filter.c:4494 [inline] RIP: 0010:____bpf_skb_ancestor_cgroup_id net/core/filter.c:4504 [inline] RIP: 0010:bpf_skb_ancestor_cgroup_id+0x136/0x2c0 net/core/filter.c:4501 Code: 00 00 4c 89 e0 48 c1 e8 03 42 80 3c 28 00 74 08 4c 89 e7 e8 5c fb ba f9 49 8b 1c 24 48 8d bb 20 01 00 00 48 89 f8 48 c1 e8 03 <42> 8a 04 28 84 c0 0f 85 3b 01 00 00 8b ab 20 01 00 00 89 ef 44 89 RSP: 0018:ffffc9000b717350 EFLAGS: 00010206 RAX: 0000000000000024 RBX: 0000000000000000 RCX: 0000000000000007 RDX: ffff888034eb0000 RSI: 0000000000000080 RDI: 0000000000000120 RBP: ffffc9000b717510 R08: ffffffff8812d45b R09: ffffed10173a64a2 R10: ffffed10173a64a2 R11: 0000000000000000 R12: ffff888019f39458 R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000007 FS: 00007fc4fe0a8700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fae9f9d4058 CR3: 0000000034e46000 CR4: 00000000001506e0 ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 4c 89 e0 mov %r12,%rax 5: 48 c1 e8 03 shr $0x3,%rax 9: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) e: 74 08 je 0x18 10: 4c 89 e7 mov %r12,%rdi 13: e8 5c fb ba f9 callq 0xf9bafb74 18: 49 8b 1c 24 mov (%r12),%rbx 1c: 48 8d bb 20 01 00 00 lea 0x120(%rbx),%rdi 23: 48 89 f8 mov %rdi,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 8a 04 28 mov (%rax,%r13,1),%al <-- trapping instruction 2e: 84 c0 test %al,%al 30: 0f 85 3b 01 00 00 jne 0x171 36: 8b ab 20 01 00 00 mov 0x120(%rbx),%ebp 3c: 89 ef mov %ebp,%edi 3e: 44 rex.R 3f: 89 .byte 0x89