================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0xa10/0x1e90 fs/ext4/xattr.c:1763 Read of size 18446744073709551600 at addr ffff88804e94feb8 by task syz.3.1539/14474 CPU: 1 PID: 14474 Comm: syz.3.1539 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/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+0xa10/0x1e90 fs/ext4/xattr.c:1763 ext4_xattr_ibody_set+0x254/0x6a0 fs/ext4/xattr.c:2270 ext4_destroy_inline_data_nolock+0x23b/0x5e0 fs/ext4/inline.c:467 ext4_destroy_inline_data+0x83/0xe0 fs/ext4/inline.c:1903 ext4_do_writepages+0x4f0/0x3990 fs/ext4/inode.c:2606 ext4_writepages+0x1dd/0x350 fs/ext4/inode.c:2809 do_writepages+0x3b3/0x630 mm/page-writeback.c:2575 filemap_fdatawrite_wbc+0x122/0x180 mm/filemap.c:390 __filemap_fdatawrite_range mm/filemap.c:423 [inline] file_write_and_wait_range+0x197/0x280 mm/filemap.c:781 generic_buffers_fsync_noflush+0x6f/0x160 fs/buffer.c:609 ext4_fsync_nojournal fs/ext4/fsync.c:92 [inline] ext4_sync_file+0x45b/0xd30 fs/ext4/fsync.c:163 generic_write_sync include/linux/fs.h:2651 [inline] ext4_buffered_write_iter+0x2c0/0x350 fs/ext4/file.c:305 ext4_file_write_iter+0x1d9/0x1880 fs/ext4/file.c:-1 do_iter_readv_writev fs/read_write.c:-1 [inline] do_iter_write+0x738/0xc30 fs/read_write.c:860 vfs_writev fs/read_write.c:933 [inline] do_pwritev+0x241/0x3a0 fs/read_write.c:1030 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:0x7f7694f9ce59 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:00007f7695f2d028 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007f7695215fa0 RCX: 00007f7694f9ce59 RDX: 0000000000000001 RSI: 0000200000000240 RDI: 0000000000000007 RBP: 00007f7695032d6f R08: 0000000000000000 R09: 0000000000000003 R10: 0000000000002000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f7695216038 R14: 00007f7695215fa0 R15: 00007fff222eadf8 The buggy address belongs to the physical page: page:ffffea00013a53c0 refcount:3 mapcount:1 mapping:ffff8880200c5900 index:0x2 pfn:0x4e94f memcg:ffff888024ad8000 aops:def_blk_aops ino:700003 flags: 0xfff5800002823c(referenced|uptodate|dirty|lru|workingset|private|mappedtodisk|node=0|zone=1|lastcpupid=0x7ff) page_type: 0x0() raw: 00fff5800002823c ffffea0000d94688 ffffea00019bcf48 ffff8880200c5900 raw: 0000000000000002 ffff8880511e7d98 0000000300000000 ffff888024ad8000 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 14474, tgid 14473 (syz.3.1539), ts 1927175727834, free_ts 1927175219824 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1c1/0x200 mm/page_alloc.c:1581 prep_new_page mm/page_alloc.c:1588 [inline] get_page_from_freelist+0x1951/0x19e0 mm/page_alloc.c:3220 __alloc_pages+0x1f0/0x460 mm/page_alloc.c:4500 folio_alloc+0x1e/0x30 mm/mempolicy.c:2289 filemap_alloc_folio+0xdf/0x490 mm/filemap.c:1004 __filemap_get_folio+0x3ea/0xbb0 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+0x223/0x660 fs/buffer.c:1439 sb_getblk include/linux/buffer_head.h:344 [inline] __ext4_get_inode_loc+0x485/0xe00 fs/ext4/inode.c:4501 __ext4_get_inode_loc_noinmem fs/ext4/inode.c:4614 [inline] __ext4_iget+0x44f/0x3f40 fs/ext4/inode.c:4861 __ext4_fill_super fs/ext4/super.c:5517 [inline] ext4_fill_super+0x503a/0x67b0 fs/ext4/super.c:5744 get_tree_bdev+0x3f3/0x520 fs/super.c:1591 vfs_get_tree+0x8c/0x280 fs/super.c:1764 do_new_mount+0x24b/0xa40 fs/namespace.c:3386 do_mount fs/namespace.c:3726 [inline] __do_sys_mount fs/namespace.c:3935 [inline] __se_sys_mount+0x2e7/0x3d0 fs/namespace.c:3912 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:1181 [inline] free_unref_page_prepare+0x7b2/0x8c0 mm/page_alloc.c:2365 free_unref_page_list+0xbe/0x860 mm/page_alloc.c:2504 release_pages+0x1f7a/0x2200 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+0x630/0x1b20 mm/shmem.c:1026 shmem_truncate_range mm/shmem.c:1135 [inline] shmem_evict_inode+0x245/0x9e0 mm/shmem.c:1264 evict+0x4ca/0x8d0 fs/inode.c:705 do_unlinkat+0x38c/0x590 fs/namei.c:4406 __do_sys_unlink fs/namei.c:4447 [inline] __se_sys_unlink fs/namei.c:4445 [inline] __x64_sys_unlink+0x49/0x50 fs/namei.c:4445 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 Memory state around the buggy address: ffff88804e94fd80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88804e94fe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88804e94fe80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88804e94ff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88804e94ff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================