loop2: detected capacity change from 0 to 33792 EXT4-fs (loop2): 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 ffff88805d2f0e38 by task syz.2.627/7867 CPU: 1 PID: 7867 Comm: syz.2.627 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:7095 __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:0x7fd2971a9b59 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:00007fd29811d028 EFLAGS: 00000246 ORIG_RAX: 00000000000000b3 RAX: ffffffffffffffda RBX: 00007fd297435fa0 RCX: 00007fd2971a9b59 RDX: 0000000000000003 RSI: 0000200000002180 RDI: ffffffff80000201 RBP: 00007fd29723a18b R08: 0000000000000000 R09: 0000000000000000 R10: 00002000000021c0 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fd297436038 R14: 00007fd297435fa0 R15: 00007ffca09be6c8 Allocated by task 7746: 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:3524 [inline] slab_alloc mm/slub.c:3532 [inline] __kmem_cache_alloc_lru mm/slub.c:3539 [inline] kmem_cache_alloc_lru+0x175/0x2c0 mm/slub.c:3555 alloc_inode_sb include/linux/fs.h:2987 [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:1057 new_inode+0x22/0x1d0 fs/inode.c:1083 __ext4_new_inode+0x2ad/0x3aa0 fs/ext4/ialloc.c:968 ext4_create+0x238/0x480 fs/ext4/namei.c:2884 lookup_open fs/namei.c:3551 [inline] open_last_lookups fs/namei.c:3619 [inline] path_openat+0x1705/0x3270 fs/namei.c:3853 do_filp_open+0x1f2/0x430 fs/namei.c:3883 do_sys_openat2+0x134/0x1d0 fs/open.c:1422 do_sys_open fs/open.c:1437 [inline] __do_sys_openat fs/open.c:1453 [inline] __se_sys_openat fs/open.c:1448 [inline] __x64_sys_openat+0x139/0x160 fs/open.c:1448 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 6791: 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:1839 [inline] slab_free_freelist_hook+0x154/0x240 mm/slub.c:1865 slab_free mm/slub.c:3859 [inline] kmem_cache_free+0xf8/0x290 mm/slub.c:3881 rcu_do_batch kernel/rcu/tree.c:2162 [inline] rcu_core+0x9c1/0x17f0 kernel/rcu/tree.c:2435 handle_softirqs+0x27d/0x820 kernel/softirq.c:578 do_softirq+0xfa/0x1a0 kernel/softirq.c:479 __local_bh_enable_ip+0x184/0x1c0 kernel/softirq.c:406 spin_unlock_bh include/linux/spinlock.h:396 [inline] cfg80211_inform_single_bss_frame_data net/wireless/scan.c:3007 [inline] cfg80211_inform_bss_frame_data+0xb2a/0x1330 net/wireless/scan.c:3032 ieee80211_bss_info_update+0x789/0x9f0 net/mac80211/scan.c:211 ieee80211_rx_bss_info net/mac80211/ibss.c:1125 [inline] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1614 [inline] ieee80211_ibss_rx_queued_mgmt+0x18f5/0x2dc0 net/mac80211/ibss.c:1643 ieee80211_iface_process_skb net/mac80211/iface.c:1690 [inline] ieee80211_iface_work+0x730/0xc90 net/mac80211/iface.c:1744 cfg80211_wiphy_work+0x228/0x260 net/wireless/core.c:444 process_one_work kernel/workqueue.c:2657 [inline] process_scheduled_works+0xa60/0x1600 kernel/workqueue.c:2734 worker_thread+0xa5e/0xfe0 kernel/workqueue.c:2815 kthread+0x2fa/0x390 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 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:2689 [inline] call_rcu+0x153/0x900 kernel/rcu/tree.c:2805 destroy_inode fs/inode.c:316 [inline] evict+0x913/0x9d0 fs/inode.c:716 dispose_list fs/inode.c:734 [inline] evict_inodes+0x64a/0x6e0 fs/inode.c:788 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:7428 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 ffff88805d2f0a00 which belongs to the cache ext4_inode_cache of size 2432 The buggy address is located 1080 bytes inside of freed 2432-byte region [ffff88805d2f0a00, ffff88805d2f1380) The buggy address belongs to the physical page: page:ffffea000174bc00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5d2f0 head:ffffea000174bc00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff88801d3bf681 flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000840 ffff888019ba9500 dead000000000122 0000000000000000 raw: 0000000000000000 00000000800c000c 00000001ffffffff ffff88801d3bf681 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 7746, tgid 7742 (syz.4.593), ts 163604200360, free_ts 24893126536 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1c1/0x200 mm/page_alloc.c:1583 prep_new_page mm/page_alloc.c:1590 [inline] get_page_from_freelist+0x219a/0x22c0 mm/page_alloc.c:3231 __alloc_pages+0x1f0/0x460 mm/page_alloc.c:4511 alloc_slab_page+0x5d/0x180 mm/slub.c:1909 allocate_slab mm/slub.c:2056 [inline] new_slab+0x87/0x2d0 mm/slub.c:2109 ___slab_alloc+0xc5c/0x12f0 mm/slub.c:3281 __slab_alloc mm/slub.c:3367 [inline] __slab_alloc_node mm/slub.c:3420 [inline] slab_alloc_node mm/slub.c:3514 [inline] slab_alloc mm/slub.c:3532 [inline] __kmem_cache_alloc_lru mm/slub.c:3539 [inline] kmem_cache_alloc_lru+0xfc/0x2c0 mm/slub.c:3555 alloc_inode_sb include/linux/fs.h:2987 [inline] ext4_alloc_inode+0x2e/0x580 fs/ext4/super.c:1416 alloc_inode fs/inode.c:261 [inline] iget_locked+0x1ab/0x8c0 fs/inode.c:1367 __ext4_iget+0x240/0x4010 fs/ext4/inode.c:4886 ext4_orphan_get+0x1bc/0x5e0 fs/ext4/ialloc.c:1408 ext4_orphan_cleanup+0xc91/0x1650 fs/ext4/orphan.c:465 __ext4_fill_super fs/ext4/super.c:5627 [inline] ext4_fill_super+0x5f74/0x6830 fs/ext4/super.c:5748 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:3418 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1183 [inline] free_unref_page_prepare+0x7d7/0x8f0 mm/page_alloc.c:2374 free_unref_page+0x32/0x2e0 mm/page_alloc.c:2467 free_contig_range+0xa1/0x150 mm/page_alloc.c:6441 destroy_args+0x7d/0x840 mm/debug_vm_pgtable.c:1015 debug_vm_pgtable+0x411/0x440 mm/debug_vm_pgtable.c:1400 do_one_initcall+0x242/0x790 init/main.c:1215 do_initcall_level+0x13d/0x1f0 init/main.c:1277 do_initcalls+0x69/0xd0 init/main.c:1293 kernel_init_freeable+0x3d9/0x560 init/main.c:1530 kernel_init+0x1d/0x1c0 init/main.c:1420 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 Memory state around the buggy address: ffff88805d2f0d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88805d2f0d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88805d2f0e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88805d2f0e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88805d2f0f00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================