syzbot


general protection fault in inherit_task_group

Status: upstream: reported C repro on 2023/10/28 05:24
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+683019b11d2a243bc029@syzkaller.appspotmail.com
First crash: 390d, last: 299d
Fix bisection: the issue occurs on the latest tested release (bisect log)
Crash: INFO: rcu detected stall in corrupted (log)
Repro: C syz .config
  
Bug presence (3)
Date Name Commit Repro Result
2024/01/26 linux-6.1.y (ToT) 883d1a956208 C [report] INFO: rcu detected stall in corrupted
2023/10/28 upstream (ToT) 56567a20b22b C [report] general protection fault in inherit_task_group
2024/01/26 upstream (ToT) ecb1b8288dc7 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 278d 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 389d 387d 25/28 fixed on 2023/12/21 03:45
linux-5.15 general protection fault in inherit_task_group origin:upstream C done 4 385d 390d 3/3 fixed on 2023/12/05 18:06
android-6-1 general protection fault in inherit_task_group origin:downstream C 1 138d 278d 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 22 10d 278d 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 7 26d 278d 0/2 upstream: reported C repro on 2024/02/16 23:09
Fix bisection attempts (4)
Created Duration User Patch Repo Result
2024/01/29 13:25 2h27m fix candidate upstream OK (0) job log
2024/01/27 03:16 2h09m bisect fix linux-6.1.y OK (0) job log log
2023/12/27 17:31 1h58m bisect fix linux-6.1.y OK (0) job log log
2023/11/27 11:05 2h03m bisect fix linux-6.1.y OK (0) job log 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: 16899 Comm: syz-executor297 Not tainted 6.1.60-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
RIP: 0010:inherit_group kernel/events/core.c:13296 [inline]
RIP: 0010:inherit_task_group+0x343/0x7f0 kernel/events/core.c:13343
Code: 81 c3 8c 00 00 00 48 89 d8 48 c1 e8 03 42 0f b6 04 20 84 c0 0f 85 52 04 00 00 8b 1b 49 81 c6 8c 00 00 00 4c 89 f0 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 52 04 00 00 41 89 1e e9 cb fd ff ff 4c
RSP: 0018:ffffc9000cb1f8f0 EFLAGS: 00010207
RAX: 0000000000000011 RBX: 0000000000000000 RCX: ffff888078ee1dc0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff88801f374dc0
RBP: ffff88801f374d40 R08: ffffffff81b3c25b R09: fffffbfff209185d
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff8880187cbb80 R14: 000000000000008c R15: ffff88801f374d40
FS:  00007fed8ebcd6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fed8ec38d20 CR3: 000000006be58000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 perf_event_init_context kernel/events/core.c:13412 [inline]
 perf_event_init_task+0x355/0x7a0 kernel/events/core.c:13465
 copy_process+0x1737/0x4060 kernel/fork.c:2241
 kernel_clone+0x222/0x920 kernel/fork.c:2682
 __do_sys_clone kernel/fork.c:2823 [inline]
 __se_sys_clone kernel/fork.c:2807 [inline]
 __x64_sys_clone+0x231/0x280 kernel/fork.c:2807
 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+0x63/0xcd
RIP: 0033:0x7fed8ec0c519
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:00007fed8ebcd228 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 00007fed8ec96308 RCX: 00007fed8ec0c519
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007fed8ec96300 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fed8ec9630c
R13: 0000000000000005 R14: 00007fffaa248db0 R15: 00007fffaa248e98
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:inherit_group kernel/events/core.c:13296 [inline]
RIP: 0010:inherit_task_group+0x343/0x7f0 kernel/events/core.c:13343
Code: 81 c3 8c 00 00 00 48 89 d8 48 c1 e8 03 42 0f b6 04 20 84 c0 0f 85 52 04 00 00 8b 1b 49 81 c6 8c 00 00 00 4c 89 f0 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 52 04 00 00 41 89 1e e9 cb fd ff ff 4c
RSP: 0018:ffffc9000cb1f8f0 EFLAGS: 00010207
RAX: 0000000000000011 RBX: 0000000000000000 RCX: ffff888078ee1dc0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff88801f374dc0
RBP: ffff88801f374d40 R08: ffffffff81b3c25b R09: fffffbfff209185d
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff8880187cbb80 R14: 000000000000008c R15: ffff88801f374d40
FS:  00007fed8ebcd6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fed8ec38d20 CR3: 000000006be58000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	81 c3 8c 00 00 00    	add    $0x8c,%ebx
   6:	48 89 d8             	mov    %rbx,%rax
   9:	48 c1 e8 03          	shr    $0x3,%rax
   d:	42 0f b6 04 20       	movzbl (%rax,%r12,1),%eax
  12:	84 c0                	test   %al,%al
  14:	0f 85 52 04 00 00    	jne    0x46c
  1a:	8b 1b                	mov    (%rbx),%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 20       	movzbl (%rax,%r12,1),%eax <-- trapping instruction
  2f:	84 c0                	test   %al,%al
  31:	0f 85 52 04 00 00    	jne    0x489
  37:	41 89 1e             	mov    %ebx,(%r14)
  3a:	e9 cb fd ff ff       	jmp    0xfffffe0a
  3f:	4c                   	rex.WR

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/10/28 07:13 linux-6.1.y 32c9cdbe383c 3c418d72 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf general protection fault in inherit_task_group
2023/10/28 06:05 linux-6.1.y 32c9cdbe383c 3c418d72 .config console log report syz [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf general protection fault in inherit_task_group
2023/10/28 05:23 linux-6.1.y 32c9cdbe383c 3c418d72 .config console log report syz [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf general protection fault in inherit_task_group
* Struck through repros no longer work on HEAD.