EXT4-fs (loop2): mounted filesystem without journal. Opts: jqfmt=vfsold,norecovery,min_batch_time=0x0000000000000003,nombcache,debug_want_extra_isize=0x0000000000000080,nodelalloc,errors=remount-ro,errors=continue,auto_da_alloc=0x0000000000000343,usrquota,barrier=0x0000000000000007,. 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 ffff88805ed21810 by task syz.2.36/4440 CPU: 0 PID: 4440 Comm: syz.2.36 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:6409 __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:0x7f9a2712cb59 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:00007f9a25379028 EFLAGS: 00000246 ORIG_RAX: 00000000000000b3 RAX: ffffffffffffffda RBX: 00007f9a273b8fa0 RCX: 00007f9a2712cb59 RDX: 0000000000000003 RSI: 0000200000002180 RDI: ffffffff80000201 RBP: 00007f9a271bd18b R08: 0000000000000000 R09: 0000000000000000 R10: 00002000000021c0 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f9a273b9038 R14: 00007f9a273b8fa0 R15: 00007fff00de0c48 Allocated by task 4361: 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:1009 new_inode+0x25/0x1d0 fs/inode.c:1038 __ext4_new_inode+0x2ad/0x3aa0 fs/ext4/ialloc.c:969 ext4_create+0x234/0x470 fs/ext4/namei.c:2885 lookup_open fs/namei.c:3513 [inline] open_last_lookups fs/namei.c:3583 [inline] path_openat+0x120a/0x2fb0 fs/namei.c:3790 do_filp_open+0x1df/0x400 fs/namei.c:3820 do_sys_openat2+0x14b/0x500 fs/open.c:1255 do_sys_open fs/open.c:1271 [inline] __do_sys_openat fs/open.c:1287 [inline] __se_sys_openat fs/open.c:1282 [inline] __x64_sys_openat+0x135/0x160 fs/open.c:1282 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 20: 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 run_ksoftirqd+0xa4/0x100 kernel/softirq.c:943 smpboot_thread_fn+0x520/0x990 kernel/smpboot.c:164 kthread+0x42e/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 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:658 dispose_list fs/inode.c:676 [inline] evict_inodes+0x650/0x6e0 fs/inode.c:730 generic_shutdown_super+0x93/0x300 fs/super.c:454 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 ffff88805ed213f0 which belongs to the cache ext4_inode_cache of size 2424 The buggy address is located 1056 bytes inside of 2424-byte region [ffff88805ed213f0, ffff88805ed21d68) The buggy address belongs to the page: page:ffffea00017b4800 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5ed20 head:ffffea00017b4800 order:3 compound_mapcount:0 compound_pincount:0 memcg:ffff888020a67001 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000122 ffff88801edf9500 raw: 0000000000000000 00000000800c000c 00000001ffffffff ffff888020a67001 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 4196, ts 71775062037, free_ts 22193183194 prep_new_page mm/page_alloc.c:2427 [inline] get_page_from_freelist+0x2510/0x2680 mm/page_alloc.c:4202 __alloc_pages+0x1ee/0x480 mm/page_alloc.c:5511 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] new_inode_pseudo+0x5f/0x210 fs/inode.c:1009 new_inode+0x25/0x1d0 fs/inode.c:1038 __ext4_new_inode+0x2ad/0x3aa0 fs/ext4/ialloc.c:969 ext4_mkdir+0x407/0xc90 fs/ext4/namei.c:3068 vfs_mkdir+0x386/0x570 fs/namei.c:4116 do_mkdirat+0x1dd/0x5c0 fs/namei.c:4141 __do_sys_mkdirat fs/namei.c:4156 [inline] __se_sys_mkdirat fs/namei.c:4154 [inline] __x64_sys_mkdirat+0x85/0x90 fs/namei.c:4154 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 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1341 [inline] free_pcp_prepare mm/page_alloc.c:1392 [inline] free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3325 free_unref_page+0x8f/0x2a0 mm/page_alloc.c:3404 free_contig_range+0x96/0xf0 mm/page_alloc.c:9438 destroy_args+0xef/0xa00 mm/debug_vm_pgtable.c:1018 debug_vm_pgtable+0x321/0x380 mm/debug_vm_pgtable.c:1336 do_one_initcall+0x272/0x730 init/main.c:1276 do_initcall_level+0x13d/0x1f0 init/main.c:1349 do_initcalls+0x4b/0x90 init/main.c:1365 kernel_init_freeable+0x3d5/0x560 init/main.c:1589 kernel_init+0x19/0x1b0 init/main.c:1480 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Memory state around the buggy address: ffff88805ed21700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88805ed21780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88805ed21800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88805ed21880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88805ed21900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================