syzbot


WARNING in vma_merge

Status: upstream: reported C repro on 2022/04/27 12:43
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+7728e4ab5371cebc9c00@syzkaller.appspotmail.com
Fix commit: mm/mlock: use maple state in apply_mlockall_flags()
Patched on: [ci-upstream-linux-next-kasan-gce-root], missing on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-qemu2-riscv64 ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce-386-root ci-upstream-kmsan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-net-next-test-gce ci2-upstream-usb]
First crash: 718d, last: 139d
Cause bisection: introduced by (bisect log) :
commit 80207910cd71b4e0e87140d165d82b5d3ff69e53
Author: Andrey Konovalov <andreyknvl@google.com>
Date: Fri Mar 25 01:13:12 2022 +0000

  kasan: move and hide kasan_save_enable/restore_multi_shot

Crash: SYZFATAL: executor failed NUM times: executor NUM: failed to write control pipe: write |NUM: broken pipe (log)
Repro: C syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] WARNING in vma_merge 4 (7) 2022/04/28 05:13
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 WARNING in vma_merge origin:lts-only C inconclusive 459 159d 349d 0/3 upstream: reported C repro on 2023/05/01 02:50

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5025 at mm/mmap.c:934 vma_merge+0x282/0x25c0 mm/mmap.c:934
Modules linked in:
CPU: 0 PID: 5025 Comm: syz-executor320 Not tainted 6.5.0-rc7-syzkaller-00164-g382d4cd18475 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
RIP: 0010:vma_merge+0x282/0x25c0 mm/mmap.c:934
Code: 48 c1 ea 03 80 3c 02 00 0f 85 0c 1e 00 00 4d 8b 37 48 89 ee 4c 89 f7 e8 0c 0d be ff 49 39 ee 0f 84 2e 0e 00 00 e8 ee 11 be ff <0f> 0b e8 e7 11 be ff 4c 8b 74 24 08 48 89 ef 4c 89 f6 e8 e7 0c be
RSP: 0018:ffffc90003a3fc20 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff88802ac05500 RCX: 0000000000000000
RDX: ffff88807e395940 RSI: ffffffff81c7f6b2 RDI: 0000000000000006
RBP: 000000002043a000 R08: 0000000000000006 R09: 0000000020000000
R10: 000000002043a000 R11: ffffffff81da0c13 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000020000000 R15: ffff88802ac05900
FS:  00005555561d3380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000000 CR3: 00000000753c7000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 mbind_range+0x29e/0x530 mm/mempolicy.c:834
 __do_sys_set_mempolicy_home_node+0x4e1/0x840 mm/mempolicy.c:1561
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f053735b2a9
Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007ffec6bb7a38 EFLAGS: 00000246 ORIG_RAX: 00000000000001c2
RAX: ffffffffffffffda RBX: 00007ffec6bb7c18 RCX: 00007f053735b2a9
RDX: 0000000000000000 RSI: 0000000000002000 RDI: 0000000020439000
RBP: 00007f05373ce610 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffec6bb7c08 R14: 0000000000000001 R15: 0000000000000001
 </TASK>

Crashes (18115):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/26 03:32 upstream 382d4cd18475 03d9c195 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in vma_merge
2023/06/10 17:28 upstream 64569520920a 7086cdb9 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in vma_merge
2023/09/20 15:41 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe4469582053 0b6a67ac .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2022/06/10 16:37 linux-next 6d0c80680317 0d5abf15 .config strace log report syz C ci-upstream-linux-next-kasan-gce-root WARNING in vma_merge
2022/06/09 23:35 linux-next ff539ac73ea5 0d5abf15 .config strace log report syz C ci-upstream-linux-next-kasan-gce-root WARNING in vma_merge
2022/04/27 13:14 linux-next f02ac5c95dfd 1fa34c1b .config console log report syz C ci-upstream-linux-next-kasan-gce-root WARNING in vma_merge
2022/06/16 09:08 linux-next 6012273897fe 1719ee24 .config console log report syz ci-upstream-linux-next-kasan-gce-root WARNING in vma_merge
2022/05/12 17:40 linux-next 187b9ac8c348 9ad6612a .config console log report syz ci-upstream-linux-next-kasan-gce-root WARNING in vma_merge
2023/10/24 11:21 upstream 84186fcb834e af8d2e46 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in vma_merge
2023/10/15 20:19 upstream 9a3dad63edbe 6388bc36 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in vma_merge
2023/10/15 16:41 upstream 9a3dad63edbe 6388bc36 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in vma_merge
2023/10/15 15:16 upstream 9a3dad63edbe 6388bc36 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in vma_merge
2023/10/10 07:33 upstream 94f6f0550c62 c9be5398 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in vma_merge
2023/10/12 18:37 upstream 401644852d0b fc170927 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 WARNING in vma_merge
2023/10/12 17:12 upstream 401644852d0b 1b231e3c .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in vma_merge
2023/09/23 06:38 upstream 8018e02a8703 0b6a67ac .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in vma_merge
2023/09/07 04:40 upstream 744a759492b5 72324844 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64 WARNING in vma_merge
2023/06/12 11:49 upstream 858fd168a95c 49519f06 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-compat WARNING in vma_merge
2023/09/08 16:19 linux-next af3c30d33476 72324844 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in vma_merge
2023/11/27 08:31 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/27 05:52 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/27 01:48 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/26 17:18 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/26 06:18 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/24 21:33 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/24 06:13 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/24 04:59 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/23 17:16 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c fc59b78e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/23 14:33 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c fc59b78e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/23 01:00 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 03e12510 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/22 17:38 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 03e12510 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/21 23:32 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/21 11:18 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/21 04:25 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/21 01:06 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/20 18:41 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/18 22:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/18 17:58 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/17 06:43 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/16 13:16 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/16 07:58 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/15 18:13 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/15 06:30 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/14 19:30 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/14 02:02 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/13 19:49 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/13 18:38 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/13 16:29 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 6d6dbf8a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/12 19:05 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 6d6dbf8a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/12 14:21 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 6d6dbf8a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/12 01:37 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 6d6dbf8a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/11 03:23 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 6d6dbf8a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/11 01:30 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 6d6dbf8a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/10 20:02 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 45e9b83e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/10 08:50 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 45e9b83e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/09 20:13 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 56230772 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/09 19:00 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 56230772 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/09 05:52 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 4862372a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/09 03:37 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 4862372a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/09 00:32 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c df3908d6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/08 18:38 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c df3908d6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/08 16:05 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c df3908d6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/08 12:34 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 83211397 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2023/11/07 14:29 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 83211397 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in vma_merge
2022/04/27 12:06 linux-next f02ac5c95dfd 1fa34c1b .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vma_merge
2022/04/27 07:01 linux-next f02ac5c95dfd 1fa34c1b .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in vma_merge
* Struck through repros no longer work on HEAD.