syzbot


general protection fault in inherit_task_group

Status: upstream: reported C repro on 2024/02/16 22:46
Reported-by: syzbot+904de93f21b99bec4d00@syzkaller.appspotmail.com
First crash: 122d, last: 16d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in inherit_task_group perf C done done 4 232d 230d 25/27 fixed on 2023/12/21 03:45
linux-6.1 general protection fault in inherit_task_group origin:upstream missing-backport C inconclusive 3 142d 233d 0/3 upstream: reported C repro on 2023/10/28 05:24
linux-5.15 general protection fault in inherit_task_group origin:upstream C done 4 228d 233d 3/3 fixed on 2023/12/05 18:06
android-6-1 general protection fault in inherit_task_group origin:downstream C 1 51d 121d 0/2 upstream: reported C repro on 2024/02/17 03:28
android-5-10 general protection fault in inherit_task_group C 16 16h31m 121d 0/2 upstream: reported C repro on 2024/02/16 23:02
android-5-15 general protection fault in inherit_task_group origin:downstream C 4 51d 121d 0/2 upstream: reported C repro on 2024/02/16 23:09
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/03/19 20:53 27m retest repro android12-5.4 report log

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: 498 Comm: syz-executor320 Not tainted 5.4.265-syzkaller-00001-g1b3143b9b166 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
RIP: 0010:inherit_group kernel/events/core.c:12068 [inline]
RIP: 0010:inherit_task_group+0x1bf/0x390 kernel/events/core.c:12112
Code: c5 8c 00 00 00 48 89 e8 48 c1 e8 03 42 0f b6 04 20 84 c0 0f 85 86 01 00 00 8b 5d 00 49 81 c7 8c 00 00 00 4c 89 f8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 85 01 00 00 41 89 1f 45 31 ff e9 f4 00
RSP: 0018:ffff8881efbcf9c8 EFLAGS: 00010207
RAX: 0000000000000011 RBX: 0000000000000000 RCX: ffff8881f31dcec0
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff8881f0b67090
RBP: ffff8881f0b6708c R08: dffffc0000000000 R09: ffffed103edeb12c
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff8881efbcfac0 R14: ffff8881f0b67010 R15: 000000000000008c
FS:  00007fcba5fbc6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000001f4dd5000 CR4: 00000000003406a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 perf_event_init_context kernel/events/core.c:12179 [inline]
 perf_event_init_task+0x331/0x770 kernel/events/core.c:12231
 copy_process+0xf2b/0x3230 kernel/fork.c:2026
 _do_fork+0x197/0x900 kernel/fork.c:2399
 __do_sys_clone kernel/fork.c:2557 [inline]
 __se_sys_clone kernel/fork.c:2538 [inline]
 __x64_sys_clone+0x26b/0x2c0 kernel/fork.c:2538
 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x5c/0xc1
Modules linked in:
---[ end trace 283ff73b2040e566 ]---
RIP: 0010:inherit_group kernel/events/core.c:12068 [inline]
RIP: 0010:inherit_task_group+0x1bf/0x390 kernel/events/core.c:12112
Code: c5 8c 00 00 00 48 89 e8 48 c1 e8 03 42 0f b6 04 20 84 c0 0f 85 86 01 00 00 8b 5d 00 49 81 c7 8c 00 00 00 4c 89 f8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 85 01 00 00 41 89 1f 45 31 ff e9 f4 00
RSP: 0018:ffff8881efbcf9c8 EFLAGS: 00010207
RAX: 0000000000000011 RBX: 0000000000000000 RCX: ffff8881f31dcec0
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff8881f0b67090
RBP: ffff8881f0b6708c R08: dffffc0000000000 R09: ffffed103edeb12c
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff8881efbcfac0 R14: ffff8881f0b67010 R15: 000000000000008c
FS:  00007fcba5fbc6c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcba6074078 CR3: 00000001f4dd5000 CR4: 00000000003406b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	8c 00                	mov    %es,(%rax)
   2:	00 00                	add    %al,(%rax)
   4:	48 89 e8             	mov    %rbp,%rax
   7:	48 c1 e8 03          	shr    $0x3,%rax
   b:	42 0f b6 04 20       	movzbl (%rax,%r12,1),%eax
  10:	84 c0                	test   %al,%al
  12:	0f 85 86 01 00 00    	jne    0x19e
  18:	8b 5d 00             	mov    0x0(%rbp),%ebx
  1b:	49 81 c7 8c 00 00 00 	add    $0x8c,%r15
  22:	4c 89 f8             	mov    %r15,%rax
  25:	48 c1 e8 03          	shr    $0x3,%rax
* 29:	42 0f b6 04 20       	movzbl (%rax,%r12,1),%eax <-- trapping instruction
  2e:	84 c0                	test   %al,%al
  30:	0f 85 85 01 00 00    	jne    0x1bb
  36:	41 89 1f             	mov    %ebx,(%r15)
  39:	45 31 ff             	xor    %r15d,%r15d
  3c:	e9                   	.byte 0xe9
  3d:	f4                   	hlt

Crashes (22):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/16 22:41 android12-5.4 1b3143b9b166 578f7538 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in inherit_task_group
2024/06/01 12:21 android12-5.4 70fafe094510 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in inherit_task_group
2024/05/29 03:21 android12-5.4 8322246edffa 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in inherit_task_group
2024/05/25 12:29 android12-5.4 8322246edffa a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in inherit_task_group
2024/05/15 22:27 android12-5.4 51cf29fc2bfc 94b087b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in inherit_task_group
2024/05/11 05:23 android12-5.4 51cf29fc2bfc f7c35481 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in inherit_task_group
2024/04/30 13:34 android12-5.4 2d5d8240a7cb 3ce4924c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in inherit_task_group
2024/04/27 11:32 android12-5.4 2d5d8240a7cb 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in inherit_task_group
2024/04/22 16:51 android12-5.4 2d5d8240a7cb 36c961ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in inherit_task_group
2024/04/18 08:32 android12-5.4 2d5d8240a7cb af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in inherit_task_group
2024/04/17 03:19 android12-5.4 2d5d8240a7cb 18f6e127 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in inherit_task_group
2024/04/04 22:29 android12-5.4 d0d34dcb02cc 0ee3535e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in inherit_task_group
2024/04/03 18:36 android12-5.4 d0d34dcb02cc 51c4dcff .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in inherit_task_group
2024/03/28 22:25 android12-5.4 47710d1d3563 e91187ee .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in inherit_task_group
2024/03/05 19:38 android12-5.4 50cb39f34248 f39a7eed .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in inherit_task_group
2024/03/04 14:15 android12-5.4 50cb39f34248 3717835d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in inherit_task_group
2024/02/29 23: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 inherit_task_group
2024/02/21 12:32 android12-5.4 1b3143b9b166 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in inherit_task_group
2024/02/21 11:03 android12-5.4 1b3143b9b166 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in inherit_task_group
2024/02/20 08:20 android12-5.4 1b3143b9b166 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in inherit_task_group
2024/02/18 15:43 android12-5.4 1b3143b9b166 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in inherit_task_group
2024/02/15 23:57 android12-5.4 1b3143b9b166 fd39cf6f .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-perf-kasan general protection fault in inherit_task_group
* Struck through repros no longer work on HEAD.