EXT4-fs (loop3): orphan cleanup on readonly fs ================================================================== BUG: KASAN: slab-out-of-bounds in __ext4_iget+0x26c/0x3338 fs/ext4/inode.c:4708 Read of size 8 at addr ffff0000dcd9dfd0 by task syz-executor.3/20922 CPU: 1 PID: 20922 Comm: syz-executor.3 Not tainted 6.6.0-rc3-syzkaller-g2e530aeb342b #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 __ext4_iget+0x26c/0x3338 fs/ext4/inode.c:4708 ext4_quota_enable fs/ext4/super.c:7038 [inline] ext4_enable_quotas+0x45c/0x988 fs/ext4/super.c:7074 ext4_orphan_cleanup+0x45c/0x1134 fs/ext4/orphan.c:432 __ext4_fill_super fs/ext4/super.c:5582 [inline] ext4_fill_super+0x4fa0/0x56ec fs/ext4/super.c:5703 get_tree_bdev+0x33c/0x4a8 fs/super.c:1577 ext4_get_tree+0x28/0x38 fs/ext4/super.c:5735 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:595 Allocated by task 18257: 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_fill_super+0x1cf8/0x3ed4 fs/ntfs3/super.c:1150 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:595 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 iget_failed+0x13c/0x188 fs/bad_inode.c:248 ntfs_read_mft fs/ntfs3/inode.c:496 [inline] ntfs_iget5+0x6dc/0x2b1c fs/ntfs3/inode.c:532 ntfs_fill_super+0x24b8/0x3ed4 fs/ntfs3/super.c:1244 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:595 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 ntfs_loadlog_and_replay+0x248/0x448 fs/ntfs3/fsntfs.c:326 ntfs_fill_super+0x2388/0x3ed4 fs/ntfs3/super.c:1222 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:595 The buggy address belongs to the object at ffff0000dcd9d880 which belongs to the cache ntfs_inode_cache of size 1760 The buggy address is located 112 bytes to the right of allocated 1760-byte region [ffff0000dcd9d880, ffff0000dcd9df60) The buggy address belongs to the physical page: page:0000000023f5330d refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11cd98 head:0000000023f5330d order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff0000d38de301 anon flags: 0x5ffc00000000840(slab|head|node=0|zone=2|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 05ffc00000000840 ffff0000c467bb40 0000000000000000 dead000000000001 raw: 0000000000000000 0000000080110011 00000001ffffffff ffff0000d38de301 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000dcd9de80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000dcd9df00: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc >ffff0000dcd9df80: fc fc fc fc fc fc fc fc fc fc fc fc 00 00 00 00 ^ ffff0000dcd9e000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000dcd9e080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== Quota error (device loop3): v2_read_header: Failed header read: expected=8 got=0 EXT4-fs warning (device loop3): ext4_enable_quotas:7082: Failed to enable quota tracking (type=0, err=-22, ino=3). Please run e2fsck to fix. EXT4-fs (loop3): Cannot turn on quotas: error -22 EXT4-fs error (device loop3): ext4_validate_block_bitmap:439: comm syz-executor.3: bg 0: block 64: padding at end of block bitmap is not set EXT4-fs error (device loop3) in ext4_mb_clear_bb:6628: Corrupt filesystem EXT4-fs (loop3): 1 orphan inode deleted EXT4-fs (loop3): mounted filesystem 00000000-0000-0000-0000-000000000000 ro without journal. Quota mode: writeback. __nla_validate_parse: 28 callbacks suppressed netlink: 3677 bytes leftover after parsing attributes in process `syz-executor.3'. netlink: 3677 bytes leftover after parsing attributes in process `syz-executor.3'. netlink: 3677 bytes leftover after parsing attributes in process `syz-executor.3'.