loop3: detected capacity change from 1024 to 64 ================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0xaf2/0x21d0 fs/ext4/xattr.c:1708 Read of size 18446744073709551600 at addr ffff88813585d2b8 by task syz.3.23/411 CPU: 0 PID: 411 Comm: syz.3.23 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: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+0xaf2/0x21d0 fs/ext4/xattr.c:1708 ext4_xattr_ibody_set+0x24e/0x6c0 fs/ext4/xattr.c:2215 ext4_destroy_inline_data_nolock+0x234/0x5d0 fs/ext4/inline.c:468 ext4_convert_inline_data_nolock+0x3c0/0x9e0 fs/ext4/inline.c:1250 ext4_convert_inline_data+0x4b9/0x5f0 fs/ext4/inline.c:2111 ext4_fallocate+0xed/0x1d20 fs/ext4/extents.c:4812 vfs_fallocate+0x4c5/0x5a0 fs/open.c:324 ksys_fallocate fs/open.c:347 [inline] __do_sys_fallocate fs/open.c:355 [inline] __se_sys_fallocate fs/open.c:353 [inline] __x64_sys_fallocate+0xc0/0x110 fs/open.c:353 x64_sys_call+0x7fa/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:286 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:0x7f23be59cdd9 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:00007f23bf3cf028 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f23be816090 RCX: 00007f23be59cdd9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000008 RBP: 00007f23be632d69 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000008800000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f23be816128 R14: 00007f23be816090 R15: 00007ffe7b6e8768 The buggy address belongs to the physical page: page:ffffea0004d61740 refcount:2 mapcount:0 mapping:ffff88810048ab50 index:0x2 pfn:0x13585d memcg:ffff88810023f500 aops:def_blk_aops ino:700003 flags: 0x5600000000002052(referenced|lru|workingset|private|zone=1) raw: 5600000000002052 ffff888100281ed0 ffffea0004d8b2c8 ffff88810048ab50 raw: 0000000000000002 ffff888117e6bbd0 00000002ffffffff 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 411, tgid 407 (syz.3.23), ts 30332035938, free_ts 30331613730 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2672 prep_new_page+0x1c/0x110 mm/page_alloc.c:2679 get_page_from_freelist+0x2d12/0x2d80 mm/page_alloc.c:4585 __alloc_pages+0x1fa/0x610 mm/page_alloc.c:5926 __folio_alloc+0x12/0x40 mm/page_alloc.c:5959 __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+0x6ee/0xa60 mm/filemap.c:2020 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+0x217/0x7d0 fs/buffer.c:1376 sb_getblk include/linux/buffer_head.h:356 [inline] __ext4_get_inode_loc+0x481/0xdf0 fs/ext4/inode.c:4516 ext4_get_inode_loc+0x81/0xf0 fs/ext4/inode.c:4644 ext4_convert_inline_data+0x262/0x5f0 fs/ext4/inline.c:2099 ext4_fallocate+0xed/0x1d20 fs/ext4/extents.c:4812 vfs_fallocate+0x4c5/0x5a0 fs/open.c:324 ksys_fallocate fs/open.c:347 [inline] __do_sys_fallocate fs/open.c:355 [inline] __se_sys_fallocate fs/open.c:353 [inline] __x64_sys_fallocate+0xc0/0x110 fs/open.c:353 x64_sys_call+0x7fa/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:286 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1580 [inline] free_pcp_prepare mm/page_alloc.c:1654 [inline] free_unref_page_prepare+0x7f8/0x800 mm/page_alloc.c:3620 free_unref_page_list+0x117/0x8c0 mm/page_alloc.c:3771 release_pages+0xc93/0xcf0 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+0x1aa/0x370 mm/mmu_gather.c:361 unmap_region+0x2b7/0x320 mm/mmap.c:2419 do_mas_align_munmap+0xbed/0x1320 mm/mmap.c:2693 do_mas_munmap+0x241/0x2b0 mm/mmap.c:2751 __mmap_region mm/mmap.c:2799 [inline] mmap_region+0x8ba/0x21f0 mm/mmap.c:3030 do_mmap+0x856/0xdd0 mm/mmap.c:1491 vm_mmap_pgoff+0x224/0x410 mm/util.c:525 ksys_mmap_pgoff+0x161/0x1d0 mm/mmap.c:1537 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:93 [inline] __se_sys_mmap arch/x86/kernel/sys_x86_64.c:86 [inline] __x64_sys_mmap+0xfa/0x110 arch/x86/kernel/sys_x86_64.c:86 x64_sys_call+0x8fd/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:10 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: ffff88813585d180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88813585d200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88813585d280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88813585d300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88813585d380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================