syzbot


general protection fault in bpf_skb_ancestor_cgroup_id

Status: upstream: reported C repro on 2020/01/11 04:44
Reported-by: syzbot+e48aa434db5743393fef@syzkaller.appspotmail.com
First crash: 1514d, last: 5h00m
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in bpf_skb_ancestor_cgroup_id bpf net C unreliable 232 882d 898d 20/26 fixed on 2022/03/08 16:11

Sample crash report:
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: 362 Comm: syz-executor173 Not tainted 5.4.259-syzkaller-00012-g57a39998c138 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:cgroup_ancestor include/linux/cgroup.h:591 [inline]
RIP: 0010:____bpf_skb_ancestor_cgroup_id net/core/filter.c:4125 [inline]
RIP: 0010:bpf_skb_ancestor_cgroup_id+0x114/0x270 net/core/filter.c:4114
Code: 02 00 00 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 2d 57 0c fe 48 8b 1b 48 8d bb 1c 01 00 00 48 89 f8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 2f 01 00 00 8b ab 1c 01 00 00 89 ef 44
RSP: 0018:ffff8881dcaa7638 EFLAGS: 00010203
RAX: 0000000000000023 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 000000000000011c
RBP: 0000000000000080 R08: ffffffff8387be1a R09: ffff8881dcaa7760
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: fffffff80afb3ffa R14: 0000000003430000 R15: ffff8881de8a9012
FS:  0000555556b5c380(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000064a110 CR3: 00000001e0182000 CR4: 00000000003406b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
Modules linked in:
---[ end trace 76171594479c8e83 ]---
RIP: 0010:cgroup_ancestor include/linux/cgroup.h:591 [inline]
RIP: 0010:____bpf_skb_ancestor_cgroup_id net/core/filter.c:4125 [inline]
RIP: 0010:bpf_skb_ancestor_cgroup_id+0x114/0x270 net/core/filter.c:4114
Code: 02 00 00 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 2d 57 0c fe 48 8b 1b 48 8d bb 1c 01 00 00 48 89 f8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 2f 01 00 00 8b ab 1c 01 00 00 89 ef 44
RSP: 0018:ffff8881dcaa7638 EFLAGS: 00010203
RAX: 0000000000000023 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 000000000000011c
RBP: 0000000000000080 R08: ffffffff8387be1a R09: ffff8881dcaa7760
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: fffffff80afb3ffa R14: 0000000003430000 R15: ffff8881de8a9012
FS:  0000555556b5c380(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000064a110 CR3: 00000001e0182000 CR4: 00000000003406b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	02 00                	add    (%rax),%al
   2:	00 48 89             	add    %cl,-0x77(%rax)
   5:	d8 48 c1             	fmuls  -0x3f(%rax)
   8:	e8 03 42 80 3c       	call   0x3c804210
   d:	20 00                	and    %al,(%rax)
   f:	74 08                	je     0x19
  11:	48 89 df             	mov    %rbx,%rdi
  14:	e8 2d 57 0c fe       	call   0xfe0c5746
  19:	48 8b 1b             	mov    (%rbx),%rbx
  1c:	48 8d bb 1c 01 00 00 	lea    0x11c(%rbx),%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 2f 01 00 00    	jne    0x166
  37:	8b ab 1c 01 00 00    	mov    0x11c(%rbx),%ebp
  3d:	89 ef                	mov    %ebp,%edi
  3f:	44                   	rex.R

Crashes (9404):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/10 23:00 android12-5.4 57a39998c138 04815ef1 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/01/10 16:57 android12-5.4 57a39998c138 04815ef1 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2023/09/28 23:01 android12-5.4 a1b9dbe5628a d265efd8 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2023/09/27 11:27 android12-5.4 a1b9dbe5628a 0b6a67ac .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2023/06/19 02:06 android12-5.4 39a9b92e9828 f3921d4d .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2023/06/19 00:53 android12-5.4 39a9b92e9828 f3921d4d .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2023/03/09 01:22 android12-5.4 250ac66f1853 4fc6d98d .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2023/03/09 01:07 android12-5.4 250ac66f1853 4fc6d98d .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2023/03/09 00:54 android12-5.4 250ac66f1853 4fc6d98d .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2023/03/09 00:44 android12-5.4 250ac66f1853 4fc6d98d .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2022/11/28 09:01 android12-5.4 c80a5b2e7f63 f4470a7b .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2022/11/28 08:54 android12-5.4 c80a5b2e7f63 f4470a7b .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2022/11/28 08:34 android12-5.4 c80a5b2e7f63 f4470a7b .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2022/11/28 08:27 android12-5.4 c80a5b2e7f63 f4470a7b .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2022/08/20 06:10 android12-5.4 f3c75e616e3f 26a13b38 .config strace log report syz C ci2-android-5-4-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2022/08/20 06:10 android12-5.4 f3c75e616e3f 26a13b38 .config strace log report syz C ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2022/08/20 05:41 android12-5.4 f3c75e616e3f 26a13b38 .config strace log report syz C ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2022/08/20 05:39 android12-5.4 f3c75e616e3f 26a13b38 .config strace log report syz C ci2-android-5-4-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2022/05/11 21:49 android12-5.4 b2ca0128d238 beb0b407 .config strace log report syz C ci2-android-5-4-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2022/05/11 21:20 android12-5.4 b2ca0128d238 beb0b407 .config strace log report syz C ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2021/04/20 17:15 android12-5.4 d719af31dff4 c0ced557 .config console log report syz C ci2-android-5-4-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2021/04/20 16:41 android12-5.4 d719af31dff4 c0ced557 .config console log report syz C ci2-android-5-4-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2020/12/06 09:33 android12-5.4 616dba5e94cf f12ba0c5 .config console log report syz C ci2-android-5-4-kasan
2020/08/14 22:29 https://android.googlesource.com/kernel/common android-5.4 c3221b7ac740 5ce13532 .config console log report syz C ci2-android-5-4-kasan
2020/03/05 22:06 https://android.googlesource.com/kernel/common android-5.4 d0dbb0adbf9a b655d91b .config console log report syz C ci2-android-5-4-kasan
2020/01/11 05:03 https://android.googlesource.com/kernel/common android-5.4 f5f770e495ba 4c04afaa .config console log report syz C ci2-android-5-4-kasan
2024/03/04 00:23 android12-5.4 50cb39f34248 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/03/03 23:06 android12-5.4 50cb39f34248 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/03/03 09:03 android12-5.4 50cb39f34248 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/03/03 03:54 android12-5.4 50cb39f34248 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/03/03 02:53 android12-5.4 50cb39f34248 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/03/02 22:35 android12-5.4 50cb39f34248 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/03/02 17:45 android12-5.4 50cb39f34248 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/03/02 14:25 android12-5.4 50cb39f34248 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/03/02 12:40 android12-5.4 50cb39f34248 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/03/02 05:46 android12-5.4 50cb39f34248 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/03/01 22:15 android12-5.4 50cb39f34248 83acf9e0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/03/01 21:02 android12-5.4 50cb39f34248 83acf9e0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/03/01 12:23 android12-5.4 50cb39f34248 352ab904 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/03/01 10:35 android12-5.4 50cb39f34248 352ab904 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/03/01 09:11 android12-5.4 50cb39f34248 352ab904 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/03/01 09:02 android12-5.4 50cb39f34248 352ab904 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/03/01 04:06 android12-5.4 50cb39f34248 352ab904 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/02/29 18:40 android12-5.4 50cb39f34248 352ab904 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/02/29 15:10 android12-5.4 50cb39f34248 352ab904 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/02/29 13:08 android12-5.4 50cb39f34248 352ab904 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/02/29 08:01 android12-5.4 50cb39f34248 352ab904 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/02/29 04:23 android12-5.4 50cb39f34248 352ab904 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/02/28 18:55 android12-5.4 50cb39f34248 55d6f11d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/02/28 18:03 android12-5.4 50cb39f34248 55d6f11d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/02/28 04:22 android12-5.4 50cb39f34248 d367cbe5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/02/28 02:45 android12-5.4 50cb39f34248 d367cbe5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/02/27 17:23 android12-5.4 1b3143b9b166 05e69c83 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/02/27 12:09 android12-5.4 1b3143b9b166 05e69c83 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/02/27 05:42 android12-5.4 1b3143b9b166 05e69c83 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/02/27 04:37 android12-5.4 1b3143b9b166 05e69c83 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/02/26 15:42 android12-5.4 1b3143b9b166 da36a36b .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/02/26 10:37 android12-5.4 1b3143b9b166 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/02/26 07:53 android12-5.4 1b3143b9b166 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/02/24 03:59 android12-5.4 1b3143b9b166 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/02/23 14:42 android12-5.4 1b3143b9b166 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/02/23 09:53 android12-5.4 1b3143b9b166 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/02/23 09:49 android12-5.4 1b3143b9b166 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/02/23 04:39 android12-5.4 1b3143b9b166 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/02/22 19:48 android12-5.4 1b3143b9b166 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/02/22 16:30 android12-5.4 1b3143b9b166 345111b5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/02/22 13:45 android12-5.4 1b3143b9b166 345111b5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/02/21 23:54 android12-5.4 1b3143b9b166 345111b5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/02/21 20:23 android12-5.4 1b3143b9b166 345111b5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2024/02/21 17:07 android12-5.4 1b3143b9b166 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan general protection fault in bpf_skb_ancestor_cgroup_id
2021/01/16 06:04 android12-5.4 dc04463953b2 65a7a854 .config console log report info ci2-android-5-4-kasan
2020/01/11 04:43 https://android.googlesource.com/kernel/common android-5.4 f5f770e495ba 4c04afaa .config console log report ci2-android-5-4-kasan
* Struck through repros no longer work on HEAD.