syzbot


BUG: unable to handle kernel paging request in vma_interval_tree_insert

Status: premoderation: reported on 2025/08/29 08:39
Reported-by: syzbot+6c1f9b6cebf3b79739ea@syzkaller.appspotmail.com
First crash: 8h24m, last: 8h24m
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel paging request in vma_interval_tree_insert mm 8 1 2606d 2605d 0/29 auto-closed as invalid on 2019/02/22 10:26
android-5-15 KASAN: use-after-free Read in vma_interval_tree_insert (2) 19 1 644d 644d 0/2 auto-obsoleted due to no activity on 2024/02/21 22:06
android-5-15 KASAN: use-after-free Read in vma_interval_tree_insert 19 2 975d 1002d 0/2 auto-obsoleted due to no activity on 2023/04/11 01:52

Sample crash report:
BUG: unable to handle page fault for address: ffffed180000001e
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 23fff2067 P4D 23fff2067 PUD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 2857 Comm: syz-executor Tainted: G        W         5.15.189-syzkaller-android13-5.15.189_r00 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:__rb_insert lib/rbtree.c:115 [inline]
RIP: 0010:__rb_insert_augmented+0xa9/0x720 lib/rbtree.c:459
Code: 3a ff 49 8b 07 a8 01 0f 85 53 06 00 00 4c 89 65 c8 48 89 45 d0 4c 8d 70 08 4c 89 f3 48 c1 eb 03 48 b8 00 00 00 00 00 fc ff df <80> 3c 03 00 74 08 4c 89 f7 e8 79 c3 3a ff 4d 8b 26 4d 39 fc 74 34
RSP: 0018:ffffc90000a17650 EFLAGS: 00010a06
RAX: dffffc0000000000 RBX: 1ffff1180000001e RCX: dffffc0000000000
RDX: ffffffff819af460 RSI: ffff888109331aa8 RDI: ffff88811201d748
RBP: ffffc90000a176b0 R08: dffffc0000000000 R09: ffff88811201d750
R10: ffffed1022403aec R11: 1ffff11022403aea R12: ffff88811c9024f8
R13: 1ffff11024ac2c9f R14: ffff88c0000000f0 R15: ffff8881256164f8
FS:  0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffed180000001e CR3: 0000000125490000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <TASK>
 rb_insert_augmented include/linux/rbtree_augmented.h:50 [inline]
 rb_insert_augmented_cached include/linux/rbtree_augmented.h:60 [inline]
 vma_interval_tree_insert+0x317/0x330 mm/interval_tree.c:23
 __vma_link_file mm/mmap.c:674 [inline]
 vma_link+0x183/0x1e0 mm/mmap.c:700
 __mmap_region mm/mmap.c:1861 [inline]
 mmap_region+0x12a3/0x1800 mm/mmap.c:2955
 do_mmap+0x76c/0xe40 mm/mmap.c:1594
 vm_mmap_pgoff+0x1ce/0x410 mm/util.c:555
 vm_mmap+0x87/0xb0 mm/util.c:575
 elf_map+0x190/0x230 fs/binfmt_elf.c:392
 load_elf_binary+0x1082/0x2890 fs/binfmt_elf.c:1141
 search_binary_handler fs/exec.c:1755 [inline]
 exec_binprm fs/exec.c:1796 [inline]
 bprm_execve+0x795/0x1480 fs/exec.c:1865
 do_execveat_common+0x923/0xa80 fs/exec.c:1970
 do_execve fs/exec.c:2040 [inline]
 __do_sys_execve fs/exec.c:2116 [inline]
 __se_sys_execve fs/exec.c:2111 [inline]
 __x64_sys_execve+0x92/0xb0 fs/exec.c:2111
 x64_sys_call+0x919/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:60
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fd8c0b072b7
Code: Unable to access opcode bytes at RIP 0x7fd8c0b0728d.
RSP: 002b:00007fd8b8f44df8 EFLAGS: 00000206 ORIG_RAX: 000000000000003b
RAX: ffffffffffffffda RBX: 00007ffc04acaef2 RCX: 00007fd8c0b072b7
RDX: 00007ffc04ac9a40 RSI: 00007ffc04ac9c80 RDI: 00007ffc04acaef2
RBP: 00007fd8b8f44e70 R08: 00007fd8b8f44f20 R09: 0000000000000000
R10: 0000000000000008 R11: 0000000000000206 R12: 00007ffc04ac9c80
R13: 00007ffc04ac9a40 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
Modules linked in:
CR2: ffffed180000001e
---[ end trace f52c87f093f22522 ]---
RIP: 0010:__rb_insert lib/rbtree.c:115 [inline]
RIP: 0010:__rb_insert_augmented+0xa9/0x720 lib/rbtree.c:459
Code: 3a ff 49 8b 07 a8 01 0f 85 53 06 00 00 4c 89 65 c8 48 89 45 d0 4c 8d 70 08 4c 89 f3 48 c1 eb 03 48 b8 00 00 00 00 00 fc ff df <80> 3c 03 00 74 08 4c 89 f7 e8 79 c3 3a ff 4d 8b 26 4d 39 fc 74 34
RSP: 0018:ffffc90000a17650 EFLAGS: 00010a06
RAX: dffffc0000000000 RBX: 1ffff1180000001e RCX: dffffc0000000000
RDX: ffffffff819af460 RSI: ffff888109331aa8 RDI: ffff88811201d748
RBP: ffffc90000a176b0 R08: dffffc0000000000 R09: ffff88811201d750
R10: ffffed1022403aec R11: 1ffff11022403aea R12: ffff88811c9024f8
R13: 1ffff11024ac2c9f R14: ffff88c0000000f0 R15: ffff8881256164f8
FS:  0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd8c0b0728d CR3: 0000000125490000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
----------------
Code disassembly (best guess):
   0:	3a ff                	cmp    %bh,%bh
   2:	49 8b 07             	mov    (%r15),%rax
   5:	a8 01                	test   $0x1,%al
   7:	0f 85 53 06 00 00    	jne    0x660
   d:	4c 89 65 c8          	mov    %r12,-0x38(%rbp)
  11:	48 89 45 d0          	mov    %rax,-0x30(%rbp)
  15:	4c 8d 70 08          	lea    0x8(%rax),%r14
  19:	4c 89 f3             	mov    %r14,%rbx
  1c:	48 c1 eb 03          	shr    $0x3,%rbx
  20:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  27:	fc ff df
* 2a:	80 3c 03 00          	cmpb   $0x0,(%rbx,%rax,1) <-- trapping instruction
  2e:	74 08                	je     0x38
  30:	4c 89 f7             	mov    %r14,%rdi
  33:	e8 79 c3 3a ff       	call   0xff3ac3b1
  38:	4d 8b 26             	mov    (%r14),%r12
  3b:	4d 39 fc             	cmp    %r15,%r12
  3e:	74 34                	je     0x74

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/29 08:38 android13-5.15-lts f32b52534f1d d401b9d7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: unable to handle kernel paging request in vma_interval_tree_insert
* Struck through repros no longer work on HEAD.