kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 420 Comm: syz-executor.0 Not tainted 5.4.284-syzkaller-04988-g137306201ec6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:____bpf_skb_cgroup_id net/core/filter.c:4130 [inline] RIP: 0010:bpf_skb_cgroup_id+0x10f/0x190 net/core/filter.c:4121 Code: c7 a0 02 00 00 4c 89 f8 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 ff e8 d0 d5 0b fe bb 40 01 00 00 49 03 1f 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00 74 08 48 89 df e8 b2 d5 0b fe 48 8b 1b 48 83 c3 68 RSP: 0018:ffff8881daca7640 EFLAGS: 00010206 RAX: 0000000000000028 RBX: 0000000000000140 RCX: ffff8881f38e3f00 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 0000000000000000 RBP: ffff8881daca7690 R08: ffffffff83884986 R09: ffff8881daca7760 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: fffffff4a0fedd43 R14: ffff8881ef418012 R15: ffff8881ef4182a0 FS: 00007f89184bb6c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8918649090 CR3: 00000001e04e1000 CR4: 00000000003406b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bpf_prog_795979a567f36c11+0x2bb/0x1000 bpf_call_func include/linux/filter.h:627 [inline] bpf_test_run+0x2ae/0x6c0 net/bpf/test_run.c:44 bpf_prog_test_run_skb+0x73c/0xf00 net/bpf/test_run.c:311 bpf_prog_test_run kernel/bpf/syscall.c:2124 [inline] __do_sys_bpf kernel/bpf/syscall.c:2909 [inline] __se_sys_bpf+0x2e37/0xbcb0 kernel/bpf/syscall.c:2849 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 RIP: 0033:0x7f89185358a9 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f89184bb0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f8918647f60 RCX: 00007f89185358a9 RDX: 0000000000000028 RSI: 0000000020000440 RDI: 000000000000000a RBP: 00007f8918591074 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f8918647f60 R15: 00007ffd883b8028 Modules linked in: ---[ end trace 366b831483407f76 ]--- RIP: 0010:____bpf_skb_cgroup_id net/core/filter.c:4130 [inline] RIP: 0010:bpf_skb_cgroup_id+0x10f/0x190 net/core/filter.c:4121 Code: c7 a0 02 00 00 4c 89 f8 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 ff e8 d0 d5 0b fe bb 40 01 00 00 49 03 1f 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00 74 08 48 89 df e8 b2 d5 0b fe 48 8b 1b 48 83 c3 68 RSP: 0018:ffff8881daca7640 EFLAGS: 00010206 RAX: 0000000000000028 RBX: 0000000000000140 RCX: ffff8881f38e3f00 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 0000000000000000 RBP: ffff8881daca7690 R08: ffffffff83884986 R09: ffff8881daca7760 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: fffffff4a0fedd43 R14: ffff8881ef418012 R15: ffff8881ef4182a0 FS: 00007f89184bb6c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8918649090 CR3: 00000001e04e1000 CR4: 00000000003406b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: a0 02 00 00 4c 89 f8 movabs 0xc148f8894c000002,%al 7: 48 c1 9: e8 03 42 80 3c call 0x3c804211 e: 20 00 and %al,(%rax) 10: 74 08 je 0x1a 12: 4c 89 ff mov %r15,%rdi 15: e8 d0 d5 0b fe call 0xfe0bd5ea 1a: bb 40 01 00 00 mov $0x140,%ebx 1f: 49 03 1f add (%r15),%rbx 22: 48 89 d8 mov %rbx,%rax 25: 48 c1 e8 03 shr $0x3,%rax * 29: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) <-- trapping instruction 2e: 74 08 je 0x38 30: 48 89 df mov %rbx,%rdi 33: e8 b2 d5 0b fe call 0xfe0bd5ea 38: 48 8b 1b mov (%rbx),%rbx 3b: 48 83 c3 68 add $0x68,%rbx