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: 1061d, last: 3h14m
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 C unreliable 232 429d 445d 22/24 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: 1 PID: 303 Comm: syz-executor306 Not tainted 5.4.210-syzkaller-00006-gc80a5b2e7f63 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:cgroup_ancestor include/linux/cgroup.h:590 [inline]
RIP: 0010:____bpf_skb_ancestor_cgroup_id net/core/filter.c:4113 [inline]
RIP: 0010:bpf_skb_ancestor_cgroup_id+0x111/0x280 net/core/filter.c:4102
Code: 02 00 00 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 a0 64 14 fe 48 8b 1b 48 8d bb 1c 01 00 00 48 89 f8 48 c1 e8 03 <42> 8a 04 20 84 c0 0f 85 3e 01 00 00 8b ab 1c 01 00 00 89 ef 44 89
RSP: 0018:ffff8881dd5474b8 EFLAGS: 00010203
RAX: 0000000000000023 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff8881dd4faf40 RSI: 0000000000000080 RDI: 000000000000011c
RBP: 0000000000000080 R08: ffffffff837f3ed7 R09: ffff8881dd547760
R10: ffffed103baa8eee R11: 1ffff1103baa8eec R12: dffffc0000000000
R13: fffffffae88603b8 R14: 0000000000000000 R15: ffff8881e042a012
FS:  0000555557497300(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fac5fe95a70 CR3: 00000001dd508000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
Modules linked in:
---[ end trace f03870950700aafb ]---
RIP: 0010:cgroup_ancestor include/linux/cgroup.h:590 [inline]
RIP: 0010:____bpf_skb_ancestor_cgroup_id net/core/filter.c:4113 [inline]
RIP: 0010:bpf_skb_ancestor_cgroup_id+0x111/0x280 net/core/filter.c:4102
Code: 02 00 00 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 a0 64 14 fe 48 8b 1b 48 8d bb 1c 01 00 00 48 89 f8 48 c1 e8 03 <42> 8a 04 20 84 c0 0f 85 3e 01 00 00 8b ab 1c 01 00 00 89 ef 44 89
RSP: 0018:ffff8881dd5474b8 EFLAGS: 00010203
RAX: 0000000000000023 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff8881dd4faf40 RSI: 0000000000000080 RDI: 000000000000011c
RBP: 0000000000000080 R08: ffffffff837f3ed7 R09: ffff8881dd547760
R10: ffffed103baa8eee R11: 1ffff1103baa8eec R12: dffffc0000000000
R13: fffffffae88603b8 R14: 0000000000000000 R15: ffff8881e042a012
FS:  0000555557497300(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fac5fe95a70 CR3: 00000001dd508000 CR4: 00000000003406e0
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       	callq  0x3c804210
   d:	20 00                	and    %al,(%rax)
   f:	74 08                	je     0x19
  11:	48 89 df             	mov    %rbx,%rdi
  14:	e8 a0 64 14 fe       	callq  0xfe1464b9
  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 8a 04 20          	mov    (%rax,%r12,1),%al <-- trapping instruction
  2e:	84 c0                	test   %al,%al
  30:	0f 85 3e 01 00 00    	jne    0x174
  36:	8b ab 1c 01 00 00    	mov    0x11c(%rbx),%ebp
  3c:	89 ef                	mov    %ebp,%edi
  3e:	44                   	rex.R
  3f:	89                   	.byte 0x89

Crashes (7424):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-android-5-4-perf-kasan 2022/11/28 09:01 android12-5.4 c80a5b2e7f63 f4470a7b .config log report syz C general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-kasan 2022/11/28 08:54 android12-5.4 c80a5b2e7f63 f4470a7b .config log report syz C general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-kasan 2022/11/28 08:34 android12-5.4 c80a5b2e7f63 f4470a7b .config log report syz C general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-perf-kasan 2022/11/28 08:27 android12-5.4 c80a5b2e7f63 f4470a7b .config log report syz C general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-kasan 2022/08/20 06:10 android12-5.4 f3c75e616e3f 26a13b38 .config log report syz C general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-perf-kasan 2022/08/20 06:10 android12-5.4 f3c75e616e3f 26a13b38 .config log report syz C general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-perf-kasan 2022/08/20 05:41 android12-5.4 f3c75e616e3f 26a13b38 .config log report syz C general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-kasan 2022/08/20 05:39 android12-5.4 f3c75e616e3f 26a13b38 .config log report syz C general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-kasan 2022/05/11 21:49 android12-5.4 b2ca0128d238 beb0b407 .config log report syz C general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-perf-kasan 2022/05/11 21:20 android12-5.4 b2ca0128d238 beb0b407 .config log report syz C general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-kasan 2021/04/20 17:15 android12-5.4 d719af31dff4 c0ced557 .config log report syz C general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-kasan 2021/04/20 16:41 android12-5.4 d719af31dff4 c0ced557 .config log report syz C general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-kasan 2020/12/06 09:33 android12-5.4 616dba5e94cf f12ba0c5 .config 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 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 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 log report syz C
ci2-android-5-4-perf-kasan 2022/12/07 03:19 android12-5.4 d7e5d5321233 d88f3abb .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-kasan 2022/12/07 03:14 android12-5.4 d7e5d5321233 d88f3abb .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-perf-kasan 2022/12/06 22:00 android12-5.4 d7e5d5321233 d88f3abb .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-perf-kasan 2022/12/06 12:09 android12-5.4 431ec8c858f4 045cbb84 .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-kasan 2022/12/06 08:36 android12-5.4 431ec8c858f4 045cbb84 .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-perf-kasan 2022/12/06 07:16 android12-5.4 431ec8c858f4 045cbb84 .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-perf-kasan 2022/12/06 02:53 android12-5.4 69181d148aef 045cbb84 .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-perf-kasan 2022/12/06 00:04 android12-5.4 69181d148aef 045cbb84 .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-kasan 2022/12/05 21:29 android12-5.4 69181d148aef 045cbb84 .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-perf-kasan 2022/12/04 16:34 android12-5.4 1c84384fbdc7 e080de16 .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-kasan 2022/12/04 16:32 android12-5.4 1c84384fbdc7 e080de16 .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-kasan 2022/12/03 15:22 android12-5.4 1c84384fbdc7 e080de16 .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-kasan 2022/12/03 10:51 android12-5.4 1c84384fbdc7 e080de16 .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-perf-kasan 2022/12/03 05:57 android12-5.4 1c84384fbdc7 e080de16 .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-kasan 2022/12/02 16:14 android12-5.4 1c84384fbdc7 e080de16 .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-perf-kasan 2022/12/02 16:08 android12-5.4 1c84384fbdc7 e080de16 .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-perf-kasan 2022/12/02 13:37 android12-5.4 1c84384fbdc7 e080de16 .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-perf-kasan 2022/12/02 01:33 android12-5.4 1c84384fbdc7 e080de16 .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-perf-kasan 2022/12/01 16:25 android12-5.4 1c84384fbdc7 4c2a66e8 .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-perf-kasan 2022/12/01 09:41 android12-5.4 1c84384fbdc7 4c2a66e8 .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-kasan 2022/12/01 08:35 android12-5.4 1c84384fbdc7 4c2a66e8 .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-perf-kasan 2022/12/01 08:06 android12-5.4 1c84384fbdc7 4c2a66e8 .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-perf-kasan 2022/12/01 05:48 android12-5.4 1c84384fbdc7 4c2a66e8 .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-kasan 2022/11/30 21:17 android12-5.4 1c84384fbdc7 4c2a66e8 .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-kasan 2022/11/30 20:12 android12-5.4 1c84384fbdc7 4c2a66e8 .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-kasan 2022/11/30 15:06 android12-5.4 1c84384fbdc7 4c2a66e8 .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-perf-kasan 2022/11/30 03:53 android12-5.4 df2b5549c0ec 579a3740 .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-kasan 2022/11/30 01:59 android12-5.4 df2b5549c0ec 579a3740 .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-kasan 2022/11/29 18:55 android12-5.4 df2b5549c0ec 579a3740 .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-perf-kasan 2022/11/29 18:16 android12-5.4 df2b5549c0ec 579a3740 .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-kasan 2022/11/29 15:34 android12-5.4 b8d81d8b94a5 ca9683b8 .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-perf-kasan 2022/11/29 12:12 android12-5.4 b8d81d8b94a5 ca9683b8 .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-perf-kasan 2022/11/28 19:07 android12-5.4 c80a5b2e7f63 247de55b .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-kasan 2022/11/28 14:14 android12-5.4 c80a5b2e7f63 247de55b .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-kasan 2022/11/28 09:17 android12-5.4 c80a5b2e7f63 f4470a7b .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-perf-kasan 2022/11/28 08:14 android12-5.4 c80a5b2e7f63 f4470a7b .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-kasan 2022/11/27 21:22 android12-5.4 c80a5b2e7f63 f4470a7b .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-kasan 2022/11/26 14:45 android12-5.4 c80a5b2e7f63 f4470a7b .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-kasan 2022/11/26 09:32 android12-5.4 c80a5b2e7f63 f4470a7b .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-kasan 2022/11/25 21:56 android12-5.4 c80a5b2e7f63 f4470a7b .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-perf-kasan 2022/11/25 16:06 android12-5.4 c80a5b2e7f63 74a66371 .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-kasan 2022/11/25 14:53 android12-5.4 c80a5b2e7f63 74a66371 .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-kasan 2022/11/25 09:40 android12-5.4 c80a5b2e7f63 74a66371 .config log report info general protection fault in bpf_skb_ancestor_cgroup_id
ci2-android-5-4-kasan 2021/01/16 06:04 android12-5.4 dc04463953b2 65a7a854 .config 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 log report
* Struck through repros no longer work on HEAD.