syzbot


general protection fault in inherit_task_group

Status: upstream: reported C repro on 2024/02/17 03:28
Bug presence: origin:downstream
[Documentation on labels]
Reported-by: syzbot+9097c77ec674770af1d2@syzkaller.appspotmail.com
First crash: 119d, last: 48d
Bug presence (3)
Date Name Commit Repro Result
2024/02/17 android14-6.1 (ToT) 92432f07d663 C [report] general protection fault in inherit_task_group
2024/02/17 lts (merge base) ba6f5fb46511 C Didn't crash
2024/02/17 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 13d 119d 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 229d 227d 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 140d 231d 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 226d 231d 3/3 fixed on 2023/12/05 18:06
android-5-10 general protection fault in inherit_task_group C 15 1d06h 119d 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 48d 119d 0/2 upstream: reported C repro on 2024/02/16 23:09
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/04/27 11:29 9m retest repro android14-6.1 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: 0 PID: 462 Comm: syz-executor658 Not tainted 6.1.68-syzkaller-00023-g92432f07d663 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
RIP: 0010:inherit_group kernel/events/core.c:13297 [inline]
RIP: 0010:inherit_task_group+0x690/0x790 kernel/events/core.c:13344
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:ffffc900011779a8 EFLAGS: 00010207
RAX: 0000000000000011 RBX: 0000000000000000 RCX: ffff88811ae9d100
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888121c46f70
RBP: ffffc90001177a10 R08: dffffc0000000000 R09: ffffed103ee07023
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90001177aa0
R13: ffff888121c46f6c R14: 000000000000008c R15: dffffc0000000000
FS:  00007fbe85fc86c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fbe85fa7d58 CR3: 0000000109ce7000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 perf_event_init_context kernel/events/core.c:13413 [inline]
 perf_event_init_task+0x2a1/0x5f0 kernel/events/core.c:13466
 copy_process+0x1144/0x3490 kernel/fork.c:2344
 kernel_clone+0x229/0x890 kernel/fork.c:2785
 __do_sys_clone kernel/fork.c:2928 [inline]
 __se_sys_clone kernel/fork.c:2912 [inline]
 __x64_sys_clone+0x231/0x280 kernel/fork.c:2912
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fbe86028469
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:00007fbe85fc8238 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 00007fbe860b2338 RCX: 00007fbe86028469
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000002400
RBP: 00007fbe860b2330 R08: 0000000000000000 R09: 00007fbe85fc86c0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fbe8607f064
R13: 0000000000000000 R14: 00007fff96509140 R15: 00007fff96509228
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:inherit_group kernel/events/core.c:13297 [inline]
RIP: 0010:inherit_task_group+0x690/0x790 kernel/events/core.c:13344
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:ffffc900011779a8 EFLAGS: 00010207
RAX: 0000000000000011 RBX: 0000000000000000 RCX: ffff88811ae9d100
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888121c46f70
RBP: ffffc90001177a10 R08: dffffc0000000000 R09: ffffed103ee07023
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90001177aa0
R13: ffff888121c46f6c R14: 000000000000008c R15: dffffc0000000000
FS:  00007fbe85fc86c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fbe86064110 CR3: 0000000109ce7000 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 (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/17 03:27 android14-6.1 92432f07d663 578f7538 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf general protection fault in inherit_task_group
* Struck through repros no longer work on HEAD.