loop7: detected capacity change from 0 to 33280 EXT4-fs (loop7): mounted filesystem without journal. Quota mode: none. loop7: detected capacity change from 33280 to 49 ================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0xb02/0x2230 fs/ext4/xattr.c:1710 Read of size 18446744073709551600 at addr ffff888138e4c6e8 by task syz.7.1029/3092 CPU: 0 PID: 3092 Comm: syz.7.1029 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:88 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106 print_address_description+0x71/0x200 mm/kasan/report.c:316 print_report+0x4a/0x60 mm/kasan/report.c:420 kasan_report+0x122/0x150 mm/kasan/report.c:524 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x249/0x2a0 mm/kasan/generic.c:189 memmove+0x2d/0x70 mm/kasan/shadow.c:54 ext4_xattr_set_entry+0xb02/0x2230 fs/ext4/xattr.c:1710 ext4_xattr_ibody_set+0x25b/0x720 fs/ext4/xattr.c:2217 ext4_destroy_inline_data_nolock+0x234/0x5e0 fs/ext4/inline.c:468 ext4_convert_inline_data_to_extent fs/ext4/inline.c:628 [inline] ext4_try_to_write_inline_data+0x764/0x1330 fs/ext4/inline.c:769 ext4_write_begin+0x1f8/0xfc0 fs/ext4/inode.c:1207 ext4_da_write_begin+0x3ed/0x880 fs/ext4/inode.c:3003 generic_perform_write+0x32d/0x740 mm/filemap.c:3927 ext4_buffered_write_iter+0x38f/0x690 fs/ext4/file.c:285 ext4_file_write_iter+0x4b2/0x1540 fs/ext4/file.c:-1 call_write_iter include/linux/fs.h:2282 [inline] aio_write+0x558/0x770 fs/aio.c:1615 __io_submit_one fs/aio.c:-1 [inline] io_submit_one+0x71b/0x1910 fs/aio.c:2034 __do_sys_io_submit fs/aio.c:2093 [inline] __se_sys_io_submit+0x17b/0x3e0 fs/aio.c:2063 __x64_sys_io_submit+0x7b/0x90 fs/aio.c:2063 x64_sys_call+0x81d/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:210 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:0x7f7d1b7a9b59 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:00007f7d1c6b8028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d1 RAX: ffffffffffffffda RBX: 00007f7d1ba35fa0 RCX: 00007f7d1b7a9b59 RDX: 000020000002a640 RSI: 0000000000000001 RDI: 00007f7d1c697000 RBP: 00007f7d1b83a18b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f7d1ba36038 R14: 00007f7d1ba35fa0 R15: 00007ffdc3c8c408 The buggy address belongs to the physical page: page:ffffea0004e39300 refcount:3 mapcount:0 mapping:ffff88810b6e05d0 index:0x3 pfn:0x138e4c memcg:ffff88810023f500 aops:def_blk_aops ino:700007 flags: 0x460000000000204a(referenced|dirty|workingset|private|zone=1) raw: 460000000000204a 0000000000000000 dead000000000122 ffff88810b6e05d0 raw: 0000000000000003 ffff888134ccf540 00000003ffffffff ffff88810023f500 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Movable, gfp_mask 0x148c48(GFP_NOFS|__GFP_NOFAIL|__GFP_COMP|__GFP_HARDWALL|__GFP_MOVABLE), pid 3092, tgid 3091 (syz.7.1029), ts 75486122285, free_ts 75479915298 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2673 prep_new_page+0x1c/0x110 mm/page_alloc.c:2680 get_page_from_freelist+0x2ca9/0x2d20 mm/page_alloc.c:4587 __alloc_pages+0x1fa/0x610 mm/page_alloc.c:5931 __folio_alloc+0x12/0x40 mm/page_alloc.c:5964 __folio_alloc_node include/linux/gfp.h:245 [inline] folio_alloc include/linux/gfp.h:274 [inline] filemap_alloc_folio include/linux/pagemap.h:515 [inline] __filemap_get_folio+0x6fe/0xa70 mm/filemap.c:2033 pagecache_get_page+0x2b/0x110 mm/folio-compat.c:110 find_or_create_page include/linux/pagemap.h:656 [inline] grow_dev_page fs/buffer.c:989 [inline] grow_buffers fs/buffer.c:1054 [inline] __getblk_slow fs/buffer.c:1081 [inline] __getblk_gfp+0x211/0x7c0 fs/buffer.c:1376 sb_getblk include/linux/buffer_head.h:356 [inline] __ext4_get_inode_loc+0x45f/0xd60 fs/ext4/inode.c:4527 ext4_get_inode_loc fs/ext4/inode.c:4655 [inline] ext4_reserve_inode_write+0x12a/0x2e0 fs/ext4/inode.c:5944 __ext4_mark_inode_dirty+0xa8/0x5d0 fs/ext4/inode.c:6121 ext4_dirty_inode+0xbd/0x100 fs/ext4/inode.c:6158 __mark_inode_dirty+0x1fd/0x9c0 fs/fs-writeback.c:2455 generic_update_time fs/inode.c:1957 [inline] inode_update_time fs/inode.c:1970 [inline] __file_update_time+0x245/0x270 fs/inode.c:2158 file_modified_flags+0x390/0x440 fs/inode.c:2231 file_modified+0x17/0x20 fs/inode.c:2247 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1581 [inline] free_pcp_prepare mm/page_alloc.c:1655 [inline] free_unref_page_prepare+0x81b/0x820 mm/page_alloc.c:3622 free_unref_page_list+0x117/0x8d0 mm/page_alloc.c:3773 release_pages+0xc7e/0xce0 mm/swap.c:1053 free_pages_and_swap_cache+0x86/0xa0 mm/swap_state.c:316 tlb_batch_pages_flush mm/mmu_gather.c:59 [inline] tlb_flush_mmu_free mm/mmu_gather.c:254 [inline] tlb_flush_mmu mm/mmu_gather.c:261 [inline] tlb_finish_mmu+0x1b2/0x380 mm/mmu_gather.c:361 exit_mmap+0x41d/0xc10 mm/mmap.c:3393 __mmput+0x92/0x340 kernel/fork.c:1321 mmput+0x4b/0x150 kernel/fork.c:1345 exit_mm kernel/exit.c:575 [inline] do_exit+0xa62/0x29f0 kernel/exit.c:883 do_group_exit+0x21b/0x2e0 kernel/exit.c:1040 get_signal+0x167c/0x1700 kernel/signal.c:2904 arch_do_signal_or_restart+0xd1/0x11c0 arch/x86/kernel/signal.c:871 exit_to_user_mode_loop+0x7a/0xb0 kernel/entry/common.c:174 exit_to_user_mode_prepare+0x87/0xd0 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:303 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:82 Memory state around the buggy address: ffff888138e4c580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888138e4c600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888138e4c680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888138e4c700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888138e4c780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== EXT4-fs error (device loop7): mb_free_blocks:1839: group 0, inode 18: block 128:freeing already freed block (bit 127); block bitmap corrupt. EXT4-fs (loop7): pa ffff8881140e89d8: logic 0, phys. 65, len 64 EXT4-fs error (device loop7): ext4_mb_release_inode_pa:4894: group 0, free 64, pa_free 63