================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x1326/0x3860 fs/ext4/xattr.c:1729 Read of size 18446744073709551604 at addr ffff88812b1889b4 by task syz-executor/1755 CPU: 1 PID: 1755 Comm: syz-executor Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x1a7/0x208 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+0x249/0x2a0 mm/kasan/generic.c:189 memmove+0x2d/0x70 mm/kasan/shadow.c:54 ext4_xattr_set_entry+0x1326/0x3860 fs/ext4/xattr.c:1729 ext4_xattr_ibody_set+0x122/0x360 fs/ext4/xattr.c:2229 ext4_xattr_move_to_block fs/ext4/xattr.c:2615 [inline] ext4_xattr_make_inode_space fs/ext4/xattr.c:2683 [inline] ext4_expand_extra_isize_ea+0xf59/0x1930 fs/ext4/xattr.c:2771 __ext4_expand_extra_isize+0x2fe/0x3e0 fs/ext4/inode.c:6003 ext4_try_to_expand_extra_isize fs/ext4/inode.c:6046 [inline] __ext4_mark_inode_dirty+0x3cf/0x610 fs/ext4/inode.c:6123 ext4_dirty_inode+0xe0/0x120 fs/ext4/inode.c:6162 __mark_inode_dirty+0xbe/0x9c0 fs/fs-writeback.c:2258 generic_update_time fs/inode.c:1846 [inline] inode_update_time fs/inode.c:1859 [inline] touch_atime+0x300/0x4b0 fs/inode.c:1931 file_accessed include/linux/fs.h:2395 [inline] iterate_dir+0x489/0x570 fs/readdir.c:70 __do_sys_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64+0xf2/0x250 fs/readdir.c:354 __x64_sys_getdents64+0x7b/0x90 fs/readdir.c:354 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7ff3832191b3 Code: c7 c0 e8 ff ff ff 64 c7 00 16 00 00 00 31 c0 eb 9e e8 81 9b fd ff 90 b8 ff ff ff 7f 48 39 c2 48 0f 47 d0 b8 d9 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 05 c3 0f 1f 40 00 48 c7 c2 e8 ff ff ff f7 d8 RSP: 002b:00007ffe05e947a8 EFLAGS: 00000293 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 000055555abd9910 RCX: 00007ff3832191b3 RDX: 0000000000008000 RSI: 000055555abd9940 RDI: 0000000000000005 RBP: 000055555abd9940 R08: 00007ff383440e20 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000293 R12: 000055555abd9914 R13: ffffffffffffffe8 R14: 0000000000000010 R15: 00007ffe05e96a50 The buggy address belongs to the page: page:ffffea0004ac6200 refcount:2 mapcount:0 mapping:ffff888110772490 index:0x1 pfn:0x12b188 aops:def_blk_aops ino:0 flags: 0x400000000002203e(referenced|uptodate|dirty|lru|active|private|mappedtodisk) raw: 400000000002203e ffffea0004502f88 ffffea0004d7f088 ffff888110772490 raw: 0000000000000001 ffff8881345281f8 00000002ffffffff ffff88810ee2e000 page dumped because: kasan: bad access detected page->mem_cgroup:ffff88810ee2e000 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 2160, ts 92265269505, free_ts 92243462995 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+0x223b/0x23d0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x290/0x620 mm/page_alloc.c:5384 __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] __page_cache_alloc include/linux/pagemap.h:290 [inline] pagecache_get_page+0x63e/0x930 mm/filemap.c:1848 find_or_create_page include/linux/pagemap.h:402 [inline] grow_dev_page fs/buffer.c:976 [inline] grow_buffers fs/buffer.c:1045 [inline] __getblk_slow fs/buffer.c:1072 [inline] __getblk_gfp+0x212/0x780 fs/buffer.c:1370 sb_getblk include/linux/buffer_head.h:361 [inline] __ext4_get_inode_loc+0x467/0xc30 fs/ext4/inode.c:4449 __ext4_get_inode_loc_noinmem fs/ext4/inode.c:4559 [inline] __ext4_iget+0x495/0x44c0 fs/ext4/inode.c:4809 ext4_fill_super+0x6f30/0x8d70 fs/ext4/super.c:4954 mount_bdev+0x28b/0x3a0 fs/super.c:1442 ext4_mount+0x34/0x40 fs/ext4/super.c:6661 legacy_get_tree+0xed/0x190 fs/fs_context.c:593 vfs_get_tree+0x89/0x260 fs/super.c:1572 do_new_mount+0x25a/0xa20 fs/namespace.c:3006 path_mount+0x585/0xc90 fs/namespace.c:3336 do_mount fs/namespace.c:3349 [inline] __do_sys_mount fs/namespace.c:3557 [inline] __se_sys_mount+0x320/0x390 fs/namespace.c:3534 __x64_sys_mount+0xbf/0xd0 fs/namespace.c:3534 page last free stack trace: reset_page_owner include/linux/page_owner.h:28 [inline] free_pages_prepare mm/page_alloc.c:1349 [inline] free_pcp_prepare mm/page_alloc.c:1421 [inline] free_unref_page_prepare+0x2b7/0x2d0 mm/page_alloc.c:3336 free_unref_page_list+0x129/0x9c0 mm/page_alloc.c:3443 release_pages+0xe52/0xea0 mm/swap.c:1103 free_pages_and_swap_cache+0x86/0xa0 mm/swap_state.c:356 tlb_batch_pages_flush mm/mmu_gather.c:49 [inline] tlb_flush_mmu_free mm/mmu_gather.c:240 [inline] tlb_flush_mmu mm/mmu_gather.c:247 [inline] tlb_finish_mmu+0x17e/0x310 mm/mmu_gather.c:326 exit_mmap+0x329/0x590 mm/mmap.c:3387 __mmput+0x93/0x2f0 kernel/fork.c:1153 mmput+0x4e/0x150 kernel/fork.c:1176 exit_mm kernel/exit.c:539 [inline] do_exit+0x9ec/0x2500 kernel/exit.c:859 do_group_exit+0x141/0x310 kernel/exit.c:986 __do_sys_exit_group kernel/exit.c:997 [inline] __se_sys_exit_group kernel/exit.c:995 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:995 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb Memory state around the buggy address: ffff88812b188880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88812b188900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88812b188980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88812b188a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88812b188a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================