syzbot


general protection fault in inherit_task_group

Status: upstream: reported C repro on 2024/02/16 23:02
Reported-by: syzbot+087df0cef3d1b3199a9b@syzkaller.appspotmail.com
First crash: 278d, last: 10d
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-6.1 general protection fault in inherit_task_group origin:upstream missing-backport C inconclusive 3 299d 390d 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 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-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
Last patch testing requests (5)
Created Duration User Patch Repo Result
2024/10/24 15:05 6m retest repro android13-5.10-lts report log
2024/10/14 23:43 0m retest repro android13-5.10-lts error
2024/08/15 12:44 13m retest repro android13-5.10-lts report log
2024/06/06 11:54 16m retest repro android13-5.10-lts report log
2024/03/27 10:03 5m retest repro android13-5.10-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: 0 PID: 515 Comm: syz-executor328 Not tainted 5.10.209-syzkaller-00435-gdd976ecce2ce #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
RIP: 0010:inherit_group kernel/events/core.c:12865 [inline]
RIP: 0010:inherit_task_group+0x573/0x670 kernel/events/core.c:12909
Code: 81 c3 8c 00 00 00 48 89 d8 48 c1 e8 03 42 0f b6 04 28 84 c0 0f 85 a8 00 00 00 8b 1b 49 81 c7 8c 00 00 00 4c 89 f8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 a8 00 00 00 41 89 1f 45 31 ff 44 89 f8
RSP: 0018:ffffc90000f679a8 EFLAGS: 00010207
RAX: 0000000000000011 RBX: 0000000000000000 RCX: ffff88811f0a13c0
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff88811819f890
RBP: ffffc90000f67a10 R08: dffffc0000000000 R09: ffffed103ee0ae72
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90000f67ac0
R13: dffffc0000000000 R14: ffff88811819f810 R15: 000000000000008c
FS:  00007f87cbee16c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f87cbee1d58 CR3: 00000001181ac000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 perf_event_init_context kernel/events/core.c:12976 [inline]
 perf_event_init_task+0x331/0x770 kernel/events/core.c:13028
 copy_process+0x1015/0x3340 kernel/fork.c:2157
 kernel_clone+0x21e/0x9e0 kernel/fork.c:2574
 __do_sys_clone kernel/fork.c:2700 [inline]
 __se_sys_clone kernel/fork.c:2684 [inline]
 __x64_sys_clone+0x23f/0x290 kernel/fork.c:2684
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f87cbf41469
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:00007f87cbee1238 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 00007f87cbfcb338 RCX: 00007f87cbf41469
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000002400
RBP: 00007f87cbfcb330 R08: 0000000000000000 R09: 00007f87cbee16c0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f87cbf98064
R13: 000000000000000b R14: 00007ffc722a14e0 R15: 00007ffc722a15c8
Modules linked in:
---[ end trace 65b2625825ee8ac7 ]---
RIP: 0010:inherit_group kernel/events/core.c:12865 [inline]
RIP: 0010:inherit_task_group+0x573/0x670 kernel/events/core.c:12909
Code: 81 c3 8c 00 00 00 48 89 d8 48 c1 e8 03 42 0f b6 04 28 84 c0 0f 85 a8 00 00 00 8b 1b 49 81 c7 8c 00 00 00 4c 89 f8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 a8 00 00 00 41 89 1f 45 31 ff 44 89 f8
RSP: 0018:ffffc90000f679a8 EFLAGS: 00010207
RAX: 0000000000000011 RBX: 0000000000000000 RCX: ffff88811f0a13c0
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff88811819f890
RBP: ffffc90000f67a10 R08: dffffc0000000000 R09: ffffed103ee0ae72
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90000f67ac0
R13: dffffc0000000000 R14: ffff88811819f810 R15: 000000000000008c
FS:  00007f87cbee16c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f87cbee1d58 CR3: 00000001181ac000 CR4: 00000000003506b0
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 28       	movzbl (%rax,%r13,1),%eax
  12:	84 c0                	test   %al,%al
  14:	0f 85 a8 00 00 00    	jne    0xc2
  1a:	8b 1b                	mov    (%rbx),%ebx
  1c:	49 81 c7 8c 00 00 00 	add    $0x8c,%r15
  23:	4c 89 f8             	mov    %r15,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 0f b6 04 28       	movzbl (%rax,%r13,1),%eax <-- trapping instruction
  2f:	84 c0                	test   %al,%al
  31:	0f 85 a8 00 00 00    	jne    0xdf
  37:	41 89 1f             	mov    %ebx,(%r15)
  3a:	45 31 ff             	xor    %r15d,%r15d
  3d:	44 89 f8             	mov    %r15d,%eax

Crashes (22):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/16 23:02 android13-5.10-lts dd976ecce2ce 578f7538 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-10-perf general protection fault in inherit_task_group
2024/09/23 22:24 android13-5.10-lts 8d23314f588a 89298aad .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-android-5-10-perf general protection fault in inherit_task_group
2024/11/11 15:36 android13-5.10-lts 6a01908517df 0c4b1325 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10-perf general protection fault in inherit_task_group
2024/09/23 21:29 android13-5.10-lts 8d23314f588a 89298aad .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10-perf general protection fault in inherit_task_group
2024/07/23 04:10 android13-5.10-lts 1240968f7644 708c10c4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10-perf general protection fault in inherit_task_group
2024/06/25 17:02 android13-5.10-lts b58b8f9dad93 04bd2a30 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10-perf general protection fault in inherit_task_group
2024/06/19 02:30 android13-5.10-lts b58b8f9dad93 639d6cdf .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10-perf general protection fault in inherit_task_group
2024/06/17 01:04 android13-5.10-lts e6f44899ce5d f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10-perf general protection fault in inherit_task_group
2024/06/13 23:15 android13-5.10-lts d3c4d815bf09 a9616ff5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10-perf general protection fault in inherit_task_group
2024/06/12 22:16 android13-5.10-lts d3c4d815bf09 f815599d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10-perf general protection fault in inherit_task_group
2024/06/12 17:52 android13-5.10-lts d3c4d815bf09 f815599d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10-perf general protection fault in inherit_task_group
2024/06/12 14:22 android13-5.10-lts d3c4d815bf09 f815599d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10-perf general protection fault in inherit_task_group
2024/05/23 11:36 android13-5.10-lts a8e7f812fbc1 4c2072ee .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10-perf general protection fault in inherit_task_group
2024/05/10 07:23 android13-5.10-lts 70b6ab09a34b de979bc2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10-perf general protection fault in inherit_task_group
2024/03/13 09:50 android13-5.10-lts dd976ecce2ce db5b7ff0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10-perf general protection fault in inherit_task_group
2024/03/05 15:02 android13-5.10-lts dd976ecce2ce f39a7eed .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10-perf general protection fault in inherit_task_group
2024/03/02 22:06 android13-5.10-lts dd976ecce2ce 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10-perf general protection fault in inherit_task_group
2024/03/01 00:25 android13-5.10-lts dd976ecce2ce 352ab904 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10-perf general protection fault in inherit_task_group
2024/02/27 07:47 android13-5.10-lts dd976ecce2ce 05e69c83 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10-perf general protection fault in inherit_task_group
2024/02/25 18:09 android13-5.10-lts dd976ecce2ce 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10-perf general protection fault in inherit_task_group
2024/02/21 23:27 android13-5.10-lts dd976ecce2ce 345111b5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10-perf general protection fault in inherit_task_group
2024/02/21 03:40 android13-5.10-lts dd976ecce2ce 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10-perf general protection fault in inherit_task_group
* Struck through repros no longer work on HEAD.