================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x979/0x21d0 fs/ext4/xattr.c:1730 Read of size 18446744073709551588 at addr ffff88815ba31440 by task syz.8.4528/14150 CPU: 1 PID: 14150 Comm: syz.8.4528 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/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+0x979/0x21d0 fs/ext4/xattr.c:1730 ext4_xattr_block_set+0x69d/0x3260 fs/ext4/xattr.c:1908 ext4_xattr_set_handle+0xe3b/0x1570 fs/ext4/xattr.c:2399 ext4_xattr_set+0x242/0x320 fs/ext4/xattr.c:2501 ext4_xattr_security_set+0x3c/0x50 fs/ext4/xattr_security.c:31 __vfs_setxattr+0x3f2/0x440 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:309 do_setxattr fs/xattr.c:594 [inline] setxattr+0x346/0x360 fs/xattr.c:617 path_setxattr+0x147/0x290 fs/xattr.c:636 __do_sys_setxattr fs/xattr.c:652 [inline] __se_sys_setxattr fs/xattr.c:648 [inline] __x64_sys_setxattr+0xc5/0xe0 fs/xattr.c:648 x64_sys_call+0x633/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:189 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:0x7fec6e79c799 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:00007fec6f719028 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc RAX: ffffffffffffffda RBX: 00007fec6ea16090 RCX: 00007fec6e79c799 RDX: 00002000000013c0 RSI: 0000200000000140 RDI: 0000200000000100 RBP: 00007fec6e832c99 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000700 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fec6ea16128 R14: 00007fec6ea16090 R15: 00007ffc50fd75f8 The buggy address belongs to the physical page: page:ffffea00056e8c40 refcount:2 mapcount:0 mapping:ffff888100488d50 index:0x1c pfn:0x15ba31 memcg:ffff888100239d40 aops:def_blk_aops ino:700008 flags: 0x560000000000205a(referenced|dirty|lru|workingset|private|zone=1) raw: 560000000000205a ffffea00048feb48 ffffea0005645948 ffff888100488d50 raw: 000000000000001c ffff888133714000 00000002ffffffff ffff888100239d40 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 14135, tgid 14134 (syz.8.4528), ts 584165583260, free_ts 584126188448 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2670 prep_new_page+0x1c/0x110 mm/page_alloc.c:2677 get_page_from_freelist+0x2d12/0x2d80 mm/page_alloc.c:4583 __alloc_pages+0x1fa/0x610 mm/page_alloc.c:5910 __folio_alloc+0x12/0x40 mm/page_alloc.c:5943 __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:2018 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_xattr_block_set+0x1e07/0x3260 fs/ext4/xattr.c:2073 ext4_xattr_set_handle+0xe3b/0x1570 fs/ext4/xattr.c:2399 ext4_xattr_set+0x242/0x320 fs/ext4/xattr.c:2501 ext4_xattr_trusted_set+0x3c/0x50 fs/ext4/xattr_trusted.c:38 __vfs_setxattr+0x3f2/0x440 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:309 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1578 [inline] free_pcp_prepare mm/page_alloc.c:1652 [inline] free_unref_page_prepare+0x742/0x750 mm/page_alloc.c:3618 free_unref_page_list+0x117/0x8c0 mm/page_alloc.c:3769 release_pages+0xaf2/0xb50 mm/swap.c:1048 free_pages_and_swap_cache+0x86/0xa0 mm/swap_state.c:315 tlb_batch_pages_flush mm/mmu_gather.c:59 [inline] tlb_flush_mmu_free mm/mmu_gather.c:254 [inline] tlb_flush_mmu+0x107/0x1f0 mm/mmu_gather.c:261 zap_pte_range mm/memory.c:1548 [inline] zap_pmd_range mm/memory.c:1597 [inline] zap_pud_range mm/memory.c:1626 [inline] zap_p4d_range mm/memory.c:1647 [inline] unmap_page_range+0x20d2/0x2330 mm/memory.c:1668 unmap_single_vma mm/memory.c:1714 [inline] unmap_vmas+0x34c/0x480 mm/memory.c:1754 exit_mmap+0x29b/0xc10 mm/mmap.c:3371 __mmput+0x93/0x360 kernel/fork.c:1309 mmput+0x4b/0x150 kernel/fork.c:1333 exit_mm kernel/exit.c:568 [inline] do_exit+0x994/0x2660 kernel/exit.c:873 do_group_exit+0x210/0x2d0 kernel/exit.c:1028 get_signal+0x13b5/0x1520 kernel/signal.c:2891 arch_do_signal_or_restart+0xd1/0x1140 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 Memory state around the buggy address: ffff88815ba31300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88815ba31380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88815ba31400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88815ba31480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88815ba31500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================