syzbot


general protection fault in remove_vma

Status: auto-obsoleted due to no activity on 2024/04/05 23:06
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+28ffce7d8664aefeb332@syzkaller.appspotmail.com
First crash: 111d, last: 111d

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000040: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000200-0x0000000000000207]
CPU: 0 PID: 8881 Comm: syz-executor.2 Not tainted 6.7.0-rc8-syzkaller-00174-g95c8a35f1c01 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:remove_vma+0x6c/0x170 mm/mmap.c:140
Code: 0f 85 03 01 00 00 4c 8b 63 78 4d 85 e4 74 3a e8 6a 21 bc ff 49 8d 7c 24 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 f0 00 00 00 4d 8b 64 24 08 4d 85 e4 74 0b e8 3b
RSP: 0018:ffffc900145f7c18 EFLAGS: 00010213
RAX: dffffc0000000000 RBX: ffff88808d24fd00 RCX: 0000000000000001
RDX: 0000000000000040 RSI: ffffffff81cb5126 RDI: 0000000000000207
RBP: 0000000000000001 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: 00000000000001ff
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000001822
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555a35b7a70 CR3: 000000003479e000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 exit_mmap+0x453/0xa70 mm/mmap.c:3335
 __mmput+0x12a/0x4d0 kernel/fork.c:1349
 mmput+0x62/0x70 kernel/fork.c:1371
 exit_mm kernel/exit.c:567 [inline]
 do_exit+0x9a5/0x2ad0 kernel/exit.c:856
 do_group_exit+0xd4/0x2a0 kernel/exit.c:1018
 __do_sys_exit_group kernel/exit.c:1029 [inline]
 __se_sys_exit_group kernel/exit.c:1027 [inline]
 __x64_sys_exit_group+0x3e/0x50 kernel/exit.c:1027
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f39de47cd29
Code: Unable to access opcode bytes at 0x7f39de47ccff.
RSP: 002b:00007ffeb0945598 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 000000000000001e RCX: 00007f39de47cd29
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000001 R08: 0000000000000e29 R09: 0000000000000000
R10: 0000001b32320000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000001
 </TASK>
Modules linked in:
----------------
Code disassembly (best guess):
   0:	0f 85 03 01 00 00    	jne    0x109
   6:	4c 8b 63 78          	mov    0x78(%rbx),%r12
   a:	4d 85 e4             	test   %r12,%r12
   d:	74 3a                	je     0x49
   f:	e8 6a 21 bc ff       	call   0xffbc217e
  14:	49 8d 7c 24 08       	lea    0x8(%r12),%rdi
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df
  23:	48 89 fa             	mov    %rdi,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 f0 00 00 00    	jne    0x124
  34:	4d 8b 64 24 08       	mov    0x8(%r12),%r12
  39:	4d 85 e4             	test   %r12,%r12
  3c:	74 0b                	je     0x49
  3e:	e8                   	.byte 0xe8
  3f:	3b                   	.byte 0x3b

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/06 23:05 upstream 95c8a35f1c01 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in remove_vma
* Struck through repros no longer work on HEAD.