================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x1339/0x36c0 fs/ext4/xattr.c:1741 Read of size 18446744073709551600 at addr ffff88812bc49008 by task syz.2.16/483 CPU: 0 PID: 483 Comm: syz.2.16 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x169/0x1d8 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 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x280/0x290 mm/kasan/generic.c:189 memmove+0x2d/0x70 mm/kasan/shadow.c:54 ext4_xattr_set_entry+0x1339/0x36c0 fs/ext4/xattr.c:1741 ext4_xattr_ibody_set+0x122/0x360 fs/ext4/xattr.c:2244 ext4_destroy_inline_data_nolock+0x1da/0x590 fs/ext4/inline.c:455 ext4_convert_inline_data_nolock+0x3c2/0xc70 fs/ext4/inline.c:1248 ext4_try_add_inline_entry+0x78a/0xae0 fs/ext4/inline.c:1357 ext4_add_entry+0x5e9/0xf10 fs/ext4/namei.c:2414 ext4_add_nondir+0x97/0x260 fs/ext4/namei.c:2786 ext4_create+0x2d4/0x450 fs/ext4/namei.c:2831 lookup_open fs/namei.c:3255 [inline] open_last_lookups fs/namei.c:3325 [inline] path_openat+0x16e3/0x3160 fs/namei.c:3514 do_filp_open+0x1b3/0x3e0 fs/namei.c:3544 do_sys_openat2+0x14c/0x6d0 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_openat fs/open.c:1249 [inline] __se_sys_openat fs/open.c:1244 [inline] __x64_sys_openat+0x136/0x160 fs/open.c:1244 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f7d91dd9169 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f7d9184b038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f7d91ff1fa0 RCX: 00007f7d91dd9169 RDX: 000000000000275a RSI: 00002000000000c0 RDI: ffffffffffffff9c RBP: 00007f7d91e5a2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f7d91ff1fa0 R15: 00007ffec43fc8c8 The buggy address belongs to the page: page:ffffea0004af1240 refcount:1 mapcount:0 mapping:0000000000000000 index:0x7fe7d1b8f pfn:0x12bc49 anon flags: 0x4000000000080004(uptodate|swapbacked) raw: 4000000000080004 dead000000000100 dead000000000122 ffff88810d8ccb81 raw: 00000007fe7d1b8f 0000000000000000 00000001ffffffff ffff888100140000 page dumped because: kasan: bad access detected page->mem_cgroup:ffff888100140000 page_owner tracks the page as allocated page last allocated via order 0, migratetype Movable, gfp_mask 0x8100dca(GFP_HIGHUSER_MOVABLE|__GFP_ZERO|0x8000000), pid 423, ts 46428947322, 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+0x2235/0x23d0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x268/0x5f0 mm/page_alloc.c:5370 __alloc_pages include/linux/gfp.h:544 [inline] __alloc_pages_node include/linux/gfp.h:557 [inline] alloc_pages_node include/linux/gfp.h:571 [inline] alloc_pages include/linux/gfp.h:590 [inline] do_anonymous_page mm/memory.c:3963 [inline] handle_pte_fault+0x1719/0x3750 mm/memory.c:4786 __handle_mm_fault mm/memory.c:4944 [inline] handle_mm_fault+0xf3f/0x16a0 mm/memory.c:5358 do_user_addr_fault+0x5a2/0xc80 arch/x86/mm/fault.c:1362 handle_page_fault arch/x86/mm/fault.c:1428 [inline] exc_page_fault+0x5a/0xc0 arch/x86/mm/fault.c:1484 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:571 page_owner free stack trace missing Memory state around the buggy address: ffff88812bc48f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88812bc48f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88812bc49000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88812bc49080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88812bc49100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================