syzbot


KASAN: vmalloc-out-of-bounds Write in find_lock_entries

Status: auto-obsoleted due to no activity on 2024/01/23 23:53
Subsystems: ntfs3
[Documentation on labels]
Reported-by: syzbot+e498ebacfd2fd78cf7b2@syzkaller.appspotmail.com
First crash: 781d, last: 429d
Cause bisection: introduced by (bisect log) :
commit 39ad84e911c5c0e1593f3652325d279692817188
Author: Ming Qian <ming.qian@nxp.com>
Date: Wed Apr 27 09:25:58 2022 +0000

  media: imx-jpeg: Don't fill the description field in struct v4l2_fmtdesc

Crash: kernel panic: stack is corrupted in __lock_acquire (log)
Repro: C syz .config
  
Fix bisection: fixed by (bisect log) [merge commit]:
commit faf0d83e103e38e8bf7cc4e56da1a2edb9dfdf74
Author: Dave Airlie <airlied@redhat.com>
Date: Tue Mar 14 02:17:27 2023 +0000

  Merge tag 'drm-misc-next-2023-03-07' of git://anongit.freedesktop.org/drm/drm-misc into drm-next

  
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] Monthly ntfs3 report (Apr 2023) 0 (1) 2023/04/28 08:47
[syzbot] KASAN: vmalloc-out-of-bounds Write in find_lock_entries 0 (1) 2022/08/17 23:02
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 UBSAN: array-index-out-of-bounds in find_lock_entries origin:upstream missing-backport C inconclusive 2 354d 574d 0/3 upstream: reported C repro on 2023/03/09 01:13
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/01/23 22:25 42m retest repro upstream OK log
2024/01/23 22:25 23m retest repro upstream OK log
2024/01/23 22:25 20m retest repro upstream OK log
2024/01/20 12:57 23m retest repro upstream OK log
2024/01/20 12:57 22m retest repro upstream OK log
2024/01/20 12:57 23m retest repro upstream OK log
2023/11/11 23:58 34m retest repro upstream OK log
2023/11/11 23:58 32m retest repro upstream report log
2023/11/11 23:58 33m retest repro upstream OK log
2023/11/11 23:58 36m retest repro upstream report log
Fix bisection attempts (8)
Created Duration User Patch Repo Result
2023/10/02 23:25 8h03m bisect fix upstream OK (1) job log
2023/08/01 11:34 2h22m bisect fix upstream OK (0) job log log
2023/05/26 17:09 33m bisect fix upstream OK (0) job log log
2023/04/26 14:52 30m bisect fix upstream OK (0) job log log
2023/03/27 12:24 31m bisect fix upstream OK (0) job log log
2023/02/25 01:43 53m bisect fix upstream OK (0) job log log
2023/01/26 01:03 32m bisect fix upstream OK (0) job log log
2022/11/08 05:19 30m bisect fix upstream OK (0) job log log

Sample crash report:
loop0: detected capacity change from 0 to 4096
ntfs3: loop0: Different NTFS' sector size (1024) and media sector size (512)
==================================================================
BUG: KASAN: vmalloc-out-of-bounds in find_lock_entries+0xb75/0xc50 mm/filemap.c:2114
Write of size 8 at addr ffffc90003b70160 by task syz-executor426/3687

CPU: 1 PID: 3687 Comm: syz-executor426 Not tainted 6.0.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 print_address_description mm/kasan/report.c:317 [inline]
 print_report.cold+0x59/0x719 mm/kasan/report.c:433
 kasan_report+0xb1/0x1e0 mm/kasan/report.c:495
 find_lock_entries+0xb75/0xc50 mm/filemap.c:2114
 truncate_inode_pages_range+0x185/0x1510 mm/truncate.c:364
 ntfs_evict_inode+0x16/0xa0 fs/ntfs3/inode.c:1741
 evict+0x2ed/0x6b0 fs/inode.c:665
 iput_final fs/inode.c:1748 [inline]
 iput.part.0+0x55d/0x810 fs/inode.c:1774
 iput+0x58/0x70 fs/inode.c:1764
 ntfs_fill_super+0x2e89/0x37f0 fs/ntfs3/super.c:1190
 get_tree_bdev+0x440/0x760 fs/super.c:1323
 vfs_get_tree+0x89/0x2f0 fs/super.c:1530
 do_new_mount fs/namespace.c:3040 [inline]
 path_mount+0x1326/0x1e20 fs/namespace.c:3370
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount fs/namespace.c:3568 [inline]
 __x64_sys_mount+0x27f/0x300 fs/namespace.c:3568
 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:0x7ff3a13b56ba
