syzbot


general protection fault in bpf_skb_cgroup_id

Status: upstream: reported C repro on 2020/01/11 12:22
Reported-by: syzbot+398df33fae6ec4a049c5@syzkaller.appspotmail.com
First crash: 1060d, last: 10h24m
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in bpf_skb_cgroup_id C inconclusive 107 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: 304 Comm: syz-executor440 Not tainted 5.4.210-syzkaller-00013-gdf2b5549c0ec #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:____bpf_skb_cgroup_id net/core/filter.c:4092 [inline]
RIP: 0010:bpf_skb_cgroup_id+0x10c/0x190 net/core/filter.c:4083
Code: c7 a0 02 00 00 4c 89 f8 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 ff e8 c3 58 14 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 a5 58 14 fe 48 8b 1b 48 83 c3 68
RSP: 0018:ffff8881dd18f640 EFLAGS: 00010206
RAX: 0000000000000028 RBX: 0000000000000140 RCX: ffff8881dd6a8000
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 0000000000000000
RBP: ffff8881dd18f690 R08: ffffffff837f4ab3 R09: ffff8881dd18f760
R10: ffffed103ba31eee R11: 1ffff1103ba31eec R12: dffffc0000000000
R13: fffffffad44ed384 R14: ffff8881e2d29812 R15: ffff8881e2d29aa0
FS:  0000555555dc4300(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fdccf15da70 CR3: 00000001dd14e000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
Modules linked in:
---[ end trace ec6e06664ba6feeb ]---
RIP: 0010:____bpf_skb_cgroup_id net/core/filter.c:4092 [inline]
RIP: 0010:bpf_skb_cgroup_id+0x10c/0x190 net/core/filter.c:4083
Code: c7 a0 02 00 00 4c 89 f8 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 ff e8 c3 58 14 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 a5 58 14 fe 48 8b 1b 48 83 c3 68
RSP: 0018:ffff8881dd18f640 EFLAGS: 00010206
RAX: 0000000000000028 RBX: 0000000000000140 RCX: ffff8881dd6a8000
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 0000000000000000
RBP: ffff8881dd18f690 R08: ffffffff837f4ab3 R09: ffff8881dd18f760
R10: ffffed103ba31eee R11: 1ffff1103ba31eec R12: dffffc0000000000
R13: fffffffad44ed384 R14: ffff8881e2d29812 R15: ffff8881e2d29aa0
FS:  0000555555dc4300(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fdccf15da70 CR3: 00000001dd14e000 CR4: 00000000003406e0
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       	callq  0x3c804211
   e:	20 00                	and    %al,(%rax)
  10:	74 08                	je     0x1a
  12:	4c 89 ff             	mov    %r15,%rdi
  15:	e8 c3 58 14 fe       	callq  0xfe1458dd
  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 a5 58 14 fe       	callq  0xfe1458dd
  38:	48 8b 1b             	mov    (%rbx),%rbx
  3b:	48 83 c3 68          	add    $0x68,%rbx

Crashes (2423):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-android-5-4-kasan 2022/11/29 23:53 android12-5.4 df2b5549c0ec 579a3740 .config log report syz C general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-perf-kasan 2022/11/29 22:02 android12-5.4 df2b5549c0ec 579a3740 .config log report syz C general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-perf-kasan 2022/08/21 01:21 android12-5.4 f3c75e616e3f 26a13b38 .config log report syz C general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-kasan 2022/08/21 01:00 android12-5.4 f3c75e616e3f 26a13b38 .config log report syz C general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-kasan 2022/05/12 15:35 android12-5.4 b2ca0128d238 9ad6612a .config log report syz C general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-perf-kasan 2022/05/12 15:33 android12-5.4 b2ca0128d238 9ad6612a .config log report syz C general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-kasan 2022/05/12 15:12 android12-5.4 b2ca0128d238 9ad6612a .config log report syz C general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-perf-kasan 2022/05/12 15:09 android12-5.4 b2ca0128d238 9ad6612a .config log report syz C general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-kasan 2021/09/14 17:19 android12-5.4 58a9e28781be 07e953c1 .config log report syz C general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-kasan 2021/04/21 03:17 android12-5.4 a5631d493c29 c0ced557 .config log report syz C general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-kasan 2020/08/15 20:41 https://android.googlesource.com/kernel/common android-5.4 c3221b7ac740 5ce13532 .config log report syz C
ci2-android-5-4-kasan 2020/03/06 00:26 https://android.googlesource.com/kernel/common android-5.4 d0dbb0adbf9a b655d91b .config log report syz C
ci2-android-5-4-kasan 2020/01/11 12:47 https://android.googlesource.com/kernel/common android-5.4 f5f770e495ba 4c04afaa .config log report syz C
ci2-android-5-4-perf-kasan 2022/12/06 14:28 android12-5.4 431ec8c858f4 045cbb84 .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-perf-kasan 2022/12/05 17:47 android12-5.4 69181d148aef 045cbb84 .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-perf-kasan 2022/12/05 17:46 android12-5.4 69181d148aef 045cbb84 .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-perf-kasan 2022/12/04 08:46 android12-5.4 1c84384fbdc7 e080de16 .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-kasan 2022/12/03 12:56 android12-5.4 1c84384fbdc7 e080de16 .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-perf-kasan 2022/12/03 02:35 android12-5.4 1c84384fbdc7 e080de16 .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-perf-kasan 2022/12/01 16:17 android12-5.4 1c84384fbdc7 4c2a66e8 .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-perf-kasan 2022/12/01 04:30 android12-5.4 1c84384fbdc7 4c2a66e8 .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-perf-kasan 2022/11/29 21:46 android12-5.4 df2b5549c0ec 579a3740 .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-perf-kasan 2022/11/28 01:01 android12-5.4 c80a5b2e7f63 f4470a7b .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-perf-kasan 2022/11/26 08:29 android12-5.4 c80a5b2e7f63 f4470a7b .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-perf-kasan 2022/11/26 00:04 android12-5.4 c80a5b2e7f63 f4470a7b .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-perf-kasan 2022/11/25 07:29 android12-5.4 c80a5b2e7f63 74a66371 .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-perf-kasan 2022/11/24 19:48 android12-5.4 c80a5b2e7f63 ff68ff8f .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-perf-kasan 2022/11/24 13:24 android12-5.4 c80a5b2e7f63 ff68ff8f .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-kasan 2022/11/23 03:42 android12-5.4 c80a5b2e7f63 9da37ae8 .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-perf-kasan 2022/11/22 16:46 android12-5.4 c80a5b2e7f63 9da37ae8 .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-kasan 2022/11/22 13:04 android12-5.4 c80a5b2e7f63 1c576c23 .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-perf-kasan 2022/11/22 10:29 android12-5.4 c80a5b2e7f63 1c576c23 .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-kasan 2022/11/22 01:30 android12-5.4 c80a5b2e7f63 1c576c23 .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-perf-kasan 2022/11/21 02:28 android12-5.4 e9f865cb240f 5bb70014 .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-perf-kasan 2022/11/20 15:53 android12-5.4 e9f865cb240f 5bb70014 .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-perf-kasan 2022/11/18 23:25 android12-5.4 e9f865cb240f 5bb70014 .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-kasan 2022/11/18 16:15 android12-5.4 e9f865cb240f 5bb70014 .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-kasan 2022/11/16 06:25 android12-5.4 e9f865cb240f 3a127a31 .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-perf-kasan 2022/11/15 21:12 android12-5.4 5a34019eb955 97de9cfc .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-kasan 2022/11/15 11:32 android12-5.4 5a34019eb955 97de9cfc .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-kasan 2022/11/15 00:45 android12-5.4 5a34019eb955 97de9cfc .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-perf-kasan 2022/11/14 14:28 android12-5.4 5a34019eb955 943f4cb8 .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-kasan 2022/11/14 14:20 android12-5.4 5a34019eb955 943f4cb8 .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-perf-kasan 2022/11/13 13:33 android12-5.4 5a34019eb955 f42ee5d8 .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-kasan 2022/11/13 03:43 android12-5.4 5a34019eb955 f42ee5d8 .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-perf-kasan 2022/11/13 02:38 android12-5.4 5a34019eb955 f42ee5d8 .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-kasan 2022/11/12 19:57 android12-5.4 5a34019eb955 f42ee5d8 .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-perf-kasan 2022/11/11 14:52 android12-5.4 5a34019eb955 f42ee5d8 .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-kasan 2022/11/10 17:06 android12-5.4 5a34019eb955 3ead01ad .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-kasan 2022/11/10 14:20 android12-5.4 5a34019eb955 b2488a87 .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-perf-kasan 2022/11/09 22:20 android12-5.4 5a34019eb955 bebca8b7 .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-perf-kasan 2022/11/09 17:27 android12-5.4 5a34019eb955 bebca8b7 .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-perf-kasan 2022/11/09 05:15 android12-5.4 5e295dcf7dcb 5fa28208 .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-perf-kasan 2022/11/08 14:38 android12-5.4 80bf73e76223 060f945e .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-perf-kasan 2022/11/08 09:36 android12-5.4 d87b38e6be0f 6feb842b .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-kasan 2022/11/08 08:25 android12-5.4 d87b38e6be0f 6feb842b .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-perf-kasan 2022/11/07 20:09 android12-5.4 d87b38e6be0f a779b11a .config log report info general protection fault in bpf_skb_cgroup_id
ci2-android-5-4-kasan 2021/01/16 08:51 android12-5.4 dc04463953b2 65a7a854 .config log report info
ci2-android-5-4-kasan 2020/01/11 12:21 https://android.googlesource.com/kernel/common android-5.4 f5f770e495ba 4c04afaa .config log report
* Struck through repros no longer work on HEAD.