syzbot


general protection fault in inherit_task_group

Status: upstream: reported C repro on 2024/02/16 23:09
Bug presence: origin:downstream
[Documentation on labels]
Reported-by: syzbot+f58c97f6feeb026985af@syzkaller.appspotmail.com
First crash: 413d, last: 1d18h
Bug presence (3)
Date Name Commit Repro Result
2024/02/17 android13-5.15-lts (ToT) 993bed180178 C [report] general protection fault in inherit_task_group
2024/02/17 lts (merge base) 6139f2a02fe0 C Didn't crash
2024/02/16 upstream (ToT) c1ca10ceffbb C Didn't crash
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-54 general protection fault in inherit_task_group C 42 10d 413d 0/2 upstream: reported C repro on 2024/02/16 22:46
upstream general protection fault in inherit_task_group perf C done done 4 523d 521d 25/28 fixed on 2023/12/21 03:45
linux-6.1 general protection fault in inherit_task_group origin:upstream missing-backport C inconclusive 3 433d 524d 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 519d 525d 3/3 fixed on 2023/12/05 18:06
android-6-1 general protection fault in inherit_task_group origin:downstream C 1 272d 412d 0/2 auto-obsoleted due to no activity on 2024/10/14 11:46
android-5-10 general protection fault in inherit_task_group C 25 15d 413d 0/2 upstream: reported C repro on 2024/02/16 23:02
Last patch testing requests (9)
Created Duration User Patch Repo Result
2025/02/22 18:50 6m retest repro android13-5.15-lts report log
2025/02/01 22:53 5m retest repro android13-5.15-lts report log
2024/12/30 03:04 16m retest repro android13-5.15-lts OK log
2024/12/14 18:21 13m retest repro android13-5.15-lts report log
2024/11/23 16:20 50m retest repro android13-5.15-lts report log
2024/10/15 00:27 0m retest repro android13-5.15-lts error
2024/09/14 15:23 6m retest repro android13-5.15-lts report log
2024/07/06 10:08 13m retest repro android13-5.15-lts report log
2024/04/27 09:59 4m retest repro android13-5.15-lts report log

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000011: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000088-0x000000000000008f]
CPU: 1 PID: 960 Comm: syz-executor376 Not tainted 5.15.178-syzkaller-00034-g5e1b899f19c3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:inherit_group kernel/events/core.c:13245 [inline]
RIP: 0010:inherit_task_group+0x690/0x790 kernel/events/core.c:13292
Code: 8c 00 00 00 4c 89 e8 48 c1 e8 03 42 0f b6 04 38 84 c0 0f 85 a0 00 00 00 41 8b 5d 00 49 81 c6 8c 00 00 00 4c 89 f0 48 c1 e8 03 <42> 0f b6 04 38 84 c0 0f 85 9f 00 00 00 41 89 1e e9 7d fa ff ff e8
RSP: 0018:ffffc90000b47968 EFLAGS: 00010207
RAX: 0000000000000011 RBX: 0000000000000000 RCX: ffff888117bbcf00
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff88810d9c4520
RBP: ffffc90000b479d0 R08: dffffc0000000000 R09: ffffed103ee27182
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90000b47aa0
R13: ffff88810d9c451c R14: 000000000000008c R15: dffffc0000000000
FS:  00007f6b48ce36c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6b48d9d538 CR3: 0000000123db8000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 perf_event_init_context kernel/events/core.c:13344 [inline]
 perf_event_init_task+0x26e/0x7a0 kernel/events/core.c:13414
 copy_process+0xfdf/0x3290 kernel/fork.c:2237
 kernel_clone+0x21e/0x9e0 kernel/fork.c:2661
 __do_sys_clone kernel/fork.c:2787 [inline]
 __se_sys_clone kernel/fork.c:2771 [inline]
 __x64_sys_clone+0x23f/0x290 kernel/fork.c:2771
 x64_sys_call+0x1b0/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:57
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f6b48d46f09
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 81 18 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f6b48ce3168 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f6b48d46f09
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000ab009400
RBP: 00007f6b48dd23f0 R08: 0000000000000000 R09: 00007f6b48dd23f8
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f6b48dd23fc
R13: 000000000000006e R14: 00007fff05016df0 R15: 00007fff05016ed8
 </TASK>
Modules linked in:
---[ end trace 2db7a0340ff22b66 ]---
RIP: 0010:inherit_group kernel/events/core.c:13245 [inline]
RIP: 0010:inherit_task_group+0x690/0x790 kernel/events/core.c:13292
Code: 8c 00 00 00 4c 89 e8 48 c1 e8 03 42 0f b6 04 38 84 c0 0f 85 a0 00 00 00 41 8b 5d 00 49 81 c6 8c 00 00 00 4c 89 f0 48 c1 e8 03 <42> 0f b6 04 38 84 c0 0f 85 9f 00 00 00 41 89 1e e9 7d fa ff ff e8
RSP: 0018:ffffc90000b47968 EFLAGS: 00010207
RAX: 0000000000000011 RBX: 0000000000000000 RCX: ffff888117bbcf00
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff88810d9c4520
RBP: ffffc90000b479d0 R08: dffffc0000000000 R09: ffffed103ee27182
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90000b47aa0
R13: ffff88810d9c451c R14: 000000000000008c R15: dffffc0000000000
FS:  00007f6b48ce36c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000002500 CR3: 0000000123db8000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	8c 00                	mov    %es,(%rax)
   2:	00 00                	add    %al,(%rax)
   4:	4c 89 e8             	mov    %r13,%rax
   7:	48 c1 e8 03          	shr    $0x3,%rax
   b:	42 0f b6 04 38       	movzbl (%rax,%r15,1),%eax
  10:	84 c0                	test   %al,%al
  12:	0f 85 a0 00 00 00    	jne    0xb8
  18:	41 8b 5d 00          	mov    0x0(%r13),%ebx
  1c:	49 81 c6 8c 00 00 00 	add    $0x8c,%r14
  23:	4c 89 f0             	mov    %r14,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 0f b6 04 38       	movzbl (%rax,%r15,1),%eax <-- trapping instruction
  2f:	84 c0                	test   %al,%al
  31:	0f 85 9f 00 00 00    	jne    0xd6
  37:	41 89 1e             	mov    %ebx,(%r14)
  3a:	e9 7d fa ff ff       	jmp    0xfffffabc
  3f:	e8                   	.byte 0xe8

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/04/03 05:15 android13-5.15-lts 5e1b899f19c3 c799dfdd .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf general protection fault in inherit_task_group
2024/02/16 23:08 android13-5.15-lts 993bed180178 578f7538 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf general protection fault in inherit_task_group
2024/11/29 15:45 android13-5.15-lts 548ca9fbf844 5df23865 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf general protection fault in inherit_task_group
2024/10/26 00:41 android13-5.15-lts 5e4635681cf1 045e728d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf general protection fault in inherit_task_group
2024/09/25 04:46 android13-5.15-lts b92c0d35d015 5643e0e9 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf general protection fault in inherit_task_group
2024/07/08 16:13 android13-5.15-lts db06c48ab67e cde64f7d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf general protection fault in inherit_task_group
2024/03/07 14:06 android13-5.15-lts 993bed180178 2b789849 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf general protection fault in inherit_task_group
2024/03/02 01:23 android13-5.15-lts 993bed180178 83acf9e0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf general protection fault in inherit_task_group
2024/02/28 04:36 android13-5.15-lts 993bed180178 d367cbe5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf general protection fault in inherit_task_group
* Struck through repros no longer work on HEAD.