Code: 48 c7 c2 c0 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 98 03 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 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:00007ffd0adf4ac8 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007ff3a13b56ba
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffd0adf4ae0
RBP: 00007ffd0adf4ae0 R08: 00007ffd0adf4b20 R09: 00007ffd0adf4b20
R10: 0000000000000000 R11: 0000000000000286 R12: 0000000000000004
R13: 00007ffd0adf4b20 R14: 000000000000010e R15: 0000000020001b50
 </TASK>

The buggy address belongs to the virtual mapping at
 [ffffc90003b68000, ffffc90003b71000) created by:
 kernel_clone+0xe7/0xab0 kernel/fork.c:2671

Memory state around the buggy address:
 ffffc90003b70000: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
 ffffc90003b70080: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
>ffffc90003b70100: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
                                                       ^
 ffffc90003b70180: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
 ffffc90003b70200: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
==================================================================

Crashes (61):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/03 18:25 upstream 4fe89d07dcc2 feb56351 .config strace log report syz C [disk image] [vmlinux] ci-upstream-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/10/03 03:11 upstream a962b54e162c feb56351 .config strace log report syz C [disk image] [vmlinux] ci-upstream-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/10/02 15:24 upstream b357fd1c2afc feb56351 .config strace log report syz C [disk image] [vmlinux] ci-upstream-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/10/02 03:54 upstream b357fd1c2afc feb56351 .config strace log report syz C [disk image] [vmlinux] ci-upstream-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/09/29 15:16 upstream c3e0e1e23c70 1d385642 .config strace log report syz C [disk image] [vmlinux] ci-upstream-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/09/28 23:48 upstream 49c13ed0316d e2556bc3 .config console log report syz C ci-upstream-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/09/28 08:04 upstream 46452d3786a8 75c78242 .config console log report syz C ci-upstream-kasan-gce-selinux-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/09/26 18:18 upstream f76349cf4145 d59ba983 .config console log report syz C ci-upstream-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/09/26 13:11 upstream f76349cf4145 d59ba983 .config console log report syz C ci-upstream-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/09/25 19:59 upstream 105a36f3694e 0042f2b4 .config console log report syz C [disk image] [vmlinux] ci-upstream-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/08/15 22:56 linux-next 6c8f479764eb 8dfcaa3d .config console log report syz C ci-upstream-linux-next-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/10/07 06:02 upstream ffb39098bf87 8a212197 .config console log report syz [disk image] [vmlinux] [mounted in repro] ci-upstream-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/09/13 16:35 upstream e839a756012b a08652b0 .config console log report syz ci-upstream-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/08/13 22:59 linux-next 6c8f479764eb 8dfcaa3d .config console log report syz ci-upstream-linux-next-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2023/06/26 13:53 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci e40939bbfc68 09ffe269 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 UBSAN: array-index-out-of-bounds in find_lock_entries
2023/06/15 21:00 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci f86b85033b8c 757d26ed .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 UBSAN: array-index-out-of-bounds in find_lock_entries
2022/10/08 01:28 upstream 4c86114194e6 0de35f24 .config console log report info ci-upstream-kasan-gce-selinux-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/10/07 12:08 upstream ffb39098bf87 8a212197 .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/10/07 02:09 upstream ffb39098bf87 8a212197 .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-selinux-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/10/06 16:37 upstream 833477fce7a1 131b38ac .config console log report info ci-upstream-kasan-gce-selinux-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/10/06 15:03 upstream 833477fce7a1 131b38ac .config console log report info ci-upstream-kasan-gce-selinux-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/10/05 10:38 upstream 2bca25eaeba6 267e3bb1 .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/10/05 06:40 upstream a5088ee7251e eab8f949 .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/10/02 16:44 upstream b357fd1c2afc feb56351 .config console log report info ci-upstream-kasan-gce-selinux-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/10/02 10:30 upstream b357fd1c2afc feb56351 .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/09/29 15:07 upstream c3e0e1e23c70 1d385642 .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/09/27 12:01 upstream a1375562c0a8 87840e00 .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-selinux-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/09/27 07:16 upstream 3800a713b607 10323ddf .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/09/27 07:10 upstream 3800a713b607 10323ddf .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/09/26 21:26 upstream f76349cf4145 10323ddf .config console log report info ci-qemu-upstream KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/09/26 00:46 upstream 105a36f3694e 0042f2b4 .config console log report info ci-upstream-kasan-gce-selinux-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/09/25 19:12 upstream 105a36f3694e 0042f2b4 .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/09/25 18:47 upstream 105a36f3694e 0042f2b4 .config console log report info ci-upstream-kasan-gce-selinux-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/09/25 13:18 upstream 105a36f3694e 0042f2b4 .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/09/23 08:35 upstream bf682942cd26 0042f2b4 .config console log report info ci-upstream-kasan-gce-selinux-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/09/21 06:27 upstream 60891ec99e14 c4b8ccfd .config console log report info ci-upstream-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/09/18 10:23 upstream a335366bad13 dd9a85ff .config console log report info ci-upstream-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/09/18 04:46 upstream a335366bad13 dd9a85ff .config console log report info ci-upstream-kasan-gce-selinux-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/09/16 23:14 upstream 6879c2d3b960 dd9a85ff .config console log report info ci-qemu-upstream KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/09/16 22:20 upstream 6879c2d3b960 dd9a85ff .config console log report info ci-upstream-kasan-gce-selinux-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/09/16 21:00 upstream 6879c2d3b960 dd9a85ff .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/09/15 13:58 upstream 3245cb65fd91 dd9a85ff .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-selinux-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/09/14 19:48 upstream 3245cb65fd91 b884348d .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/09/14 13:41 upstream 3245cb65fd91 b884348d .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/09/11 21:39 upstream 4ed9c1e971b1 356d8217 .config console log report info ci-upstream-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/09/10 03:06 upstream 9b4509495418 356d8217 .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-selinux-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/09/06 08:03 upstream 53e99dcff61e 9dcd38fc .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/09/04 22:44 upstream 7e18e42e4b28 28811d0a .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/08/24 16:16 upstream c40e8341e3b3 514514f6 .config console log report info ci-upstream-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/08/23 09:17 upstream 072e51356cd5 26a13b38 .config console log report info ci-upstream-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/08/17 21:40 upstream 7ebfc85e2cd7 4e72d229 .config console log report info ci-upstream-kasan-gce-selinux-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/08/17 04:07 upstream 7ebfc85e2cd7 4e72d229 .config console log report info ci-upstream-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/10/05 00:02 upstream 0326074ff465 267e3bb1 .config console log report info ci-qemu-upstream-386 KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/10/03 02:50 upstream a962b54e162c feb56351 .config console log report info ci-qemu-upstream-386 KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/10/02 20:30 upstream a962b54e162c feb56351 .config console log report info ci-qemu-upstream-386 KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/09/05 06:59 upstream 7e18e42e4b28 28811d0a .config console log report info ci-qemu-upstream-386 KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/08/18 07:42 upstream 3b06a2755758 d58e263f .config console log report info ci-qemu-upstream-386 KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/09/20 00:46 linux-next e47eb90a0a9a dd9a85ff .config console log report info [disk image] [vmlinux] ci-upstream-linux-next-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/08/31 11:59 linux-next 7fd22855300e 51e54e30 .config console log report info ci-upstream-linux-next-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2022/08/15 13:28 linux-next 6c8f479764eb 8dfcaa3d .config console log report info ci-upstream-linux-next-kasan-gce-root KASAN: vmalloc-out-of-bounds Write in find_lock_entries
2023/06/15 14:16 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci f86b85033b8c 757d26ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 UBSAN: array-index-out-of-bounds in find_lock_entries
* Struck through repros no longer work on HEAD.