syzbot


UBSAN: array-index-out-of-bounds in truncate_inode_pages_final

Status: auto-obsoleted due to no activity on 2024/11/17 01:41
Subsystems: ntfs3
[Documentation on labels]
Reported-by: syzbot+e295147e14b474e4ad70@syzkaller.appspotmail.com
First crash: 535d, last: 134d
Discussions (3)
Title Replies (including bot) Last reply
[PATCH] pagevec: Add remaining space check before adding folio to batch. 2 (2) 2023/10/03 11:40
pagevec: Fix array-index-out-of-bounds error 3 (3) 2023/08/25 02:05
[syzbot] [ntfs3?] UBSAN: array-index-out-of-bounds in truncate_inode_pages_final 0 (2) 2023/08/23 13:14
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 UBSAN: array-index-out-of-bounds in truncate_inode_pages_final origin:upstream missing-backport C inconclusive 12 132d 524d 0/3 upstream: reported C repro on 2023/07/15 18:53
upstream BUG: unable to handle kernel NULL pointer dereference in truncate_inode_pages_final ntfs3 1 816d 811d 0/28 auto-obsoleted due to no activity on 2023/01/25 10:14
linux-5.15 general protection fault in truncate_inode_pages_final 1 80d 80d 0/3 upstream: reported on 2024/10/01 13:28
Last patch testing requests (20)
Created Duration User Patch Repo Result
2024/10/18 02:49 54m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2024/10/18 02:49 52m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2024/08/09 00:50 26m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2024/08/09 00:50 24m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2024/05/30 17:37 28m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci error
2024/05/30 17:37 17m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci error
2024/04/26 20:39 26m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2024/04/26 20:39 23m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2024/03/11 18:30 32m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2024/01/10 04:03 22m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2023/08/31 15:25 32m rauji.raut@gmail.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git v6.5 report log
2023/08/30 21:03 21m rauji.raut@gmail.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git v6.5-rc7 report log
2023/08/27 01:33 8m rauji.raut@gmail.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git v6.5-rc7 error
2023/08/25 04:09 26m rauji.raut@gmail.com https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git v6.5-rc7 report log
2023/08/25 01:02 30m rauji.raut@gmail.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git v6.5-rc7 report log
2023/08/24 20:09 2h59m rauji.raut@gmail.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git v6.5-rc7 OK log
2023/08/24 09:52 1h04m coolrrsh@gmail.com patch git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2023/08/24 04:58 7m coolrrsh@gmail.com patch git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci error
2023/08/23 20:25 26m coolrrsh@gmail.com git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2023/08/23 18:44 2h20m coolrrsh@gmail.com patch git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci error

Sample crash report:
------------[ cut here ]------------
UBSAN: array-index-out-of-bounds in ./include/linux/pagevec.h:74:2
index 255 is out of range for type 'struct folio *[15]'
CPU: 0 PID: 6689 Comm: syz-executor264 Not tainted 6.8.0-rc7-syzkaller-g707081b61156 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
Call trace:
 dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:291
 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:298
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106
 dump_stack+0x1c/0x28 lib/dump_stack.c:113
 ubsan_epilogue lib/ubsan.c:217 [inline]
 __ubsan_handle_out_of_bounds+0xf8/0x148 lib/ubsan.c:347
 folio_batch_add include/linux/pagevec.h:74 [inline]
 find_lock_entries+0x8c8/0xd1c mm/filemap.c:2075
 truncate_inode_pages_range+0x1b8/0xf34 mm/truncate.c:354
 truncate_inode_pages mm/truncate.c:439 [inline]
 truncate_inode_pages_final+0x90/0xc0 mm/truncate.c:474
 ntfs_evict_inode+0x20/0x48 fs/ntfs3/inode.c:1814
 evict+0x260/0x68c fs/inode.c:665
 iput_final fs/inode.c:1739 [inline]
 iput+0x734/0x818 fs/inode.c:1765
 ntfs_fill_super+0x3254/0x3a98 fs/ntfs3/super.c:1474
 get_tree_bdev+0x320/0x470 fs/super.c:1614
 ntfs_fs_get_tree+0x28/0x38 fs/ntfs3/super.c:1695
 vfs_get_tree+0x90/0x288 fs/super.c:1779
 do_new_mount+0x278/0x900 fs/namespace.c:3352
 path_mount+0x590/0xe04 fs/namespace.c:3679
 do_mount fs/namespace.c:3692 [inline]
 __do_sys_mount fs/namespace.c:3898 [inline]
 __se_sys_mount fs/namespace.c:3875 [inline]
 __arm64_sys_mount+0x45c/0x594 fs/namespace.c:3875
 __invoke_syscall arch/arm64/kernel/syscall.c:34 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:48
 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:133
 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:152
 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712
 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730
 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598
---[ end trace ]---

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/03/29 03:55 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 707081b61156 120789fd .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 UBSAN: array-index-out-of-bounds in truncate_inode_pages_final
2023/09/22 22:24 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] [mounted in repro] ci-upstream-gce-arm64 UBSAN: array-index-out-of-bounds in truncate_inode_pages_final
2023/08/23 13:13 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 35e2132122ba b81ca3f6 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 UBSAN: array-index-out-of-bounds in truncate_inode_pages_final
2023/12/27 04:00 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci aafe7ad77b91 fb427a07 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 UBSAN: array-index-out-of-bounds in truncate_inode_pages_final
2023/07/05 12:24 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci e40939bbfc68 80298b6f .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 UBSAN: array-index-out-of-bounds in truncate_inode_pages_final
2024/03/29 20:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 707081b61156 c52bcb23 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 UBSAN: array-index-out-of-bounds in truncate_inode_pages_final
2024/02/26 17:26 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9abbc24128bc edd6a5e9 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 UBSAN: array-index-out-of-bounds in truncate_inode_pages_final
2023/12/13 22:07 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci d5b235ec8eab 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 UBSAN: array-index-out-of-bounds in truncate_inode_pages_final
2023/08/23 08:40 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 35e2132122ba b81ca3f6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 UBSAN: array-index-out-of-bounds in truncate_inode_pages_final
2023/08/18 02:39 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ac9847efd629 74b106b6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 UBSAN: array-index-out-of-bounds in truncate_inode_pages_final
2023/08/08 18:05 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 86d7896480b0 3c27dfcd .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 UBSAN: array-index-out-of-bounds in truncate_inode_pages_final
2024/05/16 15:52 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fda5695d692c ef5d53ed .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 KASAN: stack-out-of-bounds Write in truncate_inode_pages_final
* Struck through repros no longer work on HEAD.