EXT4-fs (loop0): mounted filesystem without journal. Opts: grpquota,delalloc,resuid=0x0000000000000000,debug,dioread_nolock,bsddf,nomblk_io_submit,noauto_da_alloc,,errors=continue ================================================================== BUG: KASAN: use-after-free in ext4_get_inode_usage+0x3a1/0x520 fs/ext4/xattr.c:817 Read of size 4 at addr ffff88812cddd070 by task syz.0.13/385 CPU: 1 PID: 385 Comm: syz.0.13 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x1a7/0x208 lib/dump_stack.c:118 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:435 [inline] kasan_report+0xe2/0x130 mm/kasan/report.c:452 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308 ext4_get_inode_usage+0x3a1/0x520 fs/ext4/xattr.c:817 __dquot_transfer+0x192/0x20d0 fs/quota/dquot.c:2017 dquot_transfer+0x2f1/0x460 fs/quota/dquot.c:2169 ext4_setattr+0x715/0x1950 fs/ext4/inode.c:5577 notify_change+0xab3/0xe40 fs/attr.c:410 chown_common+0x335/0x500 fs/open.c:675 vfs_fchown fs/open.c:742 [inline] ksys_fchown+0xef/0x160 fs/open.c:753 __do_sys_fchown fs/open.c:761 [inline] __se_sys_fchown fs/open.c:759 [inline] __x64_sys_fchown+0x7a/0x90 fs/open.c:759 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f82d38e2e59 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:00007f82d233d028 EFLAGS: 00000246 ORIG_RAX: 000000000000005d RAX: ffffffffffffffda RBX: 00007f82d3b5bfa0 RCX: 00007f82d38e2e59 RDX: 000000000000ee01 RSI: 0000000000000000 RDI: 0000000000000006 RBP: 00007f82d3978d6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f82d3b5c038 R14: 00007f82d3b5bfa0 R15: 00007ffd9ee34258 Allocated by task 367: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:430 [inline] __kasan_slab_alloc+0xbd/0xf0 mm/kasan/common.c:463 kasan_slab_alloc include/linux/kasan.h:244 [inline] slab_post_alloc_hook+0x5d/0x2f0 mm/slab.h:580 slab_alloc_node mm/slub.c:2952 [inline] slab_alloc mm/slub.c:2960 [inline] kmem_cache_alloc+0x162/0x2d0 mm/slub.c:2965 mempool_alloc_slab+0x1d/0x30 mm/mempool.c:513 mempool_alloc+0x11e/0x460 mm/mempool.c:393 bio_alloc_bioset+0x18c/0x570 block/bio.c:486 bio_alloc include/linux/bio.h:412 [inline] blk_next_bio block/blk-lib.c:15 [inline] __blkdev_issue_write_zeroes+0x1d7/0x4d0 block/blk-lib.c:267 blkdev_issue_zeroout+0x22b/0x4b0 block/blk-lib.c:409 sb_issue_zeroout include/linux/blkdev.h:1384 [inline] ext4_issue_zeroout+0x129/0x1a0 fs/ext4/inode.c:438 ext4_ext_zeroout fs/ext4/extents.c:3128 [inline] ext4_ext_convert_to_initialized fs/ext4/extents.c:3633 [inline] ext4_ext_handle_unwritten_extents fs/ext4/extents.c:3943 [inline] ext4_ext_map_blocks+0x3934/0x5e00 fs/ext4/extents.c:4241 ext4_map_blocks+0x985/0x1bd0 fs/ext4/inode.c:676 _ext4_get_block+0x1d1/0x4e0 fs/ext4/inode.c:819 ext4_get_block+0x39/0x50 fs/ext4/inode.c:836 ext4_block_write_begin+0x573/0x1340 fs/ext4/inode.c:1103 ext4_write_begin+0x67e/0x1690 fs/ext4/ext4_jbd2.h:-1 generic_perform_write+0x2ce/0x540 mm/filemap.c:3509 ext4_buffered_write_iter+0x4b8/0x640 fs/ext4/file.c:271 ext4_file_write_iter+0x53f/0x1980 fs/ext4/file.c:-1 do_iter_readv_writev+0x478/0x5f0 fs/read_write.c:-1 do_iter_write+0x189/0x630 fs/read_write.c:866 vfs_writev+0x2a9/0x530 fs/read_write.c:939 do_pwritev fs/read_write.c:1036 [inline] __do_sys_pwritev2 fs/read_write.c:1095 [inline] __se_sys_pwritev2+0x1af/0x2b0 fs/read_write.c:1086 __x64_sys_pwritev2+0xbf/0xd0 fs/read_write.c:1086 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb Freed by task 367: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4a/0x70 mm/kasan/common.c:45 kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370 ____kasan_slab_free+0x125/0x160 mm/kasan/common.c:362 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:370 kasan_slab_free include/linux/kasan.h:220 [inline] slab_free_hook mm/slub.c:1600 [inline] slab_free_freelist_hook+0xc5/0x190 mm/slub.c:1626 slab_free mm/slub.c:3208 [inline] kmem_cache_free+0x100/0x2d0 mm/slub.c:3224 mempool_free_slab+0x1d/0x30 mm/mempool.c:520 mempool_free+0xd8/0x340 mm/mempool.c:502 bio_free+0x24a/0x360 block/bio.c:266 bio_put+0xbf/0x110 block/bio.c:-1 blkdev_issue_zeroout+0x297/0x4b0 block/blk-lib.c:420 sb_issue_zeroout include/linux/blkdev.h:1384 [inline] ext4_issue_zeroout+0x129/0x1a0 fs/ext4/inode.c:438 ext4_ext_zeroout fs/ext4/extents.c:3128 [inline] ext4_ext_convert_to_initialized fs/ext4/extents.c:3633 [inline] ext4_ext_handle_unwritten_extents fs/ext4/extents.c:3943 [inline] ext4_ext_map_blocks+0x3934/0x5e00 fs/ext4/extents.c:4241 ext4_map_blocks+0x985/0x1bd0 fs/ext4/inode.c:676 _ext4_get_block+0x1d1/0x4e0 fs/ext4/inode.c:819 ext4_get_block+0x39/0x50 fs/ext4/inode.c:836 ext4_block_write_begin+0x573/0x1340 fs/ext4/inode.c:1103 ext4_write_begin+0x67e/0x1690 fs/ext4/ext4_jbd2.h:-1 generic_perform_write+0x2ce/0x540 mm/filemap.c:3509 ext4_buffered_write_iter+0x4b8/0x640 fs/ext4/file.c:271 ext4_file_write_iter+0x53f/0x1980 fs/ext4/file.c:-1 do_iter_readv_writev+0x478/0x5f0 fs/read_write.c:-1 do_iter_write+0x189/0x630 fs/read_write.c:866 vfs_writev+0x2a9/0x530 fs/read_write.c:939 do_pwritev fs/read_write.c:1036 [inline] __do_sys_pwritev2 fs/read_write.c:1095 [inline] __se_sys_pwritev2+0x1af/0x2b0 fs/read_write.c:1086 __x64_sys_pwritev2+0xbf/0xd0 fs/read_write.c:1086 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb The buggy address belongs to the object at ffff88812cddd000 which belongs to the cache bio-0 of size 216 The buggy address is located 112 bytes inside of 216-byte region [ffff88812cddd000, ffff88812cddd0d8) The buggy address belongs to the page: page:ffffea0004b37740 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x12cddd flags: 0x4000000000000200(slab) raw: 4000000000000200 dead000000000100 dead000000000122 ffff888107fbf980 raw: 0000000000000000 00000000000c000c 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x192800(GFP_NOWAIT|__GFP_NOWARN|__GFP_NORETRY|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 385, ts 40537370963, free_ts 0 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x179/0x180 mm/page_alloc.c:2462 get_page_from_freelist+0x223b/0x23d0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x290/0x620 mm/page_alloc.c:5384 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1813 [inline] new_slab+0x84/0x3f0 mm/slub.c:1874 new_slab_objects mm/slub.c:2632 [inline] ___slab_alloc+0x2a6/0x450 mm/slub.c:2796 __slab_alloc+0x63/0xa0 mm/slub.c:2836 slab_alloc_node mm/slub.c:2918 [inline] slab_alloc mm/slub.c:2960 [inline] kmem_cache_alloc+0x1ac/0x2d0 mm/slub.c:2965 mempool_alloc_slab+0x1d/0x30 mm/mempool.c:513 mempool_alloc+0x11e/0x460 mm/mempool.c:393 bio_alloc_bioset+0x18c/0x570 block/bio.c:486 bio_alloc include/linux/bio.h:412 [inline] submit_bh_wbc+0x1c6/0x6f0 fs/buffer.c:3057 submit_bh+0x2a/0x40 fs/buffer.c:3091 __ext4_read_bh fs/ext4/super.c:157 [inline] ext4_read_bh_nowait+0x15c/0x1e0 fs/ext4/super.c:169 ext4_sb_breadahead_unmovable+0xc8/0xe0 fs/ext4/super.c:244 __ext4_get_inode_loc+0x8dc/0xc30 fs/ext4/inode.c:4535 __ext4_get_inode_loc_noinmem fs/ext4/inode.c:4566 [inline] __ext4_iget+0x495/0x44c0 fs/ext4/inode.c:4816 page_owner free stack trace missing Memory state around the buggy address: ffff88812cddcf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88812cddcf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88812cddd000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88812cddd080: fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc fc ffff88812cddd100: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb ==================================================================