[EXT4 FS bs=1024, gc=1, bpg=8192, ipg=32, mo=e016c118, mo2=0002] System zones: 1-12, 13-13 EXT4-fs (loop6): 1 truncate cleaned up EXT4-fs (loop6): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: writeback. ================================================================== BUG: KASAN: slab-use-after-free in ocfs2_read_quota_block+0x214/0x3c0 fs/ocfs2/quota_local.c:143 Read of size 8 at addr ffff88805bfb4038 by task syz.6.1041/10551 CPU: 0 PID: 10551 Comm: syz.6.1041 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xa8/0x210 mm/kasan/report.c:468 kasan_report+0x117/0x150 mm/kasan/report.c:581 ocfs2_read_quota_block+0x214/0x3c0 fs/ocfs2/quota_local.c:143 ocfs2_local_check_quota_file+0x120/0xe70 fs/ocfs2/quota_local.c:175 dquot_load_quota_sb+0x5d1/0xb30 fs/quota/dquot.c:2485 dquot_load_quota_inode+0x2d7/0x5c0 fs/quota/dquot.c:2529 ext4_quota_on+0x349/0x770 fs/ext4/super.c:7083 __do_sys_quotactl fs/quota/quota.c:962 [inline] __se_sys_quotactl+0x29c/0x980 fs/quota/quota.c:918 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7ff7ee1a94d9 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:00007ff7ef034028 EFLAGS: 00000246 ORIG_RAX: 00000000000000b3 RAX: ffffffffffffffda RBX: 00007ff7ee425fa0 RCX: 00007ff7ee1a94d9 RDX: 0000000000000003 RSI: 00002000000000c0 RDI: ffffffff80000201 RBP: 00007ff7ee23804e R08: 0000000000000000 R09: 0000000000000000 R10: 0000200000000200 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ff7ee426038 R14: 00007ff7ee425fa0 R15: 00007ffdae96b038 Allocated by task 10420: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4e/0x70 mm/kasan/common.c:53 __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook+0x6a/0x4d0 mm/slab.h:770 slab_alloc_node mm/slub.c:3518 [inline] slab_alloc mm/slub.c:3526 [inline] __kmem_cache_alloc_lru mm/slub.c:3533 [inline] kmem_cache_alloc_lru+0x175/0x2c0 mm/slub.c:3549 alloc_inode_sb include/linux/fs.h:2985 [inline] ext4_alloc_inode+0x2e/0x580 fs/ext4/super.c:1416 alloc_inode fs/inode.c:261 [inline] new_inode_pseudo+0x63/0x1d0 fs/inode.c:1046 new_inode+0x22/0x1d0 fs/inode.c:1072 ext4_mb_init_backend fs/ext4/mballoc.c:3444 [inline] ext4_mb_init+0x151b/0x2470 fs/ext4/mballoc.c:3756 __ext4_fill_super fs/ext4/super.c:5582 [inline] ext4_fill_super+0x5ae1/0x6830 fs/ext4/super.c:5750 get_tree_bdev+0x3e5/0x520 fs/super.c:1602 vfs_get_tree+0x8c/0x280 fs/super.c:1775 do_new_mount+0x24a/0xa60 fs/namespace.c:3412 do_mount fs/namespace.c:3780 [inline] __do_sys_mount fs/namespace.c:3989 [inline] __se_sys_mount+0x2e7/0x3d0 fs/namespace.c:3966 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Freed by task 5782: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4e/0x70 mm/kasan/common.c:53 kasan_save_free_info+0x28/0x40 mm/kasan/generic.c:522 ____kasan_slab_free+0x126/0x1f0 mm/kasan/common.c:237 kasan_slab_free include/linux/kasan.h:164 [inline] slab_free_hook mm/slub.c:1833 [inline] slab_free_freelist_hook+0x154/0x240 mm/slub.c:1859 slab_free mm/slub.c:3853 [inline] kmem_cache_free+0xf8/0x290 mm/slub.c:3875 rcu_do_batch kernel/rcu/tree.c:2194 [inline] rcu_core+0x9c1/0x17f0 kernel/rcu/tree.c:2467 handle_softirqs+0x27d/0x820 kernel/softirq.c:578 __do_softirq kernel/softirq.c:612 [inline] invoke_softirq kernel/softirq.c:452 [inline] __irq_exit_rcu+0xd3/0x190 kernel/softirq.c:661 irq_exit_rcu+0x9/0x20 kernel/softirq.c:673 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1088 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1088 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687 Last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:46 __kasan_record_aux_stack+0xaf/0xc0 mm/kasan/generic.c:492 __call_rcu_common kernel/rcu/tree.c:2721 [inline] call_rcu+0x153/0x900 kernel/rcu/tree.c:2837 destroy_inode fs/inode.c:316 [inline] evict+0x913/0x9d0 fs/inode.c:717 ext4_mb_release+0x756/0xce0 fs/ext4/mballoc.c:3838 ext4_put_super+0x334/0xcd0 fs/ext4/super.c:1341 generic_shutdown_super+0x134/0x2b0 fs/super.c:690 kill_block_super+0x44/0x90 fs/super.c:1671 ext4_kill_sb+0x68/0xa0 fs/ext4/super.c:7416 deactivate_locked_super+0x9c/0x210 fs/super.c:479 cleanup_mnt+0x3d7/0x460 fs/namespace.c:1259 task_work_run+0x1d4/0x260 kernel/task_work.c:245 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:294 [inline] syscall_exit_to_user_mode+0x1a/0x50 kernel/entry/common.c:305 do_syscall_64+0x61/0xb0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Second to last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:46 __kasan_record_aux_stack+0xaf/0xc0 mm/kasan/generic.c:492 __call_rcu_common kernel/rcu/tree.c:2721 [inline] call_rcu+0x153/0x900 kernel/rcu/tree.c:2837 destroy_inode fs/inode.c:316 [inline] evict+0x913/0x9d0 fs/inode.c:717 dispose_list fs/inode.c:735 [inline] evict_inodes+0x64a/0x6e0 fs/inode.c:789 generic_shutdown_super+0x97/0x2b0 fs/super.c:669 kill_block_super+0x44/0x90 fs/super.c:1671 ext4_kill_sb+0x68/0xa0 fs/ext4/super.c:7416 deactivate_locked_super+0x9c/0x210 fs/super.c:479 cleanup_mnt+0x3d7/0x460 fs/namespace.c:1259 task_work_run+0x1d4/0x260 kernel/task_work.c:245 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:294 [inline] syscall_exit_to_user_mode+0x1a/0x50 kernel/entry/common.c:305 do_syscall_64+0x61/0xb0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff88805bfb3c00 which belongs to the cache ext4_inode_cache of size 2432 The buggy address is located 1080 bytes inside of freed 2432-byte region [ffff88805bfb3c00, ffff88805bfb4580) The buggy address belongs to the physical page: page:ffffea00016fec00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5bfb0 head:ffffea00016fec00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff88805ed72f81 flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000840 ffff888141edf000 ffffea00016f1200 0000000000000002 raw: 0000000000000000 00000000800c000c 00000001ffffffff ffff88805ed72f81 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 6620, tgid 6607 (syz.0.172), ts 156649949948, free_ts 119001041872 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1c1/0x200 mm/page_alloc.c:1582 prep_new_page mm/page_alloc.c:1589 [inline] get_page_from_freelist+0x2181/0x22a0 mm/page_alloc.c:3221 __alloc_pages+0x1f0/0x460 mm/page_alloc.c:4501 alloc_slab_page+0x5d/0x180 mm/slub.c:1903 allocate_slab mm/slub.c:2050 [inline] new_slab+0x87/0x2d0 mm/slub.c:2103 ___slab_alloc+0xc5c/0x12f0 mm/slub.c:3275 __slab_alloc mm/slub.c:3361 [inline] __slab_alloc_node mm/slub.c:3414 [inline] slab_alloc_node mm/slub.c:3508 [inline] slab_alloc mm/slub.c:3526 [inline] __kmem_cache_alloc_lru mm/slub.c:3533 [inline] kmem_cache_alloc_lru+0xfc/0x2c0 mm/slub.c:3549 alloc_inode_sb include/linux/fs.h:2985 [inline] ext4_alloc_inode+0x2e/0x580 fs/ext4/super.c:1416 alloc_inode fs/inode.c:261 [inline] new_inode_pseudo+0x63/0x1d0 fs/inode.c:1046 new_inode+0x22/0x1d0 fs/inode.c:1072 ext4_mb_init_backend fs/ext4/mballoc.c:3444 [inline] ext4_mb_init+0x151b/0x2470 fs/ext4/mballoc.c:3756 __ext4_fill_super fs/ext4/super.c:5582 [inline] ext4_fill_super+0x5ae1/0x6830 fs/ext4/super.c:5750 get_tree_bdev+0x3e5/0x520 fs/super.c:1602 vfs_get_tree+0x8c/0x280 fs/super.c:1775 do_new_mount+0x24a/0xa60 fs/namespace.c:3412 do_mount fs/namespace.c:3780 [inline] __do_sys_mount fs/namespace.c:3989 [inline] __se_sys_mount+0x2e7/0x3d0 fs/namespace.c:3966 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1182 [inline] free_unref_page_prepare+0x7d7/0x8f0 mm/page_alloc.c:2366 free_unref_page+0x32/0x2e0 mm/page_alloc.c:2459 discard_slab mm/slub.c:2149 [inline] __unfreeze_partials+0x1cf/0x210 mm/slub.c:2689 put_cpu_partial+0x17c/0x250 mm/slub.c:2765 __slab_free+0x319/0x400 mm/slub.c:3723 qlink_free mm/kasan/quarantine.c:166 [inline] qlist_free_all+0x75/0xd0 mm/kasan/quarantine.c:185 kasan_quarantine_reduce+0x143/0x160 mm/kasan/quarantine.c:292 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:306 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook+0x6a/0x4d0 mm/slab.h:770 slab_alloc_node mm/slub.c:3518 [inline] slab_alloc mm/slub.c:3526 [inline] __kmem_cache_alloc_lru mm/slub.c:3533 [inline] kmem_cache_alloc+0x17e/0x2d0 mm/slub.c:3542 getname_flags+0xbb/0x500 fs/namei.c:145 getname fs/namei.c:224 [inline] __do_sys_rmdir fs/namei.c:4341 [inline] __se_sys_rmdir fs/namei.c:4339 [inline] __x64_sys_rmdir+0x3c/0x50 fs/namei.c:4339 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Memory state around the buggy address: ffff88805bfb3f00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88805bfb3f80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88805bfb4000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88805bfb4080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88805bfb4100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================