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: 1449 Comm: syz-executor.3 Not tainted 5.15.0-rc1-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+0x152/0x300 net/core/filter.c:4501 Code: 03 80 3c 02 00 0f 85 9f 01 00 00 48 8b 9b 58 04 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d bb 20 01 00 00 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 48 01 00 00 8b ab 20 01 00 00 RSP: 0018:ffffc9000c90f828 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc9000ff13000 RDX: 0000000000000024 RSI: ffffffff8729496e RDI: 0000000000000120 RBP: 0000000000000080 R08: 0000000000000000 R09: 0000000000000007 R10: ffffffff87294951 R11: 000000000000001f R12: ffffffff80004004 R13: 0000000080004004 R14: ffffc9000c90fc30 R15: ffffc900010ea048 FS: 00007f8ae34b1700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8ae34b1718 CR3: 0000000034ef5000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bpf_prog_425f0af5f50bf136+0x59/0x538 bpf_dispatcher_nop_func include/linux/bpf.h:717 [inline] __bpf_prog_run include/linux/filter.h:617 [inline] bpf_prog_run include/linux/filter.h:631 [inline] bpf_test_run+0x574/0xa30 net/bpf/test_run.c:119 bpf_prog_test_run_skb+0xb84/0x1ee0 net/bpf/test_run.c:663 bpf_prog_test_run kernel/bpf/syscall.c:3307 [inline] __sys_bpf+0x2137/0x5df0 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+0x75/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:0x7f8ae5f7c709 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:00007f8ae34b1188 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f8ae60810e0 RCX: 00007f8ae5f7c709 RDX: 0000000000000048 RSI: 0000000020000180 RDI: 000000000000000a RBP: 00007f8ae5fd6cb4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdd99d00df R14: 00007f8ae34b1300 R15: 0000000000022000 Modules linked in: ---[ end trace 86278ed4cef3aa05 ]--- 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+0x152/0x300 net/core/filter.c:4501 Code: 03 80 3c 02 00 0f 85 9f 01 00 00 48 8b 9b 58 04 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d bb 20 01 00 00 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 48 01 00 00 8b ab 20 01 00 00 RSP: 0018:ffffc9000c90f828 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc9000ff13000 RDX: 0000000000000024 RSI: ffffffff8729496e RDI: 0000000000000120 RBP: 0000000000000080 R08: 0000000000000000 R09: 0000000000000007 R10: ffffffff87294951 R11: 000000000000001f R12: ffffffff80004004 R13: 0000000080004004 R14: ffffc9000c90fc30 R15: ffffc900010ea048 FS: 00007f8ae34b1700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2ed3b000 CR3: 0000000034ef5000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 03 80 3c 02 00 0f add 0xf00023c(%rax),%eax 6: 85 9f 01 00 00 48 test %ebx,0x48000001(%rdi) c: 8b 9b 58 04 00 00 mov 0x458(%rbx),%ebx 12: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 19: fc ff df 1c: 48 8d bb 20 01 00 00 lea 0x120(%rbx),%rdi 23: 48 89 fa mov %rdi,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax <-- trapping instruction 2e: 84 c0 test %al,%al 30: 74 08 je 0x3a 32: 3c 03 cmp $0x3,%al 34: 0f 8e 48 01 00 00 jle 0x182 3a: 8b ab 20 01 00 00 mov 0x120(%rbx),%ebp