general protection fault, probably for non-canonical address 0xdffffc0000000029: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000148-0x000000000000014f] CPU: 1 PID: 12795 Comm: syz-executor.4 Not tainted 5.15.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:cgroup_id include/linux/cgroup.h:312 [inline] RIP: 0010:__bpf_sk_cgroup_id net/core/filter.c:4468 [inline] RIP: 0010:____bpf_skb_cgroup_id net/core/filter.c:4473 [inline] RIP: 0010:bpf_skb_cgroup_id+0x12c/0x1d0 net/core/filter.c:4471 Code: 58 04 00 00 4c 89 f8 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 ff e8 84 c3 ba f9 41 be 48 01 00 00 4d 03 37 4c 89 f0 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 f7 e8 65 c3 ba f9 bb 90 00 00 00 49 03 RSP: 0018:ffffc900041774e8 EFLAGS: 00010202 RAX: 0000000000000029 RBX: 0000000000000080 RCX: 0000000000040000 RDX: ffffc90012161000 RSI: 0000000000000100 RDI: 0000000000000101 RBP: ffffc90004177510 R08: ffffffff88130e12 R09: ffffed10173a64a2 R10: ffffed10173a64a2 R11: 0000000000000000 R12: dffffc0000000000 R13: ffffc900041776a0 R14: 0000000000000148 R15: ffff888090264458 FS: 00007fc3a3bde700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2d722000 CR3: 000000001fb5d000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bpf_prog_a196c95e32f32915+0x10/0x2dc 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:0x7fc3a6667709 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:00007fc3a3bde188 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007fc3a676bf60 RCX: 00007fc3a6667709 RDX: 0000000000000028 RSI: 0000000020000440 RDI: 000000000000000a RBP: 00007fc3a66c1cb4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe2ceabbef R14: 00007fc3a3bde300 R15: 0000000000022000 Modules linked in: ---[ end trace 92956b0de1612906 ]--- RIP: 0010:cgroup_id include/linux/cgroup.h:312 [inline] RIP: 0010:__bpf_sk_cgroup_id net/core/filter.c:4468 [inline] RIP: 0010:____bpf_skb_cgroup_id net/core/filter.c:4473 [inline] RIP: 0010:bpf_skb_cgroup_id+0x12c/0x1d0 net/core/filter.c:4471 Code: 58 04 00 00 4c 89 f8 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 ff e8 84 c3 ba f9 41 be 48 01 00 00 4d 03 37 4c 89 f0 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 f7 e8 65 c3 ba f9 bb 90 00 00 00 49 03 RSP: 0018:ffffc900041774e8 EFLAGS: 00010202 RAX: 0000000000000029 RBX: 0000000000000080 RCX: 0000000000040000 RDX: ffffc90012161000 RSI: 0000000000000100 RDI: 0000000000000101 RBP: ffffc90004177510 R08: ffffffff88130e12 R09: ffffed10173a64a2 R10: ffffed10173a64a2 R11: 0000000000000000 R12: dffffc0000000000 R13: ffffc900041776a0 R14: 0000000000000148 R15: ffff888090264458 FS: 00007fc3a3bde700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2d724000 CR3: 000000001fb5d000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 58 pop %rax 1: 04 00 add $0x0,%al 3: 00 4c 89 f8 add %cl,-0x8(%rcx,%rcx,4) 7: 48 c1 e8 03 shr $0x3,%rax b: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) 10: 74 08 je 0x1a 12: 4c 89 ff mov %r15,%rdi 15: e8 84 c3 ba f9 callq 0xf9bac39e 1a: 41 be 48 01 00 00 mov $0x148,%r14d 20: 4d 03 37 add (%r15),%r14 23: 4c 89 f0 mov %r14,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 4c 89 f7 mov %r14,%rdi 34: e8 65 c3 ba f9 callq 0xf9bac39e 39: bb 90 00 00 00 mov $0x90,%ebx 3e: 49 rex.WB 3f: 03 .byte 0x3