================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0xa27/0x1eb0 fs/ext4/xattr.c:1710 Read of size 18446744073709551600 at addr ffff888050b096d0 by task syz.0.20/4471 CPU: 1 PID: 4471 Comm: syz.0.20 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x210 mm/kasan/report.c:420 kasan_report+0x10b/0x140 mm/kasan/report.c:524 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x235/0x290 mm/kasan/generic.c:189 memmove+0x25/0x60 mm/kasan/shadow.c:54 ext4_xattr_set_entry+0xa27/0x1eb0 fs/ext4/xattr.c:1710 ext4_xattr_ibody_set+0x25e/0x700 fs/ext4/xattr.c:2219 ext4_destroy_inline_data_nolock+0x237/0x5f0 fs/ext4/inline.c:468 ext4_convert_inline_data_to_extent fs/ext4/inline.c:628 [inline] ext4_try_to_write_inline_data+0x711/0x11e0 fs/ext4/inline.c:769 ext4_write_begin+0x289/0xf40 fs/ext4/inode.c:1207 ext4_da_write_begin+0x408/0x920 fs/ext4/inode.c:3006 generic_perform_write+0x2fa/0x5c0 mm/filemap.c:3876 ext4_buffered_write_iter+0x11a/0x380 fs/ext4/file.c:292 ext4_file_write_iter+0x1e3/0x17d0 fs/ext4/file.c:-1 call_write_iter include/linux/fs.h:2273 [inline] aio_write+0x545/0x780 fs/aio.c:1626 __io_submit_one fs/aio.c:-1 [inline] io_submit_one+0x6ea/0x1340 fs/aio.c:2050 __do_sys_io_submit fs/aio.c:2109 [inline] __se_sys_io_submit+0x19d/0x310 fs/aio.c:2079 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:0x7f8bd23a9b59 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:00007f8bd31bf028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d1 RAX: ffffffffffffffda RBX: 00007f8bd2636098 RCX: 00007f8bd23a9b59 RDX: 000020000002a640 RSI: 0000000000000001 RDI: 00007f8bd31c0000 RBP: 00007f8bd243a18b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f8bd2636130 R14: 00007f8bd2636098 R15: 00007ffcb994e938 The buggy address belongs to the physical page: page:ffffea000142c240 refcount:2 mapcount:0 mapping:ffff888140c91e00 index:0x3 pfn:0x50b09 memcg:ffff88807a54e000 aops:def_blk_aops ino:700000 flags: 0xfff3800000205a(referenced|dirty|lru|workingset|private|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff3800000205a ffff8880795d8158 ffffea00009412c8 ffff888140c91e00 raw: 0000000000000003 ffff88807208b828 00000002ffffffff ffff88807a54e000 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 4471, tgid 4450 (syz.0.20), ts 92779317158, free_ts 92766290467 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2561 prep_new_page mm/page_alloc.c:2568 [inline] get_page_from_freelist+0x208b/0x21a0 mm/page_alloc.c:4368 __alloc_pages+0x1ec/0x4f0 mm/page_alloc.c:5668 folio_alloc+0x1c/0x60 mm/mempolicy.c:2285 filemap_alloc_folio+0xdb/0x480 mm/filemap.c:1002 __filemap_get_folio+0x6ba/0xde0 mm/filemap.c:2008 pagecache_get_page+0x26/0x260 mm/folio-compat.c:110 find_or_create_page include/linux/pagemap.h:676 [inline] grow_dev_page fs/buffer.c:946 [inline] grow_buffers fs/buffer.c:1011 [inline] __getblk_slow fs/buffer.c:1038 [inline] __getblk_gfp+0x2a0/0xa80 fs/buffer.c:1333 sb_getblk include/linux/buffer_head.h:356 [inline] __ext4_get_inode_loc+0x45f/0xd60 fs/ext4/inode.c:4531 ext4_get_inode_loc fs/ext4/inode.c:4659 [inline] ext4_reserve_inode_write+0x10a/0x290 fs/ext4/inode.c:5975 __ext4_mark_inode_dirty+0x161/0x7e0 fs/ext4/inode.c:6168 ext4_dirty_inode+0xbf/0x100 fs/ext4/inode.c:6205 __mark_inode_dirty+0x2e7/0xe80 fs/fs-writeback.c:2521 generic_update_time fs/inode.c:1955 [inline] inode_update_time fs/inode.c:1968 [inline] __file_update_time+0x21d/0x240 fs/inode.c:2156 file_modified_flags+0x390/0x440 fs/inode.c:2229 ext4_write_checks+0x23b/0x2c0 fs/ext4/file.c:264 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1488 [inline] free_pcp_prepare mm/page_alloc.c:1538 [inline] free_unref_page_prepare+0x8e5/0x9e0 mm/page_alloc.c:3422 free_unref_page_list+0xbb/0x8e0 mm/page_alloc.c:3563 release_pages+0x20d1/0x2340 mm/swap.c:1035 tlb_batch_pages_flush mm/mmu_gather.c:60 [inline] tlb_flush_mmu_free mm/mmu_gather.c:255 [inline] tlb_flush_mmu+0x105/0x220 mm/mmu_gather.c:262 tlb_finish_mmu+0xf0/0x220 mm/mmu_gather.c:394 unmap_region+0x29c/0x300 mm/mmap.c:2359 do_mas_align_munmap+0xcda/0x12d0 mm/mmap.c:2608 do_mas_munmap+0x240/0x2b0 mm/mmap.c:2666 __vm_munmap+0x1aa/0x2d0 mm/mmap.c:2952 __do_sys_munmap mm/mmap.c:2977 [inline] __se_sys_munmap mm/mmap.c:2974 [inline] __x64_sys_munmap+0x5c/0x70 mm/mmap.c:2974 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 Memory state around the buggy address: ffff888050b09580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888050b09600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888050b09680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888050b09700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888050b09780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================