syzbot


kernel BUG in __vma_link_rb

Status: auto-closed as invalid on 2022/03/05 23:59
Reported-by: syzbot+e2fa2124a8cc71ca2706@syzkaller.appspotmail.com
First crash: 318d, last: 294d
similar bugs (6):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 kernel BUG in validate_mm_rb (2) 1 256d 256d 0/1 auto-closed as invalid on 2022/05/13 06:41
upstream kernel BUG at mm/mmap.c:LINE! 3 736d 752d 0/24 auto-closed as invalid on 2021/01/18 00:49
linux-4.19 kernel BUG at mm/mmap.c:LINE! 1 785d 785d 0/1 auto-closed as invalid on 2020/11/30 02:07
upstream kernel BUG in validate_mm_rb 3 512d 496d 0/24 auto-closed as invalid on 2021/06/30 15:02
upstream kernel BUG in validate_mm 1 426d 388d 0/24 auto-closed as invalid on 2021/10/25 07:00
linux-4.19 kernel BUG in validate_mm_rb 1 453d 453d 0/1 auto-closed as invalid on 2021/10/27 12:21

Sample crash report:
pgoff 0 file ffff888072975180 private_data 0000000000000000
flags: 0x180400fb(read|write|shared|mayread|maywrite|mayexec|mayshare|dontexpand|softdirty|mixedmap)
------------[ cut here ]------------
kernel BUG at mm/mmap.c:388!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 744 Comm: syz-executor.4 Not tainted 5.15.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:validate_mm_rb mm/mmap.c:386 [inline]
RIP: 0010:vma_rb_insert mm/mmap.c:458 [inline]
RIP: 0010:__vma_link_rb+0x800/0x810 mm/mmap.c:657
Code: 74 24 08 48 c7 c2 f0 02 c1 81 48 83 c4 18 5b 41 5c 41 5d 41 5e 41 5f 5d e9 1d ef 7b 02 e8 e8 6d c4 ff 4c 89 ef e8 c0 11 fc ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 55 48 89 e5 41 57
RSP: 0018:ffffc900192ffb40 EFLAGS: 00010282
RAX: 0000000000000169 RBX: 0000000000000000 RCX: d20cd74898fcc700
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007fb1b9754000 R08: ffffffff8169daf2 R09: ffffed10173467b1
R10: ffffed10173467b1 R11: 0000000000000000 R12: 0000000000000000
R13: ffff88800010e108 R14: dffffc0000000000 R15: ffff88800010e128
FS:  0000555556fc8400(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f103ab9c000 CR3: 000000014fa76000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __vma_link mm/mmap.c:683 [inline]
 vma_link+0xc0/0x1f0 mm/mmap.c:697
 mmap_region+0x126f/0x17e0 mm/mmap.c:1839
 do_mmap+0x88b/0xf30 mm/mmap.c:1575
 vm_mmap_pgoff+0x1e5/0x2f0 mm/util.c:519
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fb1bb3dcb32
Code: 00 00 00 00 00 0f 1f 00 41 f7 c1 ff 0f 00 00 75 27 55 48 89 fd 53 89 cb 48 85 ff 74 3b 41 89 da 48 89 ef b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 66 5b 5d c3 0f 1f 00 48 c7 c0 bc ff ff ff 64
RSP: 002b:00007fffe1d46578 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 0000000000020022 RCX: 00007fb1bb3dcb32
RDX: 0000000000000000 RSI: 0000000000021000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 00000000ffffffff R09: 0000000000000000
R10: 0000000000020022 R11: 0000000000000246 R12: 00007fffe1d46770
R13: 00007fb1b9153700 R14: 0000000000000000 R15: 0000000000022000
 </TASK>
Modules linked in:
---[ end trace 395ddb8e02d943e7 ]---
RIP: 0010:validate_mm_rb mm/mmap.c:386 [inline]
RIP: 0010:vma_rb_insert mm/mmap.c:458 [inline]
RIP: 0010:__vma_link_rb+0x800/0x810 mm/mmap.c:657
Code: 74 24 08 48 c7 c2 f0 02 c1 81 48 83 c4 18 5b 41 5c 41 5d 41 5e 41 5f 5d e9 1d ef 7b 02 e8 e8 6d c4 ff 4c 89 ef e8 c0 11 fc ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 55 48 89 e5 41 57
RSP: 0018:ffffc900192ffb40 EFLAGS: 00010282
RAX: 0000000000000169 RBX: 0000000000000000 RCX: d20cd74898fcc700
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007fb1b9754000 R08: ffffffff8169daf2 R09: ffffed10173467b1
R10: ffffed10173467b1 R11: 0000000000000000 R12: 0000000000000000
R13: ffff88800010e108 R14: dffffc0000000000 R15: ffff88800010e128
FS:  0000555556fc8400(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f103ab9c000 CR3: 000000014fa76000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (3):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2021/11/12 05:55 upstream 5833291ab6de 75b04091 .config log report info kernel BUG in __vma_link_rb
ci-upstream-linux-next-kasan-gce-root 2021/12/05 23:58 linux-next f81e94e91878 a617004c .config log report info kernel BUG in validate_mm_rb
ci-upstream-linux-next-kasan-gce-root 2021/11/26 23:57 linux-next f81e94e91878 63eeac02 .config log report info kernel BUG in validate_mm_rb
* Struck through repros no longer work on HEAD.