loop7: detected capacity change from 0 to 1024 EXT4-fs (loop7): Ignoring removed mblk_io_submit option EXT4-fs (loop7): mounted filesystem without journal. Opts: auto_da_alloc,mblk_io_submit,,errors=continue. Quota mode: none. ================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x1e04/0x3940 fs/ext4/xattr.c:1715 Read of size 18446744073709550624 at addr ffff88811fff77e0 by task syz.7.1196/4571 CPU: 1 PID: 4571 Comm: syz.7.1196 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026 Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:88 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:427 [inline] kasan_report+0xf1/0x140 mm/kasan/report.c:444 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+0x1e04/0x3940 fs/ext4/xattr.c:1715 ext4_xattr_block_set+0x4f8/0x2d10 fs/ext4/xattr.c:1924 ext4_xattr_set_handle+0xbc4/0x12b0 fs/ext4/xattr.c:2407 ext4_xattr_set+0x242/0x320 fs/ext4/xattr.c:2508 ext4_xattr_trusted_set+0x3c/0x50 fs/ext4/xattr_trusted.c:38 __vfs_setxattr+0x3e1/0x430 fs/xattr.c:182 __vfs_setxattr_noperm+0x12a/0x5e0 fs/xattr.c:216 __vfs_setxattr_locked+0x212/0x230 fs/xattr.c:277 vfs_setxattr+0x167/0x2e0 fs/xattr.c:303 do_setxattr fs/xattr.c:588 [inline] setxattr+0x36c/0x390 fs/xattr.c:611 path_setxattr+0x147/0x290 fs/xattr.c:630 __do_sys_lsetxattr fs/xattr.c:653 [inline] __se_sys_lsetxattr fs/xattr.c:649 [inline] __x64_sys_lsetxattr+0xc2/0xe0 fs/xattr.c:649 x64_sys_call+0x8cc/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:190 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f9dc4882819 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:00007f9dc32dd028 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd RAX: ffffffffffffffda RBX: 00007f9dc4afbfa0 RCX: 00007f9dc4882819 RDX: 0000200000000500 RSI: 0000200000000100 RDI: 0000200000000040 RBP: 00007f9dc4918c91 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fe37 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f9dc4afc038 R14: 00007f9dc4afbfa0 R15: 00007ffeb2dd0578 The buggy address belongs to the page: page:ffffea00047ffdc0 refcount:2 mapcount:0 mapping:ffff88810928f258 index:0x1c pfn:0x11fff7 memcg:ffff88810cbd1140 aops:def_blk_aops ino:700007 flags: 0x400000000000203a(referenced|dirty|lru|active|private|zone=1) raw: 400000000000203a ffffea0004900d08 ffffea0004bbc488 ffff88810928f258 raw: 000000000000001c ffff88810d09adc8 00000002ffffffff ffff88810cbd1140 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Movable, gfp_mask 0x108c48(GFP_NOFS|__GFP_NOFAIL|__GFP_HARDWALL|__GFP_MOVABLE), pid 4571, ts 204638850074, free_ts 204638393057 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2605 prep_new_page+0x1c/0x110 mm/page_alloc.c:2611 get_page_from_freelist+0x2d3a/0x2dc0 mm/page_alloc.c:4485 __alloc_pages+0x1a2/0x460 mm/page_alloc.c:5822 __alloc_pages_node include/linux/gfp.h:595 [inline] alloc_pages_node include/linux/gfp.h:609 [inline] alloc_pages include/linux/gfp.h:622 [inline] __page_cache_alloc include/linux/pagemap.h:305 [inline] pagecache_get_page+0xac6/0xde0 mm/filemap.c:1955 find_or_create_page include/linux/pagemap.h:418 [inline] grow_dev_page fs/buffer.c:949 [inline] grow_buffers fs/buffer.c:1014 [inline] __getblk_slow fs/buffer.c:1041 [inline] __getblk_gfp+0x238/0x7d0 fs/buffer.c:1336 sb_getblk include/linux/buffer_head.h:361 [inline] ext4_xattr_block_set+0x1d7c/0x2d10 fs/ext4/xattr.c:2105 ext4_xattr_set_handle+0xbc4/0x12b0 fs/ext4/xattr.c:2407 ext4_xattr_set+0x242/0x320 fs/ext4/xattr.c:2508 ext4_xattr_user_set+0xc4/0xf0 fs/ext4/xattr_user.c:41 __vfs_setxattr+0x3e1/0x430 fs/xattr.c:182 __vfs_setxattr_noperm+0x12a/0x5e0 fs/xattr.c:216 __vfs_setxattr_locked+0x212/0x230 fs/xattr.c:277 vfs_setxattr+0x167/0x2e0 fs/xattr.c:303 do_setxattr fs/xattr.c:588 [inline] setxattr+0x36c/0x390 fs/xattr.c:611 path_setxattr+0x147/0x290 fs/xattr.c:630 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1472 [inline] free_pcp_prepare mm/page_alloc.c:1544 [inline] free_unref_page_prepare+0x542/0x550 mm/page_alloc.c:3534 free_unref_page_list+0x13a/0x9d0 mm/page_alloc.c:3671 release_pages+0x1006/0x1060 mm/swap.c:1015 __pagevec_lru_add+0xb86/0xc30 mm/swap.c:1108 lru_cache_add+0x287/0x7e0 mm/swap.c:504 add_to_page_cache_lru+0x18e/0x210 mm/filemap.c:1010 pagecache_get_page+0xb87/0xde0 mm/filemap.c:1966 find_or_create_page include/linux/pagemap.h:418 [inline] grow_dev_page fs/buffer.c:949 [inline] grow_buffers fs/buffer.c:1014 [inline] __getblk_slow fs/buffer.c:1041 [inline] __getblk_gfp+0x238/0x7d0 fs/buffer.c:1336 sb_getblk include/linux/buffer_head.h:361 [inline] __ext4_get_inode_loc+0x46e/0xcd0 fs/ext4/inode.c:4363 __ext4_get_inode_loc_noinmem fs/ext4/inode.c:4471 [inline] __ext4_iget+0x448/0x3e50 fs/ext4/inode.c:4726 ext4_lookup+0x4b4/0x960 fs/ext4/namei.c:1858 __lookup_slow+0x2b8/0x410 fs/namei.c:1671 lookup_slow+0x57/0x70 fs/namei.c:1688 walk_component+0x325/0x460 fs/namei.c:1984 lookup_last fs/namei.c:2439 [inline] path_lookupat+0x180/0x490 fs/namei.c:2463 filename_lookup+0x214/0x540 fs/namei.c:2492 Memory state around the buggy address: ffff88811fff7680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88811fff7700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88811fff7780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88811fff7800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88811fff7880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================