loop5: detected capacity change from 0 to 33792 EXT4-fs (loop5): mounted filesystem without journal. 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 ffff888072792258 by task syz.5.319/6031 CPU: 0 PID: 6031 Comm: syz.5.319 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x210 mm/kasan/report.c:420 kasan_report+0x10b/0x140 mm/kasan/report.c:524 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:2488 dquot_load_quota_inode+0x2d3/0x5c0 fs/quota/dquot.c:2532 ext4_quota_on+0x4e0/0x930 fs/ext4/super.c:6990 __do_sys_quotactl fs/quota/quota.c:960 [inline] __se_sys_quotactl+0x28b/0x6f0 fs/quota/quota.c:916 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7ff955ba94d9 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:00007ff956a71028 EFLAGS: 00000246 ORIG_RAX: 00000000000000b3 RAX: ffffffffffffffda RBX: 00007ff955e25fa0 RCX: 00007ff955ba94d9 RDX: 0000000000000003 RSI: 0000200000006e80 RDI: ffffffff80000201 RBP: 00007ff955c38136 R08: 0000000000000000 R09: 0000000000000000 R10: 0000200000006ec0 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ff955e26038 R14: 00007ff955e25fa0 R15: 00007fff957aeef8 Allocated by task 5996: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 __kasan_slab_alloc+0x6b/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x4b/0x490 mm/slab.h:742 slab_alloc_node mm/slub.c:3366 [inline] slab_alloc mm/slub.c:3374 [inline] __kmem_cache_alloc_lru mm/slub.c:3381 [inline] kmem_cache_alloc_lru+0x182/0x2e0 mm/slub.c:3397 alloc_inode_sb include/linux/fs.h:3278 [inline] ext4_alloc_inode+0x2a/0x5a0 fs/ext4/super.c:1382 alloc_inode fs/inode.c:261 [inline] new_inode_pseudo+0x5f/0x1c0 fs/inode.c:1061 new_inode+0x25/0x1d0 fs/inode.c:1089 __ext4_new_inode+0x2d5/0x3b40 fs/ext4/ialloc.c:968 ext4_symlink+0x34f/0x940 fs/ext4/namei.c:3446 vfs_symlink+0x245/0x3d0 fs/namei.c:4526 do_symlinkat+0x1b6/0x400 fs/namei.c:4555 __do_sys_symlinkat fs/namei.c:4572 [inline] __se_sys_symlinkat fs/namei.c:4569 [inline] __x64_sys_symlinkat+0x95/0xa0 fs/namei.c:4569 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Freed by task 6012: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 kasan_save_free_info+0x27/0x40 mm/kasan/generic.c:516 ____kasan_slab_free+0x126/0x1f0 mm/kasan/common.c:237 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1735 [inline] slab_free_freelist_hook+0x133/0x1b0 mm/slub.c:1761 slab_free mm/slub.c:3694 [inline] kmem_cache_free+0xf7/0x2a0 mm/slub.c:3716 rcu_do_batch kernel/rcu/tree.c:2297 [inline] rcu_core+0x9a3/0x1740 kernel/rcu/tree.c:2557 handle_softirqs+0x291/0x910 kernel/softirq.c:596 __do_softirq kernel/softirq.c:630 [inline] invoke_softirq kernel/softirq.c:470 [inline] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:679 irq_exit_rcu+0x5/0x20 kernel/softirq.c:691 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691 Last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:46 __kasan_record_aux_stack+0xb2/0xc0 mm/kasan/generic.c:486 call_rcu+0x14f/0x950 kernel/rcu/tree.c:2849 destroy_inode fs/inode.c:316 [inline] evict+0x915/0x9d0 fs/inode.c:718 dispose_list fs/inode.c:736 [inline] evict_inodes+0x650/0x6e0 fs/inode.c:790 generic_shutdown_super+0x93/0x340 fs/super.c:480 kill_block_super+0x7c/0xe0 fs/super.c:1481 deactivate_locked_super+0x93/0xf0 fs/super.c:332 cleanup_mnt+0x471/0x4f0 fs/namespace.c:1191 task_work_run+0x1d0/0x260 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:180 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:213 __syscall_exit_to_user_mode_work kernel/entry/common.c:295 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:306 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Second to last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:46 __kasan_record_aux_stack+0xb2/0xc0 mm/kasan/generic.c:486 call_rcu+0x14f/0x950 kernel/rcu/tree.c:2849 destroy_inode fs/inode.c:316 [inline] evict+0x915/0x9d0 fs/inode.c:718 ext4_mb_release+0x752/0xce0 fs/ext4/mballoc.c:3645 ext4_put_super+0x223/0xc00 fs/ext4/super.c:1312 generic_shutdown_super+0x130/0x340 fs/super.c:501 kill_block_super+0x7c/0xe0 fs/super.c:1481 deactivate_locked_super+0x93/0xf0 fs/super.c:332 cleanup_mnt+0x471/0x4f0 fs/namespace.c:1191 task_work_run+0x1d0/0x260 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:180 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:213 __syscall_exit_to_user_mode_work kernel/entry/common.c:295 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:306 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff888072791e18 which belongs to the cache ext4_inode_cache of size 2440 The buggy address is located 1088 bytes inside of 2440-byte region [ffff888072791e18, ffff8880727927a0) The buggy address belongs to the physical page: page:ffffea0001c9e400 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888072790000 pfn:0x72790 head:ffffea0001c9e400 order:3 compound_mapcount:0 compound_pincount:0 memcg:ffff88807e919081 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffffea0001d6f600 dead000000000003 ffff88801a746a00 raw: ffff888072790000 00000000800c000a 00000001ffffffff ffff88807e919081 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 4585, tgid 4581 (syz.3.30), ts 117406917835, free_ts 115683104470 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2560 prep_new_page mm/page_alloc.c:2567 [inline] get_page_from_freelist+0x206b/0x2180 mm/page_alloc.c:4358 __alloc_pages+0x1ec/0x4f0 mm/page_alloc.c:5658 alloc_slab_page+0x5d/0x180 mm/slub.c:1805 allocate_slab mm/slub.c:1950 [inline] new_slab+0x87/0x2d0 mm/slub.c:2003 ___slab_alloc+0xbc5/0x1240 mm/slub.c:3161 __slab_alloc mm/slub.c:3247 [inline] slab_alloc_node mm/slub.c:3332 [inline] slab_alloc mm/slub.c:3374 [inline] __kmem_cache_alloc_lru mm/slub.c:3381 [inline] kmem_cache_alloc_lru+0x104/0x2e0 mm/slub.c:3397 alloc_inode_sb include/linux/fs.h:3278 [inline] ext4_alloc_inode+0x2a/0x5a0 fs/ext4/super.c:1382 alloc_inode fs/inode.c:261 [inline] new_inode_pseudo+0x5f/0x1c0 fs/inode.c:1061 new_inode+0x25/0x1d0 fs/inode.c:1089 ext4_mb_init_backend fs/ext4/mballoc.c:3251 [inline] ext4_mb_init+0x11cf/0x20f0 fs/ext4/mballoc.c:3563 __ext4_fill_super fs/ext4/super.c:5530 [inline] ext4_fill_super+0x681b/0x77b0 fs/ext4/super.c:5700 get_tree_bdev+0x3e6/0x610 fs/super.c:1377 vfs_get_tree+0x88/0x270 fs/super.c:1584 do_new_mount+0x247/0xa50 fs/namespace.c:3104 do_mount fs/namespace.c:3475 [inline] __do_sys_mount fs/namespace.c:3683 [inline] __se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3660 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1487 [inline] free_pcp_prepare mm/page_alloc.c:1537 [inline] free_unref_page_prepare+0x8e5/0x9e0 mm/page_alloc.c:3414 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3509 free_slab mm/slub.c:2042 [inline] discard_slab mm/slub.c:2048 [inline] __unfreeze_partials+0x188/0x1e0 mm/slub.c:2598 put_cpu_partial+0x17c/0x250 mm/slub.c:2674 qlink_free mm/kasan/quarantine.c:166 [inline] qlist_free_all+0x76/0xe0 mm/kasan/quarantine.c:185 kasan_quarantine_reduce+0x144/0x160 mm/kasan/quarantine.c:292 __kasan_slab_alloc+0x1e/0x80 mm/kasan/common.c:306 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x4b/0x490 mm/slab.h:742 slab_alloc_node mm/slub.c:3366 [inline] slab_alloc mm/slub.c:3374 [inline] __kmem_cache_alloc_lru mm/slub.c:3381 [inline] kmem_cache_alloc+0x18b/0x2f0 mm/slub.c:3390 anon_vma_chain_alloc mm/rmap.c:141 [inline] __anon_vma_prepare+0x64/0x430 mm/rmap.c:195 anon_vma_prepare include/linux/rmap.h:159 [inline] do_anonymous_page mm/memory.c:4187 [inline] handle_pte_fault mm/memory.c:5027 [inline] __handle_mm_fault mm/memory.c:5171 [inline] handle_mm_fault+0x3717/0x3d40 mm/memory.c:5292 do_user_addr_fault+0x5a9/0xbb0 arch/x86/mm/fault.c:1338 handle_page_fault arch/x86/mm/fault.c:1429 [inline] exc_page_fault+0x60/0x100 arch/x86/mm/fault.c:1482 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:608 Memory state around the buggy address: ffff888072792100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888072792180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888072792200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888072792280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888072792300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================