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: 293d, last: 7d01h
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 22 28d 293d 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 404d 402d 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 314d 405d 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 400d 405d 3/3 fixed on 2023/12/05 18:06
android-6-1 general protection fault in inherit_task_group origin:downstream C 1 153d 293d 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 24 7d22h 293d 0/2 upstream: reported C repro on 2024/02/16 23:02
Last patch testing requests (5)
Created Duration User Patch Repo Result
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: 2948 Comm: syz-executor320 Not tainted 5.15.161-syzkaller-00425-gb92c0d35d015 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:inherit_group kernel/events/core.c:13228 [inline]
RIP: 0010:inherit_task_group+0x690/0x790 kernel/events/core.c:13275
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:ffffc90001f878c8 EFLAGS: 00010207
RAX: 0000000000000011 RBX: 0000000000000000 RCX: ffff88810e004f00
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff88810e397750
RBP: ffffc90001f87930 R08: dffffc0000000000 R09: ffffed103ee27182
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90001f87a00
R13: ffff88810e39774c R14: 000000000000008c R15: dffffc0000000000
FS:  0000555555a443c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f011b37ed58 CR3: 00000001228b3000 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+0x34d/0x7a0 kernel/events/core.c:13397
 copy_process+0xfdf/0x3290 kernel/fork.c:2238
 kernel_clone+0x21e/0x9e0 kernel/fork.c:2662
 __do_sys_clone3 kernel/fork.c:2946 [inline]
 __se_sys_clone3 kernel/fork.c:2930 [inline]
 __x64_sys_clone3+0x376/0x3a0 kernel/fork.c:2930
 x64_sys_call+0x935/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:436
 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:0x7f011b43e2d9
Code: ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 b8 ea ff ff ff 48 85 ff 74 2c 48 85 d2 74 27 49 89 c8 b8 b3 01 00 00 0f 05 <48> 85 c0 7c 18 74 01 c3 31 ed 48 83 e4 f0 4c 89 c7 ff d2 48 89 c7
RSP: 002b:00007ffc500a6a08 EFLAGS: 00000206 ORIG_RAX: 00000000000001b3
RAX: ffffffffffffffda RBX: 00007f011b3e6890 RCX: 00007f011b43e2d9
RDX: 00007f011b3e6890 RSI: 0000000000000058 RDI: 00007ffc500a6a50
RBP: 00007f011b37e6c0 R08: 00007f011b37e6c0 R09: 00007ffc500a6b37
R10: 0000000000000008 R11: 0000000000000206 R12: ffffffffffffffb0
R13: 000000000000006e R14: 00007ffc500a6a50 R15: 00007ffc500a6b38
 </TASK>
Modules linked in:
---[ end trace dddad61678f045c2 ]---
RIP: 0010:inherit_group kernel/events/core.c:13228 [inline]
RIP: 0010:inherit_task_group+0x690/0x790 kernel/events/core.c:13275
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:ffffc90001f878c8 EFLAGS: 00010207
RAX: 0000000000000011 RBX: 0000000000000000 RCX: ffff88810e004f00
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff88810e397750
RBP: ffffc90001f87930 R08: dffffc0000000000 R09: ffffed103ee27182
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90001f87a00
R13: ffff88810e39774c R14: 000000000000008c R15: dffffc0000000000
FS:  0000555555a443c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000001228b3000 CR4: 00000000003506b0
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 (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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/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/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.