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: 1 PID: 17035 Comm: syz.1.5158 Tainted: G        W         5.4.292-syzkaller-00021-gcd8e74fa0fa3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:cgroup_ancestor include/linux/cgroup.h:591 [inline]
RIP: 0010:____bpf_skb_ancestor_cgroup_id net/core/filter.c:4171 [inline]
RIP: 0010:bpf_skb_ancestor_cgroup_id+0x11d/0x280 net/core/filter.c:4160
Code: 02 00 00 4c 89 f0 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 94 42 26 fe 4d 8b 36 49 8d be 1c 01 00 00 48 89 f8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 3b 01 00 00 45 8b be 1c 01 00 00 44 89
RSP: 0018:ffff8881e623faf8 EFLAGS: 00010203
RAX: 0000000000000023 RBX: 00000000ffe10000 RCX: 0000000000000002
RDX: ffff8881e9223f00 RSI: 0000000000000080 RDI: 000000000000011c
RBP: ffff8881e623fb18 R08: ffff8881e623fd20 R09: ffffed103a9afd95
R10: ffffed103a9afd95 R11: 1ffff1103a9afd94 R12: dffffc0000000000
R13: ffffc90000066020 R14: 0000000000000000 R15: 0000000000000080
FS:  00007f8e1101c6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000020000054707f CR3: 00000001d77ec000 CR4: 00000000003406a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 bpf_prog_d8b3682c86e47376+0x31c/0x1000
 bpf_call_func include/linux/filter.h:627 [inline]
 bpf_test_run+0x1ea/0x5d0 net/bpf/test_run.c:44
 bpf_prog_test_run_skb+0x721/0xdc0 net/bpf/test_run.c:311
 bpf_prog_test_run+0x21a/0x2a0 kernel/bpf/syscall.c:2124
 __do_sys_bpf kernel/bpf/syscall.c:2909 [inline]
 __se_sys_bpf+0x49a/0x570 kernel/bpf/syscall.c:2849
 __x64_sys_bpf+0x7b/0x90 kernel/bpf/syscall.c:2849
 do_syscall_64+0xcf/0x170 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x5c/0xc1
RIP: 0033:0x7f8e129d4969
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8e1101c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f8e12bfc080 RCX: 00007f8e129d4969
RDX: 0000000000000050 RSI: 00002000000002c0 RDI: 000000000000000a
RBP: 00007f8e12a56ab1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f8e12bfc080 R15: 00007ffe2b547548
Modules linked in:
---[ end trace 5bed38207ec53c80 ]---
RIP: 0010:cgroup_ancestor include/linux/cgroup.h:591 [inline]
RIP: 0010:____bpf_skb_ancestor_cgroup_id net/core/filter.c:4171 [inline]
RIP: 0010:bpf_skb_ancestor_cgroup_id+0x11d/0x280 net/core/filter.c:4160
Code: 02 00 00 4c 89 f0 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 94 42 26 fe 4d 8b 36 49 8d be 1c 01 00 00 48 89 f8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 3b 01 00 00 45 8b be 1c 01 00 00 44 89
RSP: 0018:ffff8881e623faf8 EFLAGS: 00010203
RAX: 0000000000000023 RBX: 00000000ffe10000 RCX: 0000000000000002
RDX: ffff8881e9223f00 RSI: 0000000000000080 RDI: 000000000000011c
RBP: ffff8881e623fb18 R08: ffff8881e623fd20 R09: ffffed103a9afd95
R10: ffffed103a9afd95 R11: 1ffff1103a9afd94 R12: dffffc0000000000
R13: ffffc90000066020 R14: 0000000000000000 R15: 0000000000000080
FS:  00007f8e1101c6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000020000054707f CR3: 00000001d77ec000 CR4: 00000000003406a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	02 00                	add    (%rax),%al
   2:	00 4c 89 f0          	add    %cl,-0x10(%rcx,%rcx,4)
   6:	48 c1 e8 03          	shr    $0x3,%rax
   a:	42 80 3c 20 00       	cmpb   $0x0,(%rax,%r12,1)
   f:	74 08                	je     0x19
  11:	4c 89 f7             	mov    %r14,%rdi
  14:	e8 94 42 26 fe       	call   0xfe2642ad
  19:	4d 8b 36             	mov    (%r14),%r14
  1c:	49 8d be 1c 01 00 00 	lea    0x11c(%r14),%rdi
  23:	48 89 f8             	mov    %rdi,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 0f b6 04 20       	movzbl (%rax,%r12,1),%eax <-- trapping instruction
  2f:	84 c0                	test   %al,%al
  31:	0f 85 3b 01 00 00    	jne    0x172
  37:	45 8b be 1c 01 00 00 	mov    0x11c(%r14),%r15d
  3e:	44                   	rex.R
  3f:	89                   	.byte 0x89