syzbot


general protection fault in copy_process

Status: auto-closed as invalid on 2022/05/09 22:13
Reported-by: syzbot+0c8fa9184c8f7eb1e7e7@syzkaller.appspotmail.com
First crash: 902d, last: 830d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in copy_process 1 1146d 1146d 0/1 auto-closed as invalid on 2021/06/27 14:40

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 18416 Comm: syz-executor.4 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:dup_mmap kernel/fork.c:551 [inline]
RIP: 0010:dup_mm kernel/fork.c:1285 [inline]
RIP: 0010:copy_mm kernel/fork.c:1341 [inline]
RIP: 0010:copy_process.part.0+0x5b6b/0x8260 kernel/fork.c:1913
Code: 85 4c 03 00 00 4c 8b ab 90 00 00 00 4d 85 ed 0f 84 68 d7 ff ff e8 95 32 2b 00 4c 89 e8 b9 ff ff 37 00 48 c1 e8 03 48 c1 e1 2a <80> 3c 08 00 0f 85 10 03 00 00 4d 8b 6d 00 4d 85 ed 0f 85 31 d7 ff
RSP: 0018:ffff8880910bfbd8 EFLAGS: 00010286
RAX: 00000000110d14d4 RBX: ffff88802e4ec988 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: ffffffff813752db RDI: ffff88802e4eca18
RBP: ffff8880910bfde8 R08: 0000000000000000 R09: 0000000000000020
R10: 0000000000000007 R11: 0000000048102452 R12: ffff888000149840
R13: 000000008868a6a0 R14: 0000000000000000 R15: ffff88803064aa80
FS:  00005555560fe400(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe8f6e6e3a5 CR3: 0000000097966000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 copy_process kernel/fork.c:1710 [inline]
 _do_fork+0x22f/0xf30 kernel/fork.c:2219
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fe8f5e2048b
Code: ed 0f 85 60 01 00 00 64 4c 8b 0c 25 10 00 00 00 45 31 c0 4d 8d 91 d0 02 00 00 31 d2 31 f6 bf 11 00 20 01 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 89 00 00 00 41 89 c5 85 c0 0f 85 90 00 00
RSP: 002b:00007fff33b493e0 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fe8f5e2048b
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 0000000000000001 R08: 0000000000000000 R09: 00005555560fe400
R10: 00005555560fe6d0 R11: 0000000000000246 R12: 0000000000000001
R13: 0000000000000000 R14: 0000000000000001 R15: 00007fff33b494c0
Modules linked in:
---[ end trace ef3f3f24fdc4a849 ]---
RIP: 0010:dup_mmap kernel/fork.c:551 [inline]
RIP: 0010:dup_mm kernel/fork.c:1285 [inline]
RIP: 0010:copy_mm kernel/fork.c:1341 [inline]
RIP: 0010:copy_process.part.0+0x5b6b/0x8260 kernel/fork.c:1913
Code: 85 4c 03 00 00 4c 8b ab 90 00 00 00 4d 85 ed 0f 84 68 d7 ff ff e8 95 32 2b 00 4c 89 e8 b9 ff ff 37 00 48 c1 e8 03 48 c1 e1 2a <80> 3c 08 00 0f 85 10 03 00 00 4d 8b 6d 00 4d 85 ed 0f 85 31 d7 ff
RSP: 0018:ffff8880910bfbd8 EFLAGS: 00010286
RAX: 00000000110d14d4 RBX: ffff88802e4ec988 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: ffffffff813752db RDI: ffff88802e4eca18
RBP: ffff8880910bfde8 R08: 0000000000000000 R09: 0000000000000020
R10: 0000000000000007 R11: 0000000048102452 R12: ffff888000149840
R13: 000000008868a6a0 R14: 0000000000000000 R15: ffff88803064aa80
FS:  00005555560fe400(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe8f6e6e3a5 CR3: 0000000097966000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	85 4c 03 00          	test   %ecx,0x0(%rbx,%rax,1)
   4:	00 4c 8b ab          	add    %cl,-0x55(%rbx,%rcx,4)
   8:	90                   	nop
   9:	00 00                	add    %al,(%rax)
   b:	00 4d 85             	add    %cl,-0x7b(%rbp)
   e:	ed                   	in     (%dx),%eax
   f:	0f 84 68 d7 ff ff    	je     0xffffd77d
  15:	e8 95 32 2b 00       	callq  0x2b32af
  1a:	4c 89 e8             	mov    %r13,%rax
  1d:	b9 ff ff 37 00       	mov    $0x37ffff,%ecx
  22:	48 c1 e8 03          	shr    $0x3,%rax
  26:	48 c1 e1 2a          	shl    $0x2a,%rcx
* 2a:	80 3c 08 00          	cmpb   $0x0,(%rax,%rcx,1) <-- trapping instruction
  2e:	0f 85 10 03 00 00    	jne    0x344
  34:	4d 8b 6d 00          	mov    0x0(%r13),%r13
  38:	4d 85 ed             	test   %r13,%r13
  3b:	0f                   	.byte 0xf
  3c:	85 31                	test   %esi,(%rcx)
  3e:	d7                   	xlat   %ds:(%rbx)
  3f:	ff                   	.byte 0xff

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/01/09 22:12 linux-4.19.y 3f8a27f9e27b 2ca0d385 .config console log report info ci2-linux-4-19 general protection fault in copy_process
2022/01/09 07:42 linux-4.19.y 3f8a27f9e27b 2ca0d385 .config console log report info ci2-linux-4-19 general protection fault in copy_process
2021/10/30 03:03 linux-4.19.y 3f8a27f9e27b 098b5d53 .config console log report info ci2-linux-4-19 general protection fault in copy_process
* Struck through repros no longer work on HEAD.