syzbot


WARNING in find_vma

Status: fixed on 2023/02/24 13:50
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+a7b60a176ec13cafb793@syzkaller.appspotmail.com
Fix commit: d6f35446d076 binder_alloc: Add missing mmap_lock calls when using the VMA 44e602b4e52f binder_alloc: add missing mmap_lock calls when using the VMA
First crash: 792d, last: 769d
Cause bisection: introduced by (bisect log) :
commit fd0016c6bd4f6287c5c5f98b6350033ebb3c9753
Author: Miguel Ojeda <ojeda@kernel.org>
Date: Sun Dec 5 18:00:43 2021 +0000

  scripts: decode_stacktrace: demangle Rust symbols

Crash: SYZFATAL: executor failed NUM times: executor NUM: failed to write control pipe: write |NUM: broken pipe (log)
Repro: C syz .config
  
Discussions (6)
Title Replies (including bot) Last reply
[PATCH 5.19 000/158] 5.19.6-rc1 review 173 (173) 2022/09/02 18:16
[PATCH 5.15 000/136] 5.15.64-rc1 review 155 (155) 2022/09/01 18:33
linux-next: manual merge of the char-misc.current tree with the mm-hotfixes tree 9 (9) 2022/08/19 22:55
[PATCH v2] binder_alloc: Add missing mmap_lock calls when using the VMA 3 (3) 2022/08/10 18:14
[syzbot] WARNING in find_vma 3 (6) 2022/08/10 13:48
[PATCH] binder_alloc: Add missing mmap_lock calls when using the VMA 6 (6) 2022/08/10 02:04

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3693 at include/linux/mmap_lock.h:155 mmap_assert_locked include/linux/mmap_lock.h:155 [inline]
WARNING: CPU: 0 PID: 3693 at include/linux/mmap_lock.h:155 find_vma+0xf8/0x270 mm/mmap.c:2255
Modules linked in:
CPU: 0 PID: 3693 Comm: syz-executor163 Not tainted 6.0.0-rc1-syzkaller-00399-g15b3f48a4339 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
RIP: 0010:mmap_assert_locked include/linux/mmap_lock.h:155 [inline]
RIP: 0010:find_vma+0xf8/0x270 mm/mmap.c:2255
Code: 49 8d bc 24 28 01 00 00 be ff ff ff ff e8 e0 2b c8 07 31 ff 89 c3 89 c6 e8 15 e4 c4 ff 85 db 0f 85 61 ff ff ff e8 48 e7 c4 ff <0f> 0b e9 55 ff ff ff e8 3c e7 c4 ff 4c 89 e7 e8 64 38 fb ff 0f 0b
RSP: 0018:ffffc90003cef530 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff8880217b0000 RSI: ffffffff81b72408 RDI: 0000000000000005
RBP: 0000000020ffc000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880777f7000
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000000
FS:  00005555570f2300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe56aeb5e8 CR3: 0000000024f5b000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 vma_lookup include/linux/mm.h:2743 [inline]
 binder_alloc_get_vma drivers/android/binder_alloc.c:340 [inline]
 binder_alloc_new_buf_locked drivers/android/binder_alloc.c:405 [inline]
 binder_alloc_new_buf+0xd6/0x18b0 drivers/android/binder_alloc.c:590
 binder_transaction+0x242e/0x9a80 drivers/android/binder.c:3187
 binder_thread_write+0x8a9/0x3220 drivers/android/binder.c:3963
 binder_ioctl_write_read drivers/android/binder.c:5024 [inline]
 binder_ioctl+0x3470/0x6d00 drivers/android/binder.c:5311
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fee2ae74469
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 00 00 90 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe56aeb5f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fee2ae74469
RDX: 0000000020000680 RSI: 00000000c0306201 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000246 R12: 000000000000a0f7
R13: 00007ffe56aeb630 R14: 00007ffe56aeb620 R15: 00007ffe56aeb614
 </TASK>

