================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0xa14/0x1ee0 fs/ext4/xattr.c:1763 Read of size 18446744073709551600 at addr ffff8880775a36d0 by task syz.2.102/6516 CPU: 1 PID: 6516 Comm: syz.2.102 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_to_extent fs/ext4/inline.c:626 [inline] ext4_try_to_write_inline_data+0x739/0x1310 fs/ext4/inline.c:766 ext4_write_begin+0x252/0x10b0 fs/ext4/inode.c:1182 ext4_da_write_begin+0x2e5/0x9a0 fs/ext4/inode.c:2924 generic_perform_write+0x2fe/0x5c0 mm/filemap.c:4032 ext4_buffered_write_iter+0xd5/0x360 fs/ext4/file.c:306 ext4_file_write_iter+0x1e7/0x1980 fs/ext4/file.c:-1 call_write_iter include/linux/fs.h:2021 [inline] aio_write+0x564/0x7d0 fs/aio.c:1604 __io_submit_one fs/aio.c:-1 [inline] io_submit_one+0x768/0x12d0 fs/aio.c:2028 __do_sys_io_submit fs/aio.c:2087 [inline] __se_sys_io_submit+0x1a1/0x310 fs/aio.c:2057 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:0x7fe48b1a9b59 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:00007fe48c138028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d1 RAX: ffffffffffffffda RBX: 00007fe48b436098 RCX: 00007fe48b1a9b59 RDX: 000020000002a640 RSI: 0000000000000001 RDI: 00007fe48c117000 RBP: 00007fe48b23a18b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fe48b436130 R14: 00007fe48b436098 R15: 00007ffdbef3d4f8 The buggy address belongs to the physical page: page:ffffea0001dd68c0 refcount:2 mapcount:0 mapping:ffff88814893e6c8 index:0x3 pfn:0x775a3 memcg:ffff88802541a000 aops:def_blk_aops ino:700002 flags: 0xfff5800002823c(referenced|uptodate|dirty|lru|workingset|private|mappedtodisk|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff5800002823c ffffea0001668e88 ffffea0001755488 ffff88814893e6c8 raw: 0000000000000003 ffff88805e5820e8 00000002ffffffff ffff88802541a000 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 6516, tgid 6507 (syz.2.102), ts 149894428301, free_ts 147788881089 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1c1/0x200 mm/page_alloc.c:1583 prep_new_page mm/page_alloc.c:1590 [inline] get_page_from_freelist+0x219a/0x22c0 mm/page_alloc.c:3231 __alloc_pages+0x1f0/0x460 mm/page_alloc.c:4511 folio_alloc+0x1e/0x30 mm/mempolicy.c:2280 filemap_alloc_folio+0xdf/0x490 mm/filemap.c:1007 __filemap_get_folio+0x3fb/0xbe0 mm/filemap.c:1977 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:4517 ext4_get_inode_loc fs/ext4/inode.c:4645 [inline] ext4_reserve_inode_write+0x10e/0x2a0 fs/ext4/inode.c:5964 __ext4_mark_inode_dirty+0x147/0x760 fs/ext4/inode.c:6157 ext4_dirty_inode+0xcb/0x110 fs/ext4/inode.c:6194 __mark_inode_dirty+0x2cc/0xc90 fs/fs-writeback.c:2543 generic_update_time fs/inode.c:1989 [inline] inode_update_time fs/inode.c:2002 [inline] __file_update_time fs/inode.c:2188 [inline] file_modified_flags+0x225/0x260 fs/inode.c:2259 ext4_write_checks+0x23d/0x2c0 fs/ext4/file.c:279 ext4_buffered_write_iter+0xb1/0x360 fs/ext4/file.c:302 ext4_file_write_iter+0x1e7/0x1980 fs/ext4/file.c:-1 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1183 [inline] free_unref_page_prepare+0x7d7/0x8f0 mm/page_alloc.c:2374 free_unref_page_list+0xbe/0x860 mm/page_alloc.c:2513 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+0x62b/0x23a0 mm/shmem.c:1038 shmem_truncate_range mm/shmem.c:1165 [inline] shmem_evict_inode+0x285/0xa70 mm/shmem.c:1296 evict+0x4b3/0x9d0 fs/inode.c:701 __dentry_kill+0x401/0x800 fs/dcache.c:614 dentry_kill+0xb8/0x290 fs/dcache.c:-1 dput+0xfe/0x1e0 fs/dcache.c:921 __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: ffff8880775a3580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880775a3600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880775a3680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff8880775a3700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880775a3780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================