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: 78d, last: 7d18h
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 17 4d15h 78d 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 188d 186d 25/26 fixed on 2023/12/21 03:45
linux-6.1 general protection fault in inherit_task_group origin:upstream missing-backport C inconclusive 3 98d 189d 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 185d 190d 3/3 fixed on 2023/12/05 18:06
android-6-1 general protection fault in inherit_task_group origin:downstream C 1 7d17h 78d 0/2 upstream: reported C repro on 2024/02/17 03:28
android-5-10 general protection fault in inherit_task_group C 9 38d 78d 0/2 upstream: reported C repro on 2024/02/16 23:02
Last patch testing requests (1)
Created Duration User Patch Repo Result
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: 430 Comm: syz-executor383 Not tainted 5.15.148-syzkaller-00718-g993bed180178 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
RIP: 0010:inherit_group kernel/events/core.c:13205 [inline]
RIP: 0010:inherit_task_group+0x690/0x790 kernel/events/core.c:13252
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:ffffc90000c37968 EFLAGS: 00010207
RAX: 0000000000000011 RBX: 0000000000000000 RCX: ffff888106d962c0
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff88811ebac520
RBP: ffffc90000c379d0 R08: dffffc0000000000 R09: ffffed103ee27002
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90000c37aa0
R13: ffff88811ebac51c R14: 000000000000008c R15: dffffc0000000000
FS:  00007fb28d9606c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb28d960d58 CR3: 000000011ed1a000 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:13321 [inline]
 perf_event_init_task+0x34d/0x7a0 kernel/events/core.c:13374
 copy_process+0xfdf/0x3290 kernel/fork.c:2238
 kernel_clone+0x21e/0x9e0 kernel/fork.c:2662
 __do_sys_clone kernel/fork.c:2788 [inline]
 __se_sys_clone kernel/fork.c:2772 [inline]
 __x64_sys_clone+0x23f/0x290 kernel/fork.c:2772
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fb28d9c0469
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 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:00007fb28d960238 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 00007fb28da4a338 RCX: 00007fb28d9c0469
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000002400
RBP: 00007fb28da4a330 R08: 0000000000000000 R09: 00007fb28d9606c0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fb28da17064
R13: 0000000000000000 R14: 00007fffc3945ef0 R15: 00007fffc3945fd8
 </TASK>
Modules linked in:
---[ end trace 295c2de08af2b360 ]---
RIP: 0010:inherit_group kernel/events/core.c:13205 [inline]
RIP: 0010:inherit_task_group+0x690/0x790 kernel/events/core.c:13252
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:ffffc90000c37968 EFLAGS: 00010207
RAX: 0000000000000011 RBX: 0000000000000000 RCX: ffff888106d962c0
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff88811ebac520
RBP: ffffc90000c379d0 R08: dffffc0000000000 R09: ffffed103ee27002
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90000c37aa0
R13: ffff88811ebac51c R14: 000000000000008c R15: dffffc0000000000
FS:  00007fb28d9606c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb28d960d58 CR3: 000000011ed1a000 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 (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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/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.