================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x1159/0x3860 fs/ext4/xattr.c:1731 Read of size 18446744073709551600 at addr ffff88812105beb8 by task syz-executor999/297 CPU: 1 PID: 297 Comm: syz-executor999 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/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+0x100/0x140 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+0x1159/0x3860 fs/ext4/xattr.c:1731 ext4_xattr_ibody_set+0x114/0x330 fs/ext4/xattr.c:2233 ext4_destroy_inline_data_nolock+0x20f/0x5e0 fs/ext4/inline.c:464 ext4_convert_inline_data_nolock+0x3df/0xcc0 fs/ext4/inline.c:1266 ext4_convert_inline_data+0x470/0x5b0 fs/ext4/inline.c:2083 ext4_fallocate+0xfb/0x1a60 fs/ext4/extents.c:4783 vfs_fallocate+0x4b9/0x590 fs/open.c:310 ksys_fallocate fs/open.c:333 [inline] __do_sys_fallocate fs/open.c:341 [inline] __se_sys_fallocate fs/open.c:339 [inline] __x64_sys_fallocate+0xc0/0x110 fs/open.c:339 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f8df276c3d9 Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 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 d8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffda59ad588 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 6f6f6c2f7665642f RCX: 00007f8df276c3d9 RDX: 0000000000020000 RSI: 0000000000000020 RDI: 0000000000000005 RBP: 00007ffda59ad598 R08: 00007f8df274fd80 R09: 00007f8df274fd80 R10: 0000000000008000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000002 R14: 00007f8df27f4c80 R15: 0000000000000002 The buggy address belongs to the page: page:ffffea00048416c0 refcount:3 mapcount:1 mapping:ffff88810044ad10 index:0x2 pfn:0x12105b aops:def_blk_aops ino:0 flags: 0x400000000002203e(referenced|uptodate|dirty|lru|active|private|mappedtodisk) raw: 400000000002203e ffffea00042c9f08 ffffea00042c42c8 ffff88810044ad10 raw: 0000000000000002 ffff8881214b8930 0000000300000000 ffff888100146000 page dumped because: kasan: bad access detected page->mem_cgroup:ffff888100146000 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 297, ts 26635227423, free_ts 26634053123 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x176/0x190 mm/page_alloc.c:2462 get_page_from_freelist+0x225f/0x23f0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x29a/0x640 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+0x45e/0xbf0 fs/ext4/inode.c:4456 __ext4_get_inode_loc_noinmem fs/ext4/inode.c:4566 [inline] __ext4_iget+0x491/0x44e0 fs/ext4/inode.c:4816 ext4_fill_super+0x6f35/0x8d90 fs/ext4/super.c:4959 mount_bdev+0x26a/0x380 fs/super.c:1453 ext4_mount+0x34/0x40 fs/ext4/super.c:6666 legacy_get_tree+0xed/0x190 fs/fs_context.c:593 vfs_get_tree+0x89/0x260 fs/super.c:1583 do_new_mount+0x25a/0xa30 fs/namespace.c:3006 path_mount+0x581/0xca0 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+0xe41/0xe90 mm/swap.c:1103 __pagevec_release+0x71/0xe0 mm/swap.c:1123 pagevec_release include/linux/pagevec.h:88 [inline] shmem_undo_range+0x741/0x1740 mm/shmem.c:965 shmem_truncate_range mm/shmem.c:1069 [inline] shmem_evict_inode+0x1dc/0x970 mm/shmem.c:1169 evict+0x4a9/0x940 fs/inode.c:612 iput_final fs/inode.c:1736 [inline] iput+0x654/0x7e0 fs/inode.c:1762 dentry_unlink_inode+0x2d5/0x390 fs/dcache.c:378 __dentry_kill+0x45b/0x660 fs/dcache.c:583 dentry_kill+0xc0/0x2a0 fs/dcache.c:-1 dput+0x42/0x80 fs/dcache.c:883 do_renameat2+0x7f2/0xe50 fs/namei.c:4673 __do_sys_rename fs/namei.c:4720 [inline] __se_sys_rename fs/namei.c:4718 [inline] __x64_sys_rename+0x86/0x90 fs/namei.c:4718 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb Memory state around the buggy address: ffff88812105bd80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88812105be00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88812105be80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88812105bf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88812105bf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =====================================