================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0xb02/0x2230 fs/ext4/xattr.c:1708 Read of size 18446744073709551600 at addr ffff888137c326b8 by task kworker/u4:1/10 CPU: 0 PID: 10 Comm: kworker/u4:1 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026 Workqueue: writeback wb_workfn (flush-7:0) 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+0xb02/0x2230 fs/ext4/xattr.c:1708 ext4_xattr_ibody_set+0x25b/0x720 fs/ext4/xattr.c:2215 ext4_destroy_inline_data_nolock+0x234/0x5e0 fs/ext4/inline.c:468 ext4_destroy_inline_data+0x84/0xe0 fs/ext4/inline.c:1923 ext4_writepages+0x7e8/0x30a0 fs/ext4/inode.c:2764 do_writepages+0x3ab/0x600 mm/page-writeback.c:2494 __writeback_single_inode+0xd9/0xb10 fs/fs-writeback.c:1622 writeback_sb_inodes+0x9fd/0x1610 fs/fs-writeback.c:1913 wb_writeback+0x3eb/0x990 fs/fs-writeback.c:2089 wb_do_writeback fs/fs-writeback.c:2236 [inline] wb_workfn+0x378/0xeb0 fs/fs-writeback.c:2276 process_one_work+0x717/0xc30 kernel/workqueue.c:2302 worker_thread+0xa4d/0x11d0 kernel/workqueue.c:2449 kthread+0x281/0x320 kernel/kthread.c:386 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 The buggy address belongs to the physical page: page:ffffea0004df0c80 refcount:2 mapcount:0 mapping:ffff88810048ba50 index:0x11 pfn:0x137c32 memcg:ffff888112648000 aops:def_blk_aops ino:700000 flags: 0x660000000002205e(referenced|uptodate|dirty|lru|workingset|private|mappedtodisk|zone=1) raw: 660000000002205e ffffea0004df0c48 ffffea00046ac848 ffff88810048ba50 raw: 0000000000000011 ffff8881329e7498 00000002ffffffff ffff888112648000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x152c40(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 1537, tgid 1536 (syz.0.298), ts 76853688250, free_ts 76830157451 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2672 prep_new_page+0x1c/0x110 mm/page_alloc.c:2679 get_page_from_freelist+0x2ca9/0x2d20 mm/page_alloc.c:4586 __alloc_pages+0x1fa/0x610 mm/page_alloc.c:5930 __folio_alloc+0x12/0x40 mm/page_alloc.c:5963 __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] page_cache_ra_unbounded+0x24d/0x850 mm/readahead.c:260 do_page_cache_ra mm/readahead.c:313 [inline] page_cache_ra_order+0xb0c/0xe50 mm/readahead.c:584 do_sync_mmap_readahead+0x8a4/0xb20 mm/filemap.c:3203 filemap_fault+0x3e3/0x1370 mm/filemap.c:3300 __do_fault mm/memory.c:4376 [inline] do_read_fault mm/memory.c:4751 [inline] do_fault+0x19de/0x1e30 mm/memory.c:4887 handle_pte_fault mm/memory.c:5183 [inline] __handle_mm_fault mm/memory.c:5325 [inline] handle_mm_fault+0x1363/0x26b0 mm/memory.c:5465 faultin_page mm/gup.c:1026 [inline] __get_user_pages+0x34b/0xdb0 mm/gup.c:1250 populate_vma_page_range mm/gup.c:1607 [inline] __mm_populate+0x2ea/0x430 mm/gup.c:1721 mm_populate include/linux/mm.h:3148 [inline] vm_mmap_pgoff+0x271/0x3f0 mm/util.c:530 ksys_mmap_pgoff+0x161/0x1d0 mm/mmap.c:1537 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:93 [inline] __se_sys_mmap arch/x86/kernel/sys_x86_64.c:86 [inline] __x64_sys_mmap+0xfa/0x110 arch/x86/kernel/sys_x86_64.c:86 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1580 [inline] free_pcp_prepare mm/page_alloc.c:1654 [inline] free_unref_page_prepare+0x80c/0x820 mm/page_alloc.c:3621 free_unref_page_list+0x117/0x8d0 mm/page_alloc.c:3772 release_pages+0xc7e/0xce0 mm/swap.c:1053 free_pages_and_swap_cache+0x86/0xa0 mm/swap_state.c:316 tlb_batch_pages_flush mm/mmu_gather.c:59 [inline] tlb_flush_mmu_free mm/mmu_gather.c:254 [inline] tlb_flush_mmu mm/mmu_gather.c:261 [inline] tlb_finish_mmu+0x1b2/0x380 mm/mmu_gather.c:361 exit_mmap+0x41d/0xc10 mm/mmap.c:3384 __mmput+0x92/0x340 kernel/fork.c:1319 mmput+0x4b/0x150 kernel/fork.c:1343 exit_mm kernel/exit.c:569 [inline] do_exit+0xa51/0x2850 kernel/exit.c:874 do_group_exit+0x21b/0x2e0 kernel/exit.c:1030 get_signal+0x1382/0x14f0 kernel/signal.c:2891 arch_do_signal_or_restart+0xd1/0x11c0 arch/x86/kernel/signal.c:871 exit_to_user_mode_loop+0x7a/0xb0 kernel/entry/common.c:174 exit_to_user_mode_prepare+0x87/0xd0 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:303 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:82 Memory state around the buggy address: ffff888137c32580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888137c32600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888137c32680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888137c32700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888137c32780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== EXT4-fs (loop0): Delayed block allocation failed for inode 15 at logical offset 0 with max blocks 1 with error 28 EXT4-fs (loop0): This should not happen!! Data will be lost EXT4-fs (loop0): Total free blocks count 0 EXT4-fs (loop0): Free/Dirty block details EXT4-fs (loop0): free_blocks=4096 EXT4-fs (loop0): dirty_blocks=528 EXT4-fs (loop0): Block reservation details EXT4-fs (loop0): i_reserved_data_blocks=33 EXT4-fs (loop0): Delayed block allocation failed for inode 15 at logical offset 65537 with max blocks 497 with error 28