================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0xa14/0x1ee0 fs/ext4/xattr.c:1763 Read of size 18446744073709551600 at addr ffff88803547eeb8 by task syz.1.4151/26812 CPU: 0 PID: 26812 Comm: syz.1.4151 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xa8/0x210 mm/kasan/report.c:468 kasan_report+0x117/0x150 mm/kasan/report.c:581 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x241/0x290 mm/kasan/generic.c:187 __asan_memmove+0x29/0x70 mm/kasan/shadow.c:94 ext4_xattr_set_entry+0xa14/0x1ee0 fs/ext4/xattr.c:1763 ext4_xattr_ibody_set+0x262/0x700 fs/ext4/xattr.c:2272 ext4_destroy_inline_data_nolock+0x23b/0x5f0 fs/ext4/inline.c:467 ext4_convert_inline_data_nolock+0x1f1/0x730 fs/ext4/inline.c:1230 ext4_convert_inline_data+0x47c/0x5b0 fs/ext4/inline.c:2100 ext4_fallocate+0xef/0x1cd0 fs/ext4/extents.c:4835 vfs_fallocate+0x585/0x6f0 fs/open.c:324 ksys_fallocate fs/open.c:347 [inline] __do_sys_fallocate fs/open.c:355 [inline] __se_sys_fallocate fs/open.c:353 [inline] __x64_sys_fallocate+0xc1/0x110 fs/open.c:353 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f43ec3a94d9 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:00007f43ed33a028 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f43ec626090 RCX: 00007f43ec3a94d9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000008 RBP: 00007f43ec43804e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000008800000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f43ec626128 R14: 00007f43ec626090 R15: 00007ffc0a8c7a28 The buggy address belongs to the physical page: page:ffffea0000d51f80 refcount:2 mapcount:0 mapping:ffff888148c5db08 index:0x140 pfn:0x3547e memcg:ffff88805c842000 aops:def_blk_aops ino:700001 flags: 0xfff58000008224(referenced|lru|workingset|private|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff58000008224 ffffea0001a18848 ffffea0001a5f608 ffff888148c5db08 raw: 0000000000000140 ffff8880314d3828 00000002ffffffff ffff88805c842000 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 26812, tgid 26799 (syz.1.4151), ts 1325000762003, free_ts 1318137341992 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1c1/0x200 mm/page_alloc.c:1582 prep_new_page mm/page_alloc.c:1589 [inline] get_page_from_freelist+0x2181/0x22a0 mm/page_alloc.c:3221 __alloc_pages+0x1f0/0x460 mm/page_alloc.c:4501 folio_alloc+0x1e/0x30 mm/mempolicy.c:2289 filemap_alloc_folio+0xdf/0x490 mm/filemap.c:1004 __filemap_get_folio+0x3fb/0xbe0 mm/filemap.c:1962 grow_dev_page fs/buffer.c:1058 [inline] grow_buffers fs/buffer.c:1118 [inline] __getblk_slow fs/buffer.c:1145 [inline] __getblk_gfp+0x212/0x620 fs/buffer.c:1439 sb_getblk include/linux/buffer_head.h:344 [inline] __ext4_get_inode_loc+0x463/0xd60 fs/ext4/inode.c:4514 ext4_get_inode_loc+0x82/0xf0 fs/ext4/inode.c:4642 ext4_convert_inline_data+0x259/0x5b0 fs/ext4/inline.c:2088 ext4_fallocate+0xef/0x1cd0 fs/ext4/extents.c:4835 vfs_fallocate+0x585/0x6f0 fs/open.c:324 ksys_fallocate fs/open.c:347 [inline] __do_sys_fallocate fs/open.c:355 [inline] __se_sys_fallocate fs/open.c:353 [inline] __x64_sys_fallocate+0xc1/0x110 fs/open.c:353 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1182 [inline] free_unref_page_prepare+0x7d7/0x8f0 mm/page_alloc.c:2366 free_unref_page_list+0xbe/0x860 mm/page_alloc.c:2505 release_pages+0x208a/0x2300 mm/swap.c:1022 __folio_batch_release+0x71/0xe0 mm/swap.c:1042 folio_batch_release include/linux/pagevec.h:83 [inline] shmem_undo_range+0x5ff/0x1a80 mm/shmem.c:1026 shmem_truncate_range mm/shmem.c:1135 [inline] shmem_evict_inode+0x285/0xa70 mm/shmem.c:1264 evict+0x4b3/0x9d0 fs/inode.c:702 __dentry_kill+0x412/0x630 fs/dcache.c:613 dentry_kill+0xb8/0x290 fs/dcache.c:-1 dput+0xfe/0x1e0 fs/dcache.c:920 __fput+0x5b2/0x940 fs/file_table.c:426 task_work_run+0x1d4/0x260 kernel/task_work.c:245 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:180 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:213 __syscall_exit_to_user_mode_work kernel/entry/common.c:294 [inline] syscall_exit_to_user_mode+0x1a/0x50 kernel/entry/common.c:305 do_syscall_64+0x61/0xb0 arch/x86/entry/common.c:82 Memory state around the buggy address: ffff88803547ed80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88803547ee00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88803547ee80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88803547ef00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88803547ef80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================