syzbot


kernel BUG in validate_mm (2)

Status: fixed on 2023/10/12 12:47
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+70b97abe3e253d1c3f8e@syzkaller.appspotmail.com
Fix commit: ae80b4041984 mm: validate the mm before dropping the mmap lock
First crash: 330d, last: 327d
Cause bisection: introduced by (bisect log) [release commit]:
commit 6995e2de6891c724bfeb2db33d7b87775f913ad1
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Sun Jun 25 23:29:58 2023 +0000

  Linux 6.4

Crash: WARNING in kthread_bind_mask (log)
Repro: C syz .config
  
Fix bisection: fixed by (bisect log) :
commit ef513aa7aa5038d2f53e9f2932af5006f37ed0b6
Author: Luca Weiss <luca@z3ntu.xyz>
Date: Thu Apr 13 23:17:49 2023 +0000

  dt-bindings: iio: adc: qcom,spmi-vadc: Allow 1/16 for pre-scaling

  
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] [mm?] kernel BUG in validate_mm (2) 2 (4) 2023/08/11 12:10
[syzbot] Monthly mm report (Jul 2023) 0 (1) 2023/07/10 12:44
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in validate_mm (3) mm C error 3 118d 118d 0/26 upstream: reported C repro on 2024/01/29 11:15
upstream kernel BUG in validate_mm_rb mm 3 1121d 1105d 0/26 auto-closed as invalid on 2021/06/30 15:02
upstream kernel BUG in validate_mm mm 1 1034d 996d 0/26 auto-closed as invalid on 2021/10/25 07:00
Last patch testing requests (1)
Created Duration User Patch Repo Result
2023/08/07 10:37 44m hdanton@sina.com https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master OK log
Cause bisection attempts (2)
Created Duration User Patch Repo Result
2023/08/08 14:02 8h25m bisect upstream job log (1) log
2023/07/02 14:48 12h02m bisect upstream error job log (0)
marked invalid by nogikh@google.com

