loop2: detected capacity change from 0 to 4096 ================================================================== BUG: KASAN: slab-out-of-bounds in ntfs_iget5+0x120/0x2b1c fs/ntfs3/inode.c:533 Read of size 8 at addr ffff00013001ff60 by task syz-executor.2/13957 CPU: 1 PID: 13957 Comm: syz-executor.2 Not tainted 6.6.0-rc3-syzkaller-gbf6547d8715b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/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 print_address_description mm/kasan/report.c:364 [inline] print_report+0x174/0x514 mm/kasan/report.c:475 kasan_report+0xd8/0x138 mm/kasan/report.c:588 __asan_report_load8_noabort+0x20/0x2c mm/kasan/report_generic.c:381 ntfs_iget5+0x120/0x2b1c fs/ntfs3/inode.c:533 ntfs_fill_super+0x2360/0x3ed4 fs/ntfs3/super.c:1213 get_tree_bdev+0x33c/0x4a8 fs/super.c:1577 ntfs_fs_get_tree+0x28/0x38 fs/ntfs3/super.c:1637 vfs_get_tree+0x90/0x288 fs/super.c:1750 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:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x58/0x16c arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 Allocated by task 13921: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x7c mm/kasan/common.c:52 kasan_save_alloc_info+0x24/0x30 mm/kasan/generic.c:511 __kasan_slab_alloc+0x74/0x8c mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook+0x90/0x4a0 mm/slab.h:762 slab_alloc_node mm/slub.c:3478 [inline] slab_alloc mm/slub.c:3486 [inline] __kmem_cache_alloc_lru mm/slub.c:3493 [inline] kmem_cache_alloc_lru+0x194/0x394 mm/slub.c:3509 alloc_inode_sb include/linux/fs.h:2868 [inline] ntfs_alloc_inode+0x2c/0x80 fs/ntfs3/super.c:546 alloc_inode fs/inode.c:259 [inline] iget5_locked+0xa4/0x234 fs/inode.c:1269 ntfs_iget5+0xc0/0x2b1c fs/ntfs3/inode.c:525 ntfs_security_init+0x10c/0xa3c fs/ntfs3/fsntfs.c:1864 ntfs_fill_super+0x3840/0x3ed4 fs/ntfs3/super.c:1468 get_tree_bdev+0x33c/0x4a8 fs/super.c:1577 ntfs_fs_get_tree+0x28/0x38 fs/ntfs3/super.c:1637 vfs_get_tree+0x90/0x288 fs/super.c:1750 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:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x58/0x16c arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 Freed by task 6115: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x7c mm/kasan/common.c:52 kasan_save_free_info+0x38/0x5c mm/kasan/generic.c:522 ____kasan_slab_free+0x144/0x1c0 mm/kasan/common.c:236 __kasan_slab_free+0x18/0x28 mm/kasan/common.c:244 kasan_slab_free include/linux/kasan.h:164 [inline] slab_free_hook mm/slub.c:1800 [inline] slab_free_freelist_hook mm/slub.c:1826 [inline] slab_free mm/slub.c:3809 [inline] kmem_cache_free+0x2e4/0x56c mm/slub.c:3831 ntfs_free_inode+0x34/0x44 fs/ntfs3/super.c:561 i_callback+0x50/0x78 fs/inode.c:248 rcu_do_batch kernel/rcu/tree.c:2139 [inline] rcu_core+0x8a4/0x1b28 kernel/rcu/tree.c:2403 rcu_core_si+0x10/0x1c kernel/rcu/tree.c:2420 __do_softirq+0x2d0/0xd54 kernel/softirq.c:553 Last potentially related work creation: kasan_save_stack+0x40/0x6c mm/kasan/common.c:45 __kasan_record_aux_stack+0xcc/0xe8 mm/kasan/generic.c:492 kasan_record_aux_stack_noalloc+0x14/0x20 mm/kasan/generic.c:502 __call_rcu_common kernel/rcu/tree.c:2653 [inline] call_rcu+0x104/0xaf4 kernel/rcu/tree.c:2767 destroy_inode fs/inode.c:314 [inline] evict+0x5fc/0x68c fs/inode.c:679 iput_final fs/inode.c:1775 [inline] iput+0x734/0x818 fs/inode.c:1801 ntfs3_put_sbi+0x94/0x184 fs/ntfs3/super.c:583 ntfs_put_super+0xd8/0xf0 fs/ntfs3/super.c:631 generic_shutdown_super+0x130/0x2b8 fs/super.c:693 kill_block_super+0x40/0x74 fs/super.c:1646 ntfs3_kill_sb+0x44/0x17c fs/ntfs3/super.c:1727 deactivate_locked_super+0xac/0x12c fs/super.c:481 deactivate_super+0xe0/0x100 fs/super.c:514 cleanup_mnt+0x34c/0x3dc fs/namespace.c:1254 __cleanup_mnt+0x20/0x30 fs/namespace.c:1261 task_work_run+0x230/0x2e0 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] do_notify_resume+0x2184/0x3c94 arch/arm64/kernel/signal.c:1305 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:144 [inline] el0_svc+0xa0/0x16c arch/arm64/kernel/entry-common.c:679 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 Second to last potentially related work creation: kasan_save_stack+0x40/0x6c mm/kasan/common.c:45 __kasan_record_aux_stack+0xcc/0xe8 mm/kasan/generic.c:492 kasan_record_aux_stack_noalloc+0x14/0x20 mm/kasan/generic.c:502 __call_rcu_common kernel/rcu/tree.c:2653 [inline] call_rcu+0x104/0xaf4 kernel/rcu/tree.c:2767 destroy_inode fs/inode.c:314 [inline] evict+0x5fc/0x68c fs/inode.c:679 iput_final fs/inode.c:1775 [inline] iput+0x734/0x818 fs/inode.c:1801 ntfs3_put_sbi+0xc8/0x184 fs/ntfs3/super.c:586 ntfs_put_super+0xd8/0xf0 fs/ntfs3/super.c:631 generic_shutdown_super+0x130/0x2b8 fs/super.c:693 kill_block_super+0x40/0x74 fs/super.c:1646 ntfs3_kill_sb+0x44/0x17c fs/ntfs3/super.c:1727 deactivate_locked_super+0xac/0x12c fs/super.c:481 deactivate_super+0xe0/0x100 fs/super.c:514 cleanup_mnt+0x34c/0x3dc fs/namespace.c:1254 __cleanup_mnt+0x20/0x30 fs/namespace.c:1261 task_work_run+0x230/0x2e0 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] do_notify_resume+0x2184/0x3c94 arch/arm64/kernel/signal.c:1305 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:144 [inline] el0_svc+0xa0/0x16c arch/arm64/kernel/entry-common.c:679 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 The buggy address belongs to the object at ffff00013001f600 which belongs to the cache ntfs_inode_cache of size 1760 The buggy address is located 640 bytes to the right of allocated 1760-byte region [ffff00013001f600, ffff00013001fce0) The buggy address belongs to the physical page: page:00000000e6bcc806 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x170018 head:00000000e6bcc806 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff0000c8c83001 flags: 0x5ffc00000000840(slab|head|node=0|zone=2|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 05ffc00000000840 ffff0000c46afa00 fffffc0004c0a000 dead000000000002 raw: 0000000000000000 0000000080110011 00000001ffffffff ffff0000c8c83001 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff00013001fe00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff00013001fe80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff00013001ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff00013001ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff000130020000: 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 KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017] Mem abort info: ESR = 0x0000000096000005 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x05: level 1 translation fault Data abort info: ISV = 0, ISS = 0x00000005, ISS2 = 0x00000000 CM = 0, WnR = 0, TnD = 0, TagAccess = 0 GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0 [dfff800000000002] address between user and kernel address ranges Internal error: Oops: 0000000096000005 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 13957 Comm: syz-executor.2 Tainted: G B 6.6.0-rc3-syzkaller-gbf6547d8715b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : ntfs_iget5+0x12c/0x2b1c fs/ntfs3/inode.c:533 lr : ntfs_iget5+0x120/0x2b1c fs/ntfs3/inode.c:533 sp : ffff8000980574a0 x29: ffff8000980576c0 x28: ffff0000db2c6000 x27: ffff80008aaa1760 x26: dfff800000000000 x25: ffff800098057950 x24: ffff70001300aec4 x23: 000000000000000a x22: 0000000000000002 x21: ffff000130020190 x20: 0000000000000010 x19: ffff800098057620 x18: 1fffe000368379ce x17: ffff80008e19d000 x16: ffff80008a629a3c x15: 0000000000000001 x14: 1ffff00012217940 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000040000 x10: 000000000003ffff x9 : 0000000000000000 x8 : 0000000000000002 x7 : 1fffe000368379cf x6 : ffff800080297618 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff8000801c1ce8 x2 : 0000000000000001 x1 : 0000000000000000 x0 : 0000000000000001 Call trace: ntfs_iget5+0x12c/0x2b1c fs/ntfs3/inode.c:533 ntfs_fill_super+0x2360/0x3ed4 fs/ntfs3/super.c:1213 get_tree_bdev+0x33c/0x4a8 fs/super.c:1577 ntfs_fs_get_tree+0x28/0x38 fs/ntfs3/super.c:1637 vfs_get_tree+0x90/0x288 fs/super.c:1750 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:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x58/0x16c arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 Code: 97ca2b32 f9400288 91004114 d343fe88 (38fa6908) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: 97ca2b32 bl 0xffffffffff28acc8 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