loop1: detected capacity change from 0 to 33792 EXT4-fs (loop1): 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 ffff888055ce8e48 by task syz.1.275/5333 CPU: 0 PID: 5333 Comm: syz.1.275 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:0x7fc0a79a9a99 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:00007fc0a8849028 EFLAGS: 00000246 ORIG_RAX: 00000000000000b3 RAX: ffffffffffffffda RBX: 00007fc0a7c35fa0 RCX: 00007fc0a79a9a99 RDX: 0000000000000003 RSI: 0000200000001f40 RDI: ffffffff80000201 RBP: 00007fc0a7a3918b R08: 0000000000000000 R09: 0000000000000000 R10: 0000200000001f80 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fc0a7c36038 R14: 00007fc0a7c35fa0 R15: 00007ffdbbb28828 Allocated by task 5302: 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_fill_super fs/ext4/super.c:5471 [inline] ext4_fill_super+0x5ffd/0x77b0 fs/ext4/super.c:5698 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:3108 do_mount fs/namespace.c:3482 [inline] __do_sys_mount fs/namespace.c:3690 [inline] __se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3667 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 21: 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 run_ksoftirqd+0xa4/0x100 kernel/softirq.c:968 smpboot_thread_fn+0x667/0xa30 kernel/smpboot.c:164 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 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 dispose_list fs/inode.c:735 [inline] evict_inodes+0x650/0x6e0 fs/inode.c:789 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:717 dispose_list fs/inode.c:735 [inline] evict_inodes+0x650/0x6e0 fs/inode.c:789 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 The buggy address belongs to the object at ffff888055ce8a08 which belongs to the cache ext4_inode_cache of size 2440 The buggy address is located 1088 bytes inside of 2440-byte region [ffff888055ce8a08, ffff888055ce9390) The buggy address belongs to the physical page: page:ffffea0001573a00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x55ce8 head:ffffea0001573a00 order:3 compound_mapcount:0 compound_pincount:0 memcg:ffff88802a0c4101 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000122 ffff88801a310640 raw: 0000000000000000 00000000800c000c 00000001ffffffff ffff88802a0c4101 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 4438, tgid 4438 (udevd), ts 113116192977, free_ts 112867192760 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+0x2e/0x3f0 mm/page_alloc.c:3517 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] __kmem_cache_alloc_node+0x19d/0x270 mm/slub.c:3405 __do_kmalloc_node mm/slab_common.c:935 [inline] __kmalloc+0xa3/0x240 mm/slab_common.c:949 kmalloc include/linux/slab.h:568 [inline] inotify_handle_inode_event+0x17c/0x4e0 fs/notify/inotify/inotify_fsnotify.c:96 fsnotify_handle_inode_event fs/notify/fsnotify.c:282 [inline] fsnotify_handle_event fs/notify/fsnotify.c:337 [inline] send_to_group fs/notify/fsnotify.c:385 [inline] fsnotify+0x19e1/0x1df0 fs/notify/fsnotify.c:591 __fsnotify_parent+0x57e/0x820 fs/notify/fsnotify.c:248 fsnotify_parent include/linux/fsnotify.h:77 [inline] fsnotify_file include/linux/fsnotify.h:105 [inline] fsnotify_close include/linux/fsnotify.h:347 [inline] __fput+0x69d/0x8b0 fs/file_table.c:306 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 Memory state around the buggy address: ffff888055ce8d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888055ce8d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888055ce8e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888055ce8e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888055ce8f00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================