Sample crash report:
tlb_flush_pending 0
def_flags: 0x0()
------------[ cut here ]------------
kernel BUG at mm/mmap.c:340!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 9657 Comm: syz-executor248 Not tainted 6.4.0-syzkaller-10173-ga901a3568fd2 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
RIP: 0010:validate_mm+0x4ee/0x500 mm/mmap.c:340
Code: 48 89 df e8 74 90 12 00 eb 93 e8 bd e0 b9 ff 48 c7 c7 a0 80 14 8b 89 de 44 89 f2 e8 3c bf e5 08 48 8b 7c 24 28 e8 72 97 fa ff <0f> 0b e8 7b fe e7 08 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa
RSP: 0018:ffffc900059979a0 EFLAGS: 00010282
RAX: 0000000000000333 RBX: 0000000000000015 RCX: 05509ca8c7ddb600
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc90005997ad0 R08: ffffffff816f481c R09: 1ffff92000b32e98
R10: dffffc0000000000 R11: fffff52000b32e99 R12: dffffc0000000000
R13: ffffc90005997a20 R14: 0000000000000014 R15: 00007ffe309a8000
FS:  00007f8388039700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000007c42b000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 do_vmi_align_munmap+0x13b1/0x15c0 mm/mmap.c:2561
 do_vmi_munmap+0x24d/0x2d0 mm/mmap.c:2619
 __vm_munmap+0x230/0x450 mm/mmap.c:2899
 __do_sys_munmap mm/mmap.c:2916 [inline]
 __se_sys_munmap mm/mmap.c:2913 [inline]
 __x64_sys_munmap+0x69/0x80 mm/mmap.c:2913
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f8388894eb7
Code: 00 00 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb 85 66 2e 0f 1f 84 00 00 00 00 00 90 b8 0b 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8388039078 EFLAGS: 00000246 ORIG_RAX: 000000000000000b
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f8388894eb7
RDX: 0000000000040000 RSI: 0000000000040000 RDI: 00007f837fbf8000
RBP: 00007f837fbf8000 R08: 0000000000000000 R09: 00000000000004a0
R10: 0000000000040000 R11: 0000000000000246 R12: 00007f83880396b8
R13: 00007f8388039090 R14: 00007f83880390d0 R15: 0000000000022000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:validate_mm+0x4ee/0x500 mm/mmap.c:340
Code: 48 89 df e8 74 90 12 00 eb 93 e8 bd e0 b9 ff 48 c7 c7 a0 80 14 8b 89 de 44 89 f2 e8 3c bf e5 08 48 8b 7c 24 28 e8 72 97 fa ff <0f> 0b e8 7b fe e7 08 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa
RSP: 0018:ffffc900059979a0 EFLAGS: 00010282
RAX: 0000000000000333 RBX: 0000000000000015 RCX: 05509ca8c7ddb600
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc90005997ad0 R08: ffffffff816f481c R09: 1ffff92000b32e98
R10: dffffc0000000000 R11: fffff52000b32e99 R12: dffffc0000000000
R13: ffffc90005997a20 R14: 0000000000000014 R15: 00007ffe309a8000
FS:  00007f8388039700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f83889181d8 CR3: 000000007c42b000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (217):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/03 21:49 upstream a901a3568fd2 6e553898 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in validate_mm
2023/07/03 07:57 upstream a901a3568fd2 bfc47836 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce kernel BUG in validate_mm
2023/07/03 06:32 upstream a901a3568fd2 bfc47836 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-qemu-upstream kernel BUG in validate_mm
2023/07/02 10:52 upstream f8566aa4f176 bfc47836 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root kernel BUG in validate_mm
2023/07/02 09:49 upstream dfab92f27c60 bfc47836 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in validate_mm
2023/07/02 05:50 upstream f8566aa4f176 bfc47836 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-selinux-root kernel BUG in validate_mm
2023/07/02 05:33 upstream dfab92f27c60 bfc47836 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in validate_mm
2023/07/02 01:02 upstream f8566aa4f176 bfc47836 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce kernel BUG in validate_mm
2023/07/02 00:35 upstream f8566aa4f176 bfc47836 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce kernel BUG in validate_mm
2023/07/04 03:35 upstream a901a3568fd2 6e553898 .config strace log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-badwrites-root kernel BUG in validate_mm
2023/07/04 01:01 upstream a901a3568fd2 6e553898 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-badwrites-root kernel BUG in validate_mm
2023/07/04 06:53 upstream a901a3568fd2 6e553898 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in validate_mm
2023/07/04 05:50 upstream a901a3568fd2 6e553898 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in validate_mm
2023/07/04 04:50 upstream a901a3568fd2 6e553898 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in validate_mm
2023/07/04 04:38 upstream a901a3568fd2 6e553898 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in validate_mm
2023/07/04 02:40 upstream a901a3568fd2 6e553898 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in validate_mm
2023/07/04 01:02 upstream a901a3568fd2 6e553898 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root kernel BUG in validate_mm
2023/07/04 00:58 upstream a901a3568fd2 6e553898 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root kernel BUG in validate_mm
2023/07/03 23:53 upstream a901a3568fd2 6e553898 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in validate_mm
2023/07/03 22:50 upstream a901a3568fd2 6e553898 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in validate_mm
2023/07/03 21:42 upstream a901a3568fd2 6e553898 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in validate_mm
2023/07/03 20:32 upstream a901a3568fd2 6e553898 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root kernel BUG in validate_mm
2023/07/03 19:23 upstream a901a3568fd2 6e553898 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root kernel BUG in validate_mm
2023/07/03 15:18 upstream a901a3568fd2 49fef1e5 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in validate_mm
2023/07/03 15:09 upstream a901a3568fd2 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in validate_mm
2023/07/03 13:56 upstream a901a3568fd2 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root kernel BUG in validate_mm
2023/07/03 12:40 upstream a901a3568fd2 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce kernel BUG in validate_mm
2023/07/03 11:14 upstream a901a3568fd2 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in validate_mm
2023/07/03 10:41 upstream a901a3568fd2 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in validate_mm
2023/07/03 09:25 upstream a901a3568fd2 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in validate_mm
2023/07/03 06:07 upstream a901a3568fd2 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root kernel BUG in validate_mm
2023/07/03 04:59 upstream 995b406c7e97 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in validate_mm
2023/07/03 03:57 upstream a901a3568fd2 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root kernel BUG in validate_mm
2023/07/03 00:25 upstream 995b406c7e97 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in validate_mm
2023/07/02 23:43 upstream 995b406c7e97 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in validate_mm
2023/07/02 22:42 upstream 995b406c7e97 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in validate_mm
2023/07/02 21:32 upstream 995b406c7e97 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in validate_mm
2023/07/02 20:31 upstream 995b406c7e97 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in validate_mm
2023/07/02 19:47 upstream 995b406c7e97 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root kernel BUG in validate_mm
2023/07/02 18:41 upstream 995b406c7e97 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root kernel BUG in validate_mm
2023/07/02 16:53 upstream 995b406c7e97 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root kernel BUG in validate_mm
2023/07/02 15:33 upstream dfab92f27c60 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in validate_mm
2023/07/02 14:49 upstream dfab92f27c60 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in validate_mm
2023/07/02 13:47 upstream 995b406c7e97 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root kernel BUG in validate_mm
2023/07/02 12:45 upstream dfab92f27c60 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in validate_mm
2023/07/02 11:30 upstream dfab92f27c60 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in validate_mm
2023/07/02 11:20 upstream dfab92f27c60 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in validate_mm
2023/07/02 11:15 upstream dfab92f27c60 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in validate_mm
2023/07/02 11:11 upstream dfab92f27c60 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in validate_mm
2023/07/02 11:04 upstream dfab92f27c60 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in validate_mm
2023/07/02 10:44 upstream dfab92f27c60 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in validate_mm
2023/07/02 10:28 upstream dfab92f27c60 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in validate_mm
2023/07/02 10:27 upstream dfab92f27c60 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in validate_mm
2023/07/02 10:05 upstream dfab92f27c60 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in validate_mm
2023/07/02 09:54 upstream dfab92f27c60 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in validate_mm
2023/07/02 09:49 upstream dfab92f27c60 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in validate_mm
2023/07/02 09:41 upstream f8566aa4f176 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root kernel BUG in validate_mm
2023/07/03 17:50 upstream a901a3568fd2 6e553898 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 kernel BUG in validate_mm
2023/07/03 03:10 upstream a901a3568fd2 bfc47836 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in validate_mm
2023/07/03 01:30 upstream 995b406c7e97 bfc47836 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in validate_mm
* Struck through repros no longer work on HEAD.