EXT4-fs (loop1): 1 truncate cleaned up EXT4-fs (loop1): mounted filesystem without journal. Opts: norecovery,grpquota,debug,discard,,errors=continue. Quota mode: writeback. ================================================================== BUG: KASAN: use-after-free in ocfs2_read_quota_block+0x210/0x3b0 fs/ocfs2/quota_local.c:143 Read of size 8 at addr ffff8880676c3ff0 by task syz.1.57/4606 CPU: 0 PID: 4606 Comm: syz.1.57 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 print_address_description+0x60/0x2d0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xdf/0x130 mm/kasan/report.c:451 ocfs2_read_quota_block+0x210/0x3b0 fs/ocfs2/quota_local.c:143 ocfs2_local_check_quota_file+0x11c/0xe70 fs/ocfs2/quota_local.c:175 dquot_load_quota_sb+0x5c8/0xa80 fs/quota/dquot.c:2478 dquot_load_quota_inode+0x2d3/0x5c0 fs/quota/dquot.c:2522 ext4_quota_on+0x4e0/0x930 fs/ext4/super.c:6378 __do_sys_quotactl fs/quota/quota.c:959 [inline] __se_sys_quotactl+0x28b/0x6f0 fs/quota/quota.c:915 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f317dcf44d9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f317bf41028 EFLAGS: 00000246 ORIG_RAX: 00000000000000b3 RAX: ffffffffffffffda RBX: 00007f317df70fa0 RCX: 00007f317dcf44d9 RDX: 0000000000000003 RSI: 00002000000000c0 RDI: ffffffff80000201 RBP: 00007f317dd8304e R08: 0000000000000000 R09: 0000000000000000 R10: 0000200000000200 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f317df71038 R14: 00007f317df70fa0 R15: 00007fff211b99e8 Allocated by task 4502: 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+0x92/0xc0 mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x4c/0x380 mm/slab.h:519 slab_alloc_node mm/slub.c:3225 [inline] slab_alloc mm/slub.c:3233 [inline] kmem_cache_alloc+0x15d/0x280 mm/slub.c:3238 ext4_alloc_inode+0x1d/0x590 fs/ext4/super.c:1295 alloc_inode fs/inode.c:261 [inline] new_inode_pseudo+0x5f/0x210 fs/inode.c:998 new_inode+0x25/0x1d0 fs/inode.c:1027 ext4_mb_init_backend fs/ext4/mballoc.c:3288 [inline] ext4_mb_init+0x1092/0x1f50 fs/ext4/mballoc.c:3584 ext4_fill_super+0x7c39/0x93f0 fs/ext4/super.c:4925 mount_bdev+0x28a/0x3c0 fs/super.c:1411 legacy_get_tree+0xe6/0x180 fs/fs_context.c:611 vfs_get_tree+0x88/0x270 fs/super.c:1541 do_new_mount+0x247/0xa50 fs/namespace.c:3060 do_mount fs/namespace.c:3431 [inline] __do_sys_mount fs/namespace.c:3639 [inline] __se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3616 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Freed by task 4193: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:46 kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:360 ____kasan_slab_free+0xd5/0x110 mm/kasan/common.c:366 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:1710 [inline] slab_free_freelist_hook+0xec/0x170 mm/slub.c:1736 slab_free mm/slub.c:3504 [inline] kmem_cache_free+0x8f/0x210 mm/slub.c:3520 rcu_do_batch kernel/rcu/tree.c:2523 [inline] rcu_core+0x96e/0x1650 kernel/rcu/tree.c:2763 handle_softirqs+0x336/0x830 kernel/softirq.c:576 __do_softirq kernel/softirq.c:610 [inline] invoke_softirq kernel/softirq.c:450 [inline] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:659 irq_exit_rcu+0x5/0x20 kernel/softirq.c:671 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676 Last potentially related work creation: kasan_save_stack+0x35/0x60 mm/kasan/common.c:38 kasan_record_aux_stack+0xb8/0x100 mm/kasan/generic.c:348 __call_rcu kernel/rcu/tree.c:3011 [inline] call_rcu+0x189/0x900 kernel/rcu/tree.c:3091 destroy_inode fs/inode.c:316 [inline] evict+0x915/0x9d0 fs/inode.c:659 ext4_mb_release+0x704/0xc90 fs/ext4/mballoc.c:3662 ext4_put_super+0x1ce/0xbc0 fs/ext4/super.c:1212 generic_shutdown_super+0x130/0x300 fs/super.c:475 kill_block_super+0x7c/0xe0 fs/super.c:1438 deactivate_locked_super+0x93/0xf0 fs/super.c:335 cleanup_mnt+0x426/0x4d0 fs/namespace.c:1148 task_work_run+0x125/0x1a0 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0x10f/0x130 kernel/entry/common.c:184 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:217 __syscall_exit_to_user_mode_work kernel/entry/common.c:299 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:310 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 The buggy address belongs to the object at ffff8880676c3bd0 which belongs to the cache ext4_inode_cache of size 2424 The buggy address is located 1056 bytes inside of 2424-byte region [ffff8880676c3bd0, ffff8880676c4548) The buggy address belongs to the page: page:ffffea00019db000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x676c0 head:ffffea00019db000 order:3 compound_mapcount:0 compound_pincount:0 memcg:ffff888079472881 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000122 ffff88801f2fda00 raw: 0000000000000000 00000000800c000c 00000001ffffffff ffff888079472881 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Reclaimable, gfp_mask 0x1d2050(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 4433, ts 68076595667, free_ts 53669378227 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x24f6/0x2670 mm/page_alloc.c:4192 __alloc_pages+0x1ee/0x480 mm/page_alloc.c:5501 alloc_slab_page mm/slub.c:1780 [inline] allocate_slab mm/slub.c:1917 [inline] new_slab+0xc0/0x4b0 mm/slub.c:1980 ___slab_alloc+0x807/0xdd0 mm/slub.c:3013 __slab_alloc mm/slub.c:3100 [inline] slab_alloc_node mm/slub.c:3191 [inline] slab_alloc mm/slub.c:3233 [inline] kmem_cache_alloc+0xf0/0x280 mm/slub.c:3238 ext4_alloc_inode+0x1d/0x590 fs/ext4/super.c:1295 alloc_inode fs/inode.c:261 [inline] iget_locked+0x18c/0x820 fs/inode.c:1305 __ext4_iget+0x233/0x3e90 fs/ext4/inode.c:4687 ext4_get_journal_inode+0x2e/0x1c0 fs/ext4/super.c:5187 ext4_get_journal fs/ext4/super.c:5218 [inline] ext4_load_journal+0x300/0x1460 fs/ext4/super.c:5356 ext4_fill_super+0x61e0/0x93f0 fs/ext4/super.c:4700 mount_bdev+0x28a/0x3c0 fs/super.c:1411 legacy_get_tree+0xe6/0x180 fs/fs_context.c:611 vfs_get_tree+0x88/0x270 fs/super.c:1541 do_new_mount+0x247/0xa50 fs/namespace.c:3060 do_mount fs/namespace.c:3431 [inline] __do_sys_mount fs/namespace.c:3639 [inline] __se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3616 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317 free_unref_page_list+0x119/0x830 mm/page_alloc.c:3433 release_pages+0x185f/0x1bd0 mm/swap.c:963 tlb_batch_pages_flush mm/mmu_gather.c:50 [inline] tlb_flush_mmu_free mm/mmu_gather.c:241 [inline] tlb_flush_mmu mm/mmu_gather.c:248 [inline] tlb_finish_mmu+0x1b4/0x370 mm/mmu_gather.c:371 unmap_region+0x344/0x3b0 mm/mmap.c:2677 __do_munmap+0xa29/0xe10 mm/mmap.c:2907 __vm_munmap+0x13f/0x240 mm/mmap.c:2960 __do_sys_munmap mm/mmap.c:2986 [inline] __se_sys_munmap mm/mmap.c:2982 [inline] __x64_sys_munmap+0x67/0x70 mm/mmap.c:2982 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Memory state around the buggy address: ffff8880676c3e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880676c3f00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880676c3f80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880676c4000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880676c4080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== OCFS2: ERROR (device loop1): int ocfs2_read_quota_block(struct inode *, u64, struct buffer_head **): Quota file 0 is probably corrupted! Requested to read block 0 but file has size only 10 On-disk corruption discovered. Please run fsck.ocfs2 once the filesystem is unmounted. OCFS2: File system is now read-only. (syz.1.57,4606,0):ocfs2_local_check_quota_file:177 ERROR: status = -30 (syz.1.57,4606,0):ocfs2_local_check_quota_file:179 ERROR: failed to read quota file header (type=1)