loop4: detected capacity change from 0 to 4096 ================================================================== BUG: KASAN: slab-out-of-bounds in ntfs_iget5+0x120/0x2be0 fs/ntfs3/inode.c:526 Read of size 8 at addr ffff0000ecb0ff60 by task syz.4.3715/11559 CPU: 0 PID: 11559 Comm: syz.4.3715 Not tainted 5.15.178-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 print_address_description+0x7c/0x3f0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0x174/0x1e4 mm/kasan/report.c:451 __asan_report_load8_noabort+0x44/0x50 mm/kasan/report_generic.c:309 ntfs_iget5+0x120/0x2be0 fs/ntfs3/inode.c:526 ntfs_fill_super+0x199c/0x33b0 fs/ntfs3/super.c:1004 get_tree_bdev+0x360/0x54c fs/super.c:1325 ntfs_fs_get_tree+0x28/0x38 fs/ntfs3/super.c:1354 vfs_get_tree+0x90/0x274 fs/super.c:1530 do_new_mount+0x278/0x8fc fs/namespace.c:3012 path_mount+0x594/0x101c fs/namespace.c:3342 do_mount fs/namespace.c:3355 [inline] __do_sys_mount fs/namespace.c:3563 [inline] __se_sys_mount fs/namespace.c:3540 [inline] __arm64_sys_mount+0x510/0x5e0 fs/namespace.c:3540 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Allocated by task 11348: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] __kasan_slab_alloc+0x8c/0xcc mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x74/0x3f4 mm/slab.h:519 slab_alloc_node mm/slub.c:3220 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x1dc/0x45c mm/slub.c:3233 xas_alloc lib/xarray.c:374 [inline] xas_create+0xe70/0x1354 lib/xarray.c:676 xas_create_range+0x1a0/0x6d0 lib/xarray.c:716 shmem_add_to_page_cache+0x9f0/0x16a0 mm/shmem.c:735 shmem_getpage_gfp+0x1398/0x20e4 mm/shmem.c:1940 shmem_getpage mm/shmem.c:151 [inline] shmem_write_begin+0xe0/0x29c mm/shmem.c:2474 generic_perform_write+0x24c/0x520 mm/filemap.c:3785 __generic_file_write_iter+0x230/0x454 mm/filemap.c:3912 generic_file_write_iter+0xb4/0x1b8 mm/filemap.c:3944 call_write_iter include/linux/fs.h:2174 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x884/0xb44 fs/read_write.c:594 ksys_write+0x15c/0x26c fs/read_write.c:647 __do_sys_write fs/read_write.c:659 [inline] __se_sys_write fs/read_write.c:656 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:656 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Freed by task 14: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4c/0x84 mm/kasan/common.c:46 kasan_set_free_info+0x28/0x4c mm/kasan/generic.c:360 ____kasan_slab_free+0x118/0x164 mm/kasan/common.c:366 __kasan_slab_free+0x18/0x28 mm/kasan/common.c:374 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:1705 [inline] slab_free_freelist_hook+0x128/0x1ec mm/slub.c:1731 slab_free mm/slub.c:3499 [inline] kmem_cache_free+0xdc/0x3c4 mm/slub.c:3515 radix_tree_node_rcu_free+0x78/0x8c lib/radix-tree.c:302 rcu_do_batch kernel/rcu/tree.c:2523 [inline] rcu_core+0x830/0x1b34 kernel/rcu/tree.c:2763 rcu_core_si+0x10/0x1c kernel/rcu/tree.c:2776 handle_softirqs+0x384/0xdbc kernel/softirq.c:558 run_ksoftirqd+0x6c/0x29c kernel/softirq.c:925 smpboot_thread_fn+0x4b0/0x920 kernel/smpboot.c:164 kthread+0x37c/0x45c kernel/kthread.c:334 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 Last potentially related work creation: kasan_save_stack+0x38/0x68 mm/kasan/common.c:38 kasan_record_aux_stack+0xd4/0x11c mm/kasan/generic.c:348 __call_rcu kernel/rcu/tree.c:3007 [inline] call_rcu+0x118/0xb40 kernel/rcu/tree.c:3087 xa_node_free lib/xarray.c:258 [inline] xas_delete_node lib/xarray.c:494 [inline] update_node lib/xarray.c:758 [inline] xas_store+0xcc0/0x1654 lib/xarray.c:843 page_cache_delete mm/filemap.c:142 [inline] __delete_from_page_cache+0x4f8/0x6d4 mm/filemap.c:232 delete_from_page_cache+0x108/0x17c mm/filemap.c:266 truncate_inode_page+0x98/0xc8 mm/truncate.c:219 shmem_undo_range+0x448/0x1460 mm/shmem.c:960 shmem_truncate_range mm/shmem.c:1063 [inline] shmem_evict_inode+0x1c4/0x844 mm/shmem.c:1145 evict+0x418/0x894 fs/inode.c:622 iput_final fs/inode.c:1744 [inline] iput+0x744/0x824 fs/inode.c:1770 dentry_unlink_inode+0x37c/0x4bc fs/dcache.c:380 __dentry_kill+0x324/0x5e4 fs/dcache.c:586 dentry_kill+0xc8/0x250 dput+0x21c/0x458 fs/dcache.c:893 __fput+0x494/0x800 fs/file_table.c:288 ____fput+0x20/0x30 fs/file_table.c:308 task_work_run+0x130/0x1e4 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline] el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Second to last potentially related work creation: kasan_save_stack+0x38/0x68 mm/kasan/common.c:38 kasan_record_aux_stack+0xd4/0x11c mm/kasan/generic.c:348 __call_rcu kernel/rcu/tree.c:3007 [inline] call_rcu+0x118/0xb40 kernel/rcu/tree.c:3087 xa_node_free lib/xarray.c:258 [inline] xas_delete_node lib/xarray.c:494 [inline] update_node lib/xarray.c:758 [inline] xas_store+0xcc0/0x1654 lib/xarray.c:843 page_cache_delete mm/filemap.c:142 [inline] __delete_from_page_cache+0x4f8/0x6d4 mm/filemap.c:232 delete_from_page_cache+0x108/0x17c mm/filemap.c:266 truncate_inode_page+0x98/0xc8 mm/truncate.c:219 shmem_undo_range+0x448/0x1460 mm/shmem.c:960 shmem_truncate_range mm/shmem.c:1063 [inline] shmem_evict_inode+0x1c4/0x844 mm/shmem.c:1145 evict+0x418/0x894 fs/inode.c:622 iput_final fs/inode.c:1744 [inline] iput+0x744/0x824 fs/inode.c:1770 dentry_unlink_inode+0x37c/0x4bc fs/dcache.c:380 __dentry_kill+0x324/0x5e4 fs/dcache.c:586 dentry_kill+0xc8/0x250 dput+0x21c/0x458 fs/dcache.c:893 __fput+0x494/0x800 fs/file_table.c:288 ____fput+0x20/0x30 fs/file_table.c:308 task_work_run+0x130/0x1e4 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline] el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 The buggy address belongs to the object at ffff0000ecb0fc80 which belongs to the cache radix_tree_node of size 576 The buggy address is located 160 bytes to the right of 576-byte region [ffff0000ecb0fc80, ffff0000ecb0fec0) The buggy address belongs to the page: page:00000000cb260862 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x12cb0c head:00000000cb260862 order:2 compound_mapcount:0 compound_pincount:0 memcg:ffff0000c824f401 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 fffffc0003011700 0000000500000005 ffff0000c000d500 raw: 0000000000000000 0000000000170017 00000001ffffffff ffff0000c824f401 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000ecb0fe00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000ecb0fe80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff0000ecb0ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff0000ecb0ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000ecb10000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== Unable to handle kernel paging request at virtual address dfff800000000002 Mem abort info: ESR = 0x0000000096000006 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x06: level 2 translation fault Data abort info: ISV = 0, ISS = 0x00000006 CM = 0, WnR = 0 [dfff800000000002] address between user and kernel address ranges Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 11559 Comm: syz.4.3715 Tainted: G B 5.15.178-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : ntfs_iget5+0x12c/0x2be0 fs/ntfs3/inode.c:526 lr : ntfs_iget5+0x120/0x2be0 fs/ntfs3/inode.c:526 sp : ffff800020787560 x29: ffff8000207877a0 x28: ffff0000d1c88000 x27: ffff800011fa0460 x26: dfff800000000000 x25: ffff800020787970 x24: ffff7000040f0ee0 x23: 0000000000000002 x22: 0000000000000002 x21: ffff0000ecb10190 x20: 0000000000000010 x19: ffff800020787700 x18: 1fffe0003682eb8e x17: 1fffe0003682eb8e x16: ffff800011b4d424 x15: ffff800014c0fac0 x14: ffff0001b4175c80 x13: ffff0001b4175c7c x12: 0000000000080000 x11: 000000000007ffff x10: ffff800026e8a000 x9 : 0000000000000000 x8 : 0000000000000002 x7 : 0000000000000000 x6 : ffff80000826abe0 x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff80000819c3f0 x2 : 0000000000000001 x1 : 0000000000000001 x0 : 0000000000000001 Call trace: ntfs_iget5+0x12c/0x2be0 fs/ntfs3/inode.c:526 ntfs_fill_super+0x199c/0x33b0 fs/ntfs3/super.c:1004 get_tree_bdev+0x360/0x54c fs/super.c:1325 ntfs_fs_get_tree+0x28/0x38 fs/ntfs3/super.c:1354 vfs_get_tree+0x90/0x274 fs/super.c:1530 do_new_mount+0x278/0x8fc fs/namespace.c:3012 path_mount+0x594/0x101c fs/namespace.c:3342 do_mount fs/namespace.c:3355 [inline] __do_sys_mount fs/namespace.c:3563 [inline] __se_sys_mount fs/namespace.c:3540 [inline] __arm64_sys_mount+0x510/0x5e0 fs/namespace.c:3540 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Code: 97c993b2 f9400288 91004114 d343fe88 (38fa6908) ---[ end trace e0945c29f70890ae ]--- ---------------- Code disassembly (best guess): 0: 97c993b2 bl 0xffffffffff264ec8 4: f9400288 ldr x8, [x20] 8: 91004114 add x20, x8, #0x10 c: d343fe88 lsr x8, x20, #3 * 10: 38fa6908 ldrsb w8, [x8, x26] <-- trapping instruction