syzbot


kernel BUG in validate_mm_rb

Status: auto-closed as invalid on 2021/10/27 12:21
Reported-by: syzbot+fa8ace605f2b9ea170c2@syzkaller.appspotmail.com
First crash: 1260d, last: 1260d
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 1062d 1062d 0/1 auto-closed as invalid on 2022/05/13 06:41
upstream kernel BUG in __vma_link_rb mm 3 1100d 1120d 0/28 auto-closed as invalid on 2022/03/05 23:59
upstream kernel BUG in validate_mm_rb mm 3 1319d 1303d 0/28 auto-closed as invalid on 2021/06/30 15:02
upstream kernel BUG at mm/mmap.c:LINE! mm 3 1542d 1559d 0/28 auto-closed as invalid on 2021/01/18 00:49
linux-4.19 kernel BUG at mm/mmap.c:LINE! 1 1591d 1591d 0/1 auto-closed as invalid on 2020/11/30 02:07
upstream kernel BUG in validate_mm mm 1 1232d 1194d 0/28 auto-closed as invalid on 2021/10/25 07:00

Sample crash report:
next ffff888000102b98 prev ffff888000102da8 mm ffff88808f057600
prot 8000000000000025 anon_vma ffff88809c035040 vm_ops ffffffff887a2e80
pgoff 14 file ffff8880997c8280 private_data 0000000000000000
flags: 0x8100071(read|mayread|maywrite|mayexec|account|softdirty)
------------[ cut here ]------------
kernel BUG at mm/mmap.c:350!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 4947 Comm: systemd-udevd Not tainted 4.19.195-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:validate_mm_rb+0x97/0xb0 mm/mmap.c:350
Code: 7d 18 4c 89 e7 e8 f9 f2 ff ff 49 89 c5 48 89 c6 4c 89 ff e8 bb ed d4 ff 4d 39 ef 74 a7 e8 a1 ec d4 ff 4c 89 e7 e8 19 22 66 06 <0f> 0b 5b 5d 41 5c 41 5d 41 5e 41 5f e9 88 ec d4 ff e8 43 b9 0a 00
RSP: 0018:ffff88823af7fdc0 EFLAGS: 00010287
RAX: 0000000000000147 RBX: ffff8880a3005b98 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dfc91 RDI: ffffed10475eff93
RBP: ffff888000102ed0 R08: 0000000000000147 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff888000102eb0
R13: 0000000000000000 R14: dffffc0000000000 R15: 0000557b01b39000
FS:  00007f05a61108c0(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000557b01e47160 CR3: 000000023a8d6000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 vma_rb_erase mm/mmap.c:457 [inline]
 detach_vmas_to_be_unmapped mm/mmap.c:2591 [inline]
 do_munmap+0x4d1/0xde0 mm/mmap.c:2780
 vm_munmap+0xda/0x140 mm/mmap.c:2800
 __do_sys_munmap mm/mmap.c:2810 [inline]
 __se_sys_munmap mm/mmap.c:2807 [inline]
 __x64_sys_munmap+0x5d/0x80 mm/mmap.c:2807
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f05a4f8b6e7
Code: c7 c0 ff ff ff ff eb 8d 48 8b 15 ac 47 2b 00 f7 d8 64 89 02 e9 5b ff ff ff 66 2e 0f 1f 84 00 00 00 00 00 b8 0b 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 81 47 2b 00 f7 d8 64 89 01 48
RSP: 002b:00007fffa06fbe88 EFLAGS: 00000206 ORIG_RAX: 000000000000000b
RAX: ffffffffffffffda RBX: 0000557b01e40100 RCX: 00007f05a4f8b6e7
RDX: 0000000000000080 RSI: 000000000080ccec RDI: 00007f05a3e19000
RBP: 0000557b01ba9d18 R08: 0000557b01e40c00 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000206 R12: 0000557b01e400e0
R13: 0000000000000000 R14: 0000000000000003 R15: 000000000000000e
Modules linked in:
---[ end trace b0f009cdb54242aa ]---
RIP: 0010:validate_mm_rb+0x97/0xb0 mm/mmap.c:350
Code: 7d 18 4c 89 e7 e8 f9 f2 ff ff 49 89 c5 48 89 c6 4c 89 ff e8 bb ed d4 ff 4d 39 ef 74 a7 e8 a1 ec d4 ff 4c 89 e7 e8 19 22 66 06 <0f> 0b 5b 5d 41 5c 41 5d 41 5e 41 5f e9 88 ec d4 ff e8 43 b9 0a 00
RSP: 0018:ffff88823af7fdc0 EFLAGS: 00010287
RAX: 0000000000000147 RBX: ffff8880a3005b98 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dfc91 RDI: ffffed10475eff93
RBP: ffff888000102ed0 R08: 0000000000000147 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff888000102eb0
R13: 0000000000000000 R14: dffffc0000000000 R15: 0000557b01b39000
FS:  00007f05a61108c0(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000557b01e47160 CR3: 000000023a8d6000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/06/29 12:20 linux-4.19.y eb575cd5d7f6 9d2ab5df .config console log report info ci2-linux-4-19 kernel BUG in validate_mm_rb
* Struck through repros no longer work on HEAD.