loop8: detected capacity change from 0 to 33792 EXT4-fs (loop8): 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 ffff8880402f8440 by task syz.8.702/7695 CPU: 1 PID: 7695 Comm: syz.8.702 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:7019 __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:0x7fb853ba9a99 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:00007fb854b1f028 EFLAGS: 00000246 ORIG_RAX: 00000000000000b3 RAX: ffffffffffffffda RBX: 00007fb853e35fa0 RCX: 00007fb853ba9a99 RDX: 0000000000000003 RSI: 0000200000000f00 RDI: ffffffff80000201 RBP: 00007fb853c3918b R08: 0000000000000000 R09: 0000000000000000 R10: 0000200000000f40 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fb853e36038 R14: 00007fb853e35fa0 R15: 00007fff4f028d38 Allocated by task 4275: 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:3280 [inline] ext4_alloc_inode+0x2a/0x5a0 fs/ext4/super.c:1382 alloc_inode fs/inode.c:261 [inline] iget_locked+0x1a7/0x8c0 fs/inode.c:1382 __ext4_iget+0x23f/0x4040 fs/ext4/inode.c:4904 ext4_lookup+0x28e/0x710 fs/ext4/namei.c:1860 __lookup_slow+0x29d/0x3f0 fs/namei.c:1698 lookup_slow+0x53/0x70 fs/namei.c:1715 walk_component+0x2ad/0x3e0 fs/namei.c:2006 lookup_last fs/namei.c:2463 [inline] path_lookupat+0x148/0x420 fs/namei.c:2487 filename_lookup+0x229/0x580 fs/namei.c:2516 user_path_at_empty+0x3e/0x60 fs/namei.c:2956 user_path_at include/linux/namei.h:57 [inline] ksys_umount fs/namespace.c:1836 [inline] __do_sys_umount fs/namespace.c:1844 [inline] __se_sys_umount fs/namespace.c:1842 [inline] __x64_sys_umount+0xf9/0x170 fs/namespace.c:1842 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 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:717 do_unlinkat+0x388/0x580 fs/namei.c:4452 __do_sys_unlink fs/namei.c:4493 [inline] __se_sys_unlink fs/namei.c:4491 [inline] __x64_sys_unlink+0x45/0x50 fs/namei.c:4491 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 The buggy address belongs to the object at ffff8880402f8000 which belongs to the cache ext4_inode_cache of size 2440 The buggy address is located 1088 bytes inside of 2440-byte region [ffff8880402f8000, ffff8880402f8988) The buggy address belongs to the physical page: page:ffffea000100be00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x402f8 head:ffffea000100be00 order:3 compound_mapcount:0 compound_pincount:0 memcg:ffff88801f72a001 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffffea000100bc00 dead000000000003 ffff888019fd1500 raw: 0000000000000000 00000000800c000c 00000001ffffffff ffff88801f72a001 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 4275, tgid 4275 (syz-executor), ts 328108142729, free_ts 275392162928 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2561 prep_new_page mm/page_alloc.c:2568 [inline] get_page_from_freelist+0x208b/0x21a0 mm/page_alloc.c:4368 __alloc_pages+0x1ec/0x4f0 mm/page_alloc.c:5668 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:3280 [inline] ext4_alloc_inode+0x2a/0x5a0 fs/ext4/super.c:1382 alloc_inode fs/inode.c:261 [inline] iget_locked+0x1a7/0x8c0 fs/inode.c:1382 __ext4_iget+0x23f/0x4040 fs/ext4/inode.c:4904 ext4_lookup+0x28e/0x710 fs/ext4/namei.c:1860 __lookup_slow+0x29d/0x3f0 fs/namei.c:1698 lookup_slow+0x53/0x70 fs/namei.c:1715 walk_component+0x2ad/0x3e0 fs/namei.c:2006 lookup_last fs/namei.c:2463 [inline] path_lookupat+0x148/0x420 fs/namei.c:2487 filename_lookup+0x229/0x580 fs/namei.c:2516 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1488 [inline] free_pcp_prepare mm/page_alloc.c:1538 [inline] free_unref_page_prepare+0x8e5/0x9e0 mm/page_alloc.c:3422 free_unref_page_list+0xbb/0x8e0 mm/page_alloc.c:3563 release_pages+0x20d1/0x2340 mm/swap.c:1035 __pagevec_release+0x6d/0xe0 mm/swap.c:1055 pagevec_release include/linux/pagevec.h:71 [inline] folio_batch_release include/linux/pagevec.h:135 [inline] shmem_undo_range+0x5f5/0x2870 mm/shmem.c:963 shmem_truncate_range mm/shmem.c:1096 [inline] shmem_evict_inode+0x225/0x9f0 mm/shmem.c:1206 evict+0x4b2/0x9d0 fs/inode.c:702 do_unlinkat+0x388/0x580 fs/namei.c:4452 __do_sys_unlink fs/namei.c:4493 [inline] __se_sys_unlink fs/namei.c:4491 [inline] __x64_sys_unlink+0x45/0x50 fs/namei.c:4491 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 Memory state around the buggy address: ffff8880402f8300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880402f8380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880402f8400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880402f8480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880402f8500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== 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 4275, tgid 4275 (syz-execu page last free stack trace: