================================================================================ UBSAN: array-index-out-of-bounds in mm/filemap.c:2103:11 index 254 is out of range for type 'struct folio *[15]' CPU: 0 PID: 9471 Comm: syz-executor.5 Not tainted 6.5.0-rc1-syzkaller-00259-g831fe284d827 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:233 show_stack+0x2c/0x44 arch/arm64/kernel/stacktrace.c:240 __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+0xfc/0x148 lib/ubsan.c:348 find_lock_entries+0xca0/0xd84 mm/filemap.c:2103 truncate_inode_pages_range+0x1b0/0xf74 mm/truncate.c:364 truncate_inode_pages mm/truncate.c:449 [inline] truncate_inode_pages_final+0x90/0xc0 mm/truncate.c:484 ntfs_evict_inode+0x20/0x48 fs/ntfs3/inode.c:1790 evict+0x260/0x68c fs/inode.c:665 iput_final fs/inode.c:1791 [inline] iput+0x734/0x818 fs/inode.c:1817 ntfs_fill_super+0x3648/0x3f90 fs/ntfs3/super.c:1420 get_tree_bdev+0x378/0x570 fs/super.c:1318 ntfs_fs_get_tree+0x28/0x38 fs/ntfs3/super.c:1647 vfs_get_tree+0x90/0x274 fs/super.c:1519 do_new_mount+0x25c/0x8c8 fs/namespace.c:3335 path_mount+0x590/0xe04 fs/namespace.c:3662 do_mount fs/namespace.c:3675 [inline] __do_sys_mount fs/namespace.c:3884 [inline] __se_sys_mount fs/namespace.c:3861 [inline] __arm64_sys_mount+0x45c/0x594 fs/namespace.c:3861 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x244 arch/arm64/kernel/syscall.c:139 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:188 el0_svc+0x4c/0x160 arch/arm64/kernel/entry-common.c:647 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:665 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 ================================================================================ Unable to handle kernel paging request at virtual address dfff9ffff526d727 KASAN: probably user-memory-access in range [0x0000ffffa936b938-0x0000ffffa936b93f] Mem abort info: ESR = 0x0000000096000004 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x04: level 0 translation fault Data abort info: ISV = 0, ISS = 0x00000004, ISS2 = 0x00000000 CM = 0, WnR = 0, TnD = 0, TagAccess = 0 GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0 [dfff9ffff526d727] address between user and kernel address ranges Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 9471 Comm: syz-executor.5 Not tainted 6.5.0-rc1-syzkaller-00259-g831fe284d827 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : PageTail include/linux/page-flags.h:284 [inline] pc : folio_flags include/linux/page-flags.h:311 [inline] pc : folio_test_head include/linux/page-flags.h:769 [inline] pc : folio_test_large include/linux/page-flags.h:790 [inline] pc : folio_test_hugetlb+0x2c/0xf4 mm/hugetlb.c:2061 lr : folio_test_hugetlb+0x24/0xf4 mm/hugetlb.c:2060 sp : ffff8000966471d0 x29: ffff8000966471d0 x28: 0000000000000000 x27: ffff8000966472a8 x26: ffff8000966472b8 x25: dfff800000000000 x24: ffff800096647560 x23: 1ffff00012cc8e84 x22: fffffffffffffffe x21: dfff800000000000 x20: 0000ffffa936b938 x19: 0000ffffa936b930 x18: 1fffe00036854dc6 x17: ffff80008dd0d000 x16: ffff80008a46f1b0 x15: ffff700012120890 x14: 1ffff00012120890 x13: 0000000000000004 x12: ffffffffffffffff x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000 x8 : 00001ffff526d727 x7 : ffff80008028f0f4 x6 : 0000000000000000 x5 : 0000000000000001 x4 : 0000000000000001 x3 : ffff8000801bba48 x2 : 0000000000000001 x1 : 0000000000000000 x0 : 0000ffffa936b930 Call trace: PageTail include/linux/page-flags.h:284 [inline] folio_flags include/linux/page-flags.h:311 [inline] folio_test_head include/linux/page-flags.h:769 [inline] folio_test_large include/linux/page-flags.h:790 [inline] folio_test_hugetlb+0x2c/0xf4 mm/hugetlb.c:2061 find_lock_entries+0xaf4/0xd84 mm/filemap.c:2104 truncate_inode_pages_range+0x1b0/0xf74 mm/truncate.c:364 truncate_inode_pages mm/truncate.c:449 [inline] truncate_inode_pages_final+0x90/0xc0 mm/truncate.c:484 ntfs_evict_inode+0x20/0x48 fs/ntfs3/inode.c:1790 evict+0x260/0x68c fs/inode.c:665 iput_final fs/inode.c:1791 [inline] iput+0x734/0x818 fs/inode.c:1817 ntfs_fill_super+0x3648/0x3f90 fs/ntfs3/super.c:1420 get_tree_bdev+0x378/0x570 fs/super.c:1318 ntfs_fs_get_tree+0x28/0x38 fs/ntfs3/super.c:1647 vfs_get_tree+0x90/0x274 fs/super.c:1519 do_new_mount+0x25c/0x8c8 fs/namespace.c:3335 path_mount+0x590/0xe04 fs/namespace.c:3662 do_mount fs/namespace.c:3675 [inline] __do_sys_mount fs/namespace.c:3884 [inline] __se_sys_mount fs/namespace.c:3861 [inline] __arm64_sys_mount+0x45c/0x594 fs/namespace.c:3861 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x244 arch/arm64/kernel/syscall.c:139 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:188 el0_svc+0x4c/0x160 arch/arm64/kernel/entry-common.c:647 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:665 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 Code: f2fbfff5 97ee9438 91002274 d343fe88 (38756908) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: f2fbfff5 movk x21, #0xdfff, lsl #48 4: 97ee9438 bl 0xffffffffffba50e4 8: 91002274 add x20, x19, #0x8 c: d343fe88 lsr x8, x20, #3 * 10: 38756908 ldrb w8, [x8, x21] <-- trapping instruction