syzbot


general protection fault in validate_mm

Status: moderation: reported on 2024/09/28 08:49
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+2eed34c267e990fd957e@syzkaller.appspotmail.com
First crash: 57d, last: 57d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 general protection fault in validate_mm 1 1272d 1272d 0/1 auto-closed as invalid on 2021/09/25 11:25
linux-4.19 general protection fault in validate_mm (2) 2 1051d 1107d 0/1 auto-closed as invalid on 2022/05/04 19:51

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc000000000f: 0000 [#1] PREEMPT SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x0000000000000078-0x000000000000007f]
CPU: 1 UID: 0 PID: 6643 Comm: syz.2.411 Not tainted 6.11.0-syzkaller-08836-gf8eb5bd9a818 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:__lock_acquire+0xe1/0x3ce0 kernel/locking/lockdep.c:5062
Code: d0 7c 08 84 d2 0f 85 96 14 00 00 8b 0d 00 30 b3 0e 85 c9 0f 84 dd 0d 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 0f 85 02 2d 00 00 49 8b 04 24 48 3d 20 b7 2d 93 0f 84
RSP: 0018:ffffc90025f975d8 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000001
RDX: 000000000000000f RSI: 1ffff92004bf2ecd RDI: 0000000000000078
RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000
R10: ffffffff901c494f R11: 0000000000000001 R12: 0000000000000078
R13: 0000000000000000 R14: 0000000000000000 R15: ffff88801f4aa440
FS:  0000000000000000(0000) GS:ffff88802b500000(0063) knlGS:000000005737a440
CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 0000000020000000 CR3: 00000000213e8000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 lock_acquire kernel/locking/lockdep.c:5822 [inline]
 lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5787
 down_read+0x9a/0x330 kernel/locking/rwsem.c:1526
 anon_vma_lock_read include/linux/rmap.h:136 [inline]
 validate_mm+0x1ba/0x4d0 mm/vma.c:562
 mmap_region+0x9ec/0x2a50 mm/mmap.c:1559
 do_mmap+0xc00/0xfc0 mm/mmap.c:496
 vm_mmap_pgoff+0x1ba/0x360 mm/util.c:588
 ksys_mmap_pgoff+0x7d/0x5c0 mm/mmap.c:542
 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline]
 __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:386
 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:411
 entry_SYSENTER_compat_after_hwframe+0x84/0x8e
RIP: 0023:0xf73ee579
Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00
RSP: 002b:00000000ffdd92d0 EFLAGS: 00000246 ORIG_RAX: 00000000000000c0
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000021000
RDX: 0000000000000000 RSI: 0000000000020022 RDI: 00000000ffffffff
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000286 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__lock_acquire+0xe1/0x3ce0 kernel/locking/lockdep.c:5062
Code: d0 7c 08 84 d2 0f 85 96 14 00 00 8b 0d 00 30 b3 0e 85 c9 0f 84 dd 0d 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 0f 85 02 2d 00 00 49 8b 04 24 48 3d 20 b7 2d 93 0f 84
RSP: 0018:ffffc90025f975d8 EFLAGS: 00010006

RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000001
RDX: 000000000000000f RSI: 1ffff92004bf2ecd RDI: 0000000000000078
RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000
R10: ffffffff901c494f R11: 0000000000000001 R12: 0000000000000078
R13: 0000000000000000 R14: 0000000000000000 R15: ffff88801f4aa440
FS:  0000000000000000(0000) GS:ffff88802b500000(0063) knlGS:000000005737a440
CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 0000000020000000 CR3: 00000000213e8000 CR4: 0000000000350ef0
----------------
Code disassembly (best guess):
   0:	d0 7c 08 84          	sarb   -0x7c(%rax,%rcx,1)
   4:	d2 0f                	rorb   %cl,(%rdi)
   6:	85 96 14 00 00 8b    	test   %edx,-0x74ffffec(%rsi)
   c:	0d 00 30 b3 0e       	or     $0xeb33000,%eax
  11:	85 c9                	test   %ecx,%ecx
  13:	0f 84 dd 0d 00 00    	je     0xdf6
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df
  23:	4c 89 e2             	mov    %r12,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 02 2d 00 00    	jne    0x2d36
  34:	49 8b 04 24          	mov    (%r12),%rax
  38:	48 3d 20 b7 2d 93    	cmp    $0xffffffff932db720,%rax
  3e:	0f                   	.byte 0xf
  3f:	84                   	.byte 0x84

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/24 08:46 upstream f8eb5bd9a818 89298aad .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in validate_mm
* Struck through repros no longer work on HEAD.