Crashes (2616):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/08/21 17:05 upstream 15b3f48a4339 26a13b38 .config console log report syz C ci-upstream-kasan-gce-root WARNING in find_vma
2022/08/08 19:33 linux-next ca688bff68bc 88e3a122 .config console log report syz C ci-upstream-linux-next-kasan-gce-root WARNING in find_vma
2022/08/29 05:47 upstream 8379c0b31fbc 07177916 .config console log report info ci-qemu-upstream WARNING in find_vma
2022/08/28 19:09 upstream 10d4879f9ef0 07177916 .config console log report info ci-upstream-kasan-gce WARNING in find_vma
2022/08/28 01:56 upstream e022620b5d05 07177916 .config console log report info ci-upstream-kasan-gce-root WARNING in find_vma
2022/08/28 01:28 upstream e022620b5d05 07177916 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in find_vma
2022/08/28 01:08 upstream e022620b5d05 07177916 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in find_vma
2022/08/28 01:07 upstream e022620b5d05 07177916 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in find_vma
2022/08/28 01:03 upstream e022620b5d05 07177916 .config console log report info ci-upstream-kasan-gce-root WARNING in find_vma
2022/08/28 00:52 upstream 89b749d8552d 07177916 .config console log report info ci-qemu-upstream WARNING in find_vma
2022/08/27 23:49 upstream e022620b5d05 07177916 .config console log report info ci-upstream-kasan-gce-root WARNING in find_vma
2022/08/27 23:17 upstream e022620b5d05 07177916 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in find_vma
2022/08/27 23:16 upstream e022620b5d05 07177916 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in find_vma
2022/08/27 21:03 upstream e022620b5d05 07177916 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in find_vma
2022/08/27 19:13 upstream e022620b5d05 07177916 .config console log report info ci-upstream-kasan-gce-root WARNING in find_vma
2022/08/26 23:37 upstream 3e5c673f0d75 e5a303f1 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in find_vma
2022/08/26 23:00 upstream 3e5c673f0d75 e5a303f1 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in find_vma
2022/08/26 21:01 upstream 3e5c673f0d75 e5a303f1 .config console log report info ci-upstream-kasan-gce WARNING in find_vma
2022/08/26 15:50 upstream 4c612826bec1 e5a303f1 .config console log report info ci-upstream-kasan-gce WARNING in find_vma
2022/08/26 10:22 upstream 4c612826bec1 15195ea3 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in find_vma
2022/08/26 08:16 upstream 4c612826bec1 15195ea3 .config console log report info ci-qemu-upstream WARNING in find_vma
2022/08/26 07:39 upstream 4c612826bec1 15195ea3 .config console log report info ci-upstream-kasan-gce-root WARNING in find_vma
2022/08/25 23:02 upstream 3f5c20055a64 9b5bf4cd .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in find_vma
2022/08/25 21:10 upstream 3f5c20055a64 9b5bf4cd .config console log report info ci-upstream-kasan-gce WARNING in find_vma
2022/08/25 04:27 upstream c40e8341e3b3 514514f6 .config console log report info ci-upstream-kasan-gce-root WARNING in find_vma
2022/08/25 01:33 upstream c40e8341e3b3 514514f6 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in find_vma
2022/08/24 19:18 upstream c40e8341e3b3 514514f6 .config console log report info ci-upstream-kasan-gce-root WARNING in find_vma
2022/08/24 16:45 upstream c40e8341e3b3 514514f6 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in find_vma
2022/08/24 09:45 upstream df0219d11b6f cea8b0f7 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in find_vma
2022/08/24 09:32 upstream df0219d11b6f cea8b0f7 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in find_vma
2022/08/24 08:50 upstream df0219d11b6f cea8b0f7 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in find_vma
2022/08/24 08:34 upstream df0219d11b6f cea8b0f7 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in find_vma
2022/08/24 07:00 upstream df0219d11b6f cea8b0f7 .config console log report info ci-upstream-kasan-gce WARNING in find_vma
2022/08/24 05:36 upstream df0219d11b6f cea8b0f7 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in find_vma
2022/08/24 04:05 upstream df0219d11b6f cea8b0f7 .config console log report info ci-upstream-kasan-gce WARNING in find_vma
2022/08/24 03:17 upstream 95607ad99b5a cea8b0f7 .config console log report info ci-qemu-upstream WARNING in find_vma
2022/08/23 09:36 upstream 072e51356cd5 26a13b38 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in find_vma
2022/08/23 01:43 upstream 1c23f9e627a7 26a13b38 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in find_vma
2022/08/23 01:30 upstream 1c23f9e627a7 26a13b38 .config console log report info ci-upstream-kasan-gce WARNING in find_vma
2022/08/22 20:41 upstream 1c23f9e627a7 26a13b38 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in find_vma
2022/08/22 19:42 upstream 1c23f9e627a7 26a13b38 .config console log report info ci-upstream-kasan-gce WARNING in find_vma
2022/08/28 01:20 upstream e022620b5d05 07177916 .config console log report info ci-upstream-kasan-gce-386 WARNING in find_vma
2022/08/28 01:03 upstream 89b749d8552d 07177916 .config console log report info ci-qemu-upstream-386 WARNING in find_vma
2022/08/27 23:39 upstream 89b749d8552d 07177916 .config console log report info ci-qemu-upstream-386 WARNING in find_vma
2022/08/27 09:11 upstream 3e5c673f0d75 07177916 .config console log report info ci-upstream-kasan-gce-386 WARNING in find_vma
2022/08/26 09:33 upstream 4c612826bec1 15195ea3 .config console log report info ci-upstream-kasan-gce-386 WARNING in find_vma
2022/08/26 06:22 upstream 4c612826bec1 15195ea3 .config console log report info ci-qemu-upstream-386 WARNING in find_vma
2022/08/26 01:22 upstream 3f5c20055a64 e5fb9cf5 .config console log report info ci-qemu-upstream-386 WARNING in find_vma
2022/08/24 07:14 upstream df0219d11b6f cea8b0f7 .config console log report info ci-upstream-kasan-gce-386 WARNING in find_vma
2022/08/23 07:14 upstream 072e51356cd5 26a13b38 .config console log report info ci-qemu-upstream-386 WARNING in find_vma
2022/08/23 03:01 upstream 1c23f9e627a7 26a13b38 .config console log report info ci-upstream-kasan-gce-386 WARNING in find_vma
2022/08/22 23:58 upstream 1c23f9e627a7 26a13b38 .config console log report info ci-upstream-kasan-gce-386 WARNING in find_vma
2022/08/16 23:52 linux-next 6c8f479764eb 7a7cb304 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in find_vma
2022/08/08 07:33 linux-next ca688bff68bc 88e3a122 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in find_vma
2022/08/08 04:27 linux-next ca688bff68bc 88e3a122 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in find_vma
2022/08/31 19:31 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a41a877bc12d 51e54e30 .config console log report info ci-upstream-gce-arm64 WARNING in find_vma
* Struck through repros no longer work on HEAD.