EXT4-fs (loop7): mounted filesystem without journal. Quota mode: none. ================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x1a71/0x21d0 fs/ext4/xattr.c:1703 Read of size 18446744073709550592 at addr ffff88813a00a800 by task syz.7.323/1616 CPU: 0 PID: 1616 Comm: syz.7.323 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/24/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+0x1a71/0x21d0 fs/ext4/xattr.c:1703 ext4_xattr_block_set+0x69d/0x3260 fs/ext4/xattr.c:1924 ext4_xattr_set_handle+0xbc4/0x12c0 fs/ext4/xattr.c:2418 ext4_xattr_set+0x242/0x320 fs/ext4/xattr.c:2520 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 do_setxattr fs/xattr.c:594 [inline] setxattr+0x346/0x360 fs/xattr.c:617 path_setxattr+0x147/0x290 fs/xattr.c:636 __do_sys_lsetxattr fs/xattr.c:659 [inline] __se_sys_lsetxattr fs/xattr.c:655 [inline] __x64_sys_lsetxattr+0xc2/0xe0 fs/xattr.c:655 x64_sys_call+0x8b7/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:190 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:0x7f11eb39af79 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:00007f11ec2d5028 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd RAX: ffffffffffffffda RBX: 00007f11eb615fa0 RCX: 00007f11eb39af79 RDX: 0000200000000300 RSI: 00002000000000c0 RDI: 0000200000000100 RBP: 00007f11eb4316e0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fe37 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f11eb616038 R14: 00007f11eb615fa0 R15: 00007ffde5d0fc98 The buggy address belongs to the physical page: page:ffffea0004e80280 refcount:2 mapcount:0 mapping:ffff88810b6f94d0 index:0x1c pfn:0x13a00a memcg:ffff88810023ce00 aops:def_blk_aops ino:700007 flags: 0x560000000000205a(referenced|dirty|lru|workingset|private|zone=1) raw: 560000000000205a ffffea0004543008 ffffea0004e802c8 ffff88810b6f94d0 raw: 000000000000001c ffff88813309d7e0 00000002ffffffff ffff88810023ce00 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 1616, tgid 1615 (syz.7.323), ts 79690242748, free_ts 79687221061 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2643 prep_new_page+0x1c/0x110 mm/page_alloc.c:2650 get_page_from_freelist+0x2d12/0x2d80 mm/page_alloc.c:4554 __alloc_pages+0x1d9/0x480 mm/page_alloc.c:5868 __folio_alloc+0x12/0x40 mm/page_alloc.c:5900 __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+0x721/0x9b0 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:2089 ext4_xattr_set_handle+0xbc4/0x12c0 fs/ext4/xattr.c:2418 ext4_xattr_set+0x242/0x320 fs/ext4/xattr.c:2520 ext4_xattr_user_set+0xc4/0xf0 fs/ext4/xattr_user.c:41 __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:1551 [inline] free_pcp_prepare mm/page_alloc.c:1625 [inline] free_unref_page_prepare+0x742/0x750 mm/page_alloc.c:3589 free_unref_page_list+0x117/0x8c0 mm/page_alloc.c:3740 release_pages+0xaf2/0xb50 mm/swap.c:1048 __pagevec_release+0x71/0xe0 mm/swap.c:1068 pagevec_release include/linux/pagevec.h:71 [inline] folio_batch_release include/linux/pagevec.h:135 [inline] shmem_undo_range+0x574/0x1540 mm/shmem.c:955 shmem_truncate_range mm/shmem.c:1071 [inline] shmem_evict_inode+0x255/0xa50 mm/shmem.c:1180 evict+0x4d7/0x8f0 fs/inode.c:708 iput_final fs/inode.c:1844 [inline] iput+0x620/0x670 fs/inode.c:1870 dentry_unlink_inode+0x33d/0x3f0 fs/dcache.c:405 __dentry_kill+0x460/0x670 fs/dcache.c:611 dentry_kill+0xc0/0x2a0 fs/dcache.c:-1 dput+0x42/0x80 fs/dcache.c:918 __fput+0x5be/0x8f0 fs/file_table.c:328 ____fput+0x15/0x20 fs/file_table.c:348 task_work_run+0x1e1/0x250 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x9b/0xb0 kernel/entry/common.c:177 Memory state around the buggy address: ffff88813a00a700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88813a00a780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88813a00a800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88813a00a880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88813a00a900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================