================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0xb02/0x2230 fs/ext4/xattr.c:1710 Read of size 18446744073709551600 at addr ffff88814ec0d2b8 by task vhost-1141/1143 CPU: 0 PID: 1143 Comm: vhost-1141 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 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:1710 ext4_xattr_ibody_set+0x25b/0x720 fs/ext4/xattr.c:2217 ext4_destroy_inline_data_nolock+0x234/0x5e0 fs/ext4/inline.c:468 ext4_convert_inline_data_nolock+0x3b0/0x9e0 fs/ext4/inline.c:1258 ext4_convert_inline_data+0x470/0x5b0 fs/ext4/inline.c:2127 ext4_page_mkwrite+0x2ed/0x1340 fs/ext4/inode.c:6280 do_page_mkwrite mm/memory.c:3039 [inline] wp_page_shared+0x501/0x8d0 mm/memory.c:3432 do_wp_page+0xd96/0xf70 mm/memory.c:3584 handle_pte_fault mm/memory.c:5201 [inline] __handle_mm_fault mm/memory.c:5325 [inline] handle_mm_fault+0x114f/0x26b0 mm/memory.c:5465 do_user_addr_fault+0x61e/0x1030 arch/x86/mm/fault.c:1372 handle_page_fault arch/x86/mm/fault.c:1464 [inline] exc_page_fault+0x51/0xb0 arch/x86/mm/fault.c:1517 asm_exc_page_fault+0x27/0x30 arch/x86/include/asm/idtentry.h:608 RIP: 0010:__put_user_nocheck_2+0x3/0x11 Code: 00 00 48 39 d9 73 74 0f 01 cb 88 01 31 c9 0f 01 ca c3 90 90 90 90 90 90 48 bb ff ef ff ff ff 7f 00 00 48 39 d9 73 54 0f 01 cb <66> 89 01 31 c9 0f 01 ca c3 90 90 90 90 90 48 bb fd ef ff ff ff 7f RSP: 0018:ffffc90010837c70 EFLAGS: 00050246 RAX: 0000000000000001 RBX: 0000000000000001 RCX: 00002000000007c0 RDX: ffffc9000dc39000 RSI: 0000000000000005 RDI: ffff888129514bc6 RBP: ffffc90010837c98 R08: ffffc90010837c67 R09: 1ffff92002106f8c R10: dffffc0000000000 R11: fffff52002106f8d R12: dffffc0000000000 R13: 0000000000000001 R14: ffff888129514a80 R15: ffff888129514ad0 vhost_disable_notify+0xb2/0x160 drivers/vhost/vhost.c:2603 vhost_vsock_handle_tx_kick+0x14f/0xce0 drivers/vhost/vsock.c:513 vhost_worker+0x1ba/0x2e0 drivers/vhost/vhost.c:364 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:ffffea00053b0340 refcount:2 mapcount:0 mapping:ffff88810bae6ed0 index:0x2 pfn:0x14ec0d memcg:ffff888100239380 aops:def_blk_aops ino:700005 flags: 0x660000000000205a(referenced|dirty|lru|workingset|private|zone=1) raw: 660000000000205a ffffea0004fe6408 ffffea000474e9c8 ffff88810bae6ed0 raw: 0000000000000002 ffff888138c7a498 00000002ffffffff ffff888100239380 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 1141, tgid 1125 (syz.5.196), ts 67252238793, free_ts 67252143521 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2673 prep_new_page+0x1c/0x110 mm/page_alloc.c:2680 get_page_from_freelist+0x2ca9/0x2d20 mm/page_alloc.c:4587 __alloc_pages+0x1fa/0x610 mm/page_alloc.c:5931 __folio_alloc+0x12/0x40 mm/page_alloc.c:5964 __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] __filemap_get_folio+0x6fe/0xa70 mm/filemap.c:2033 pagecache_get_page+0x2b/0x110 mm/folio-compat.c:110 find_or_create_page include/linux/pagemap.h:656 [inline] grow_dev_page fs/buffer.c:989 [inline] grow_buffers fs/buffer.c:1054 [inline] __getblk_slow fs/buffer.c:1081 [inline] __getblk_gfp+0x211/0x7c0 fs/buffer.c:1376 sb_getblk include/linux/buffer_head.h:356 [inline] __ext4_get_inode_loc+0x45f/0xd60 fs/ext4/inode.c:4527 ext4_get_inode_loc+0x81/0xf0 fs/ext4/inode.c:4655 ext4_read_inline_page+0x21b/0x890 fs/ext4/inline.c:516 ext4_readpage_inline+0x1aa/0x210 fs/ext4/inline.c:556 ext4_read_folio+0xe0/0x220 fs/ext4/inode.c:3254 filemap_read_folio+0xff/0x2c0 mm/filemap.c:2531 filemap_fault+0xd0b/0x1370 mm/filemap.c:3398 __do_fault mm/memory.c:4376 [inline] do_read_fault mm/memory.c:4751 [inline] do_fault+0x19de/0x1e30 mm/memory.c:4887 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1581 [inline] free_pcp_prepare mm/page_alloc.c:1655 [inline] free_unref_page_prepare+0x81b/0x820 mm/page_alloc.c:3622 free_unref_page_list+0x117/0x8d0 mm/page_alloc.c:3773 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 unmap_region+0x2b7/0x320 mm/mmap.c:2419 do_mas_align_munmap+0xbf3/0x1330 mm/mmap.c:2693 do_mas_munmap+0x23d/0x2b0 mm/mmap.c:2751 __mmap_region mm/mmap.c:2799 [inline] mmap_region+0x89e/0x2130 mm/mmap.c:3030 do_mmap+0x858/0xdd0 mm/mmap.c:1491 vm_mmap_pgoff+0x206/0x3f0 mm/util.c:525 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 x64_sys_call+0x8fd/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:10 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: ffff88814ec0d180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88814ec0d200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88814ec0d280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88814ec0d300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88814ec0d380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== EXT4-fs error (device loop5): ext4_validate_block_bitmap:438: comm vhost-1141: bg 0: block 465: padding at end of block bitmap is not set ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 48 39 d9 cmp %rbx,%rcx 5: 73 74 jae 0x7b 7: 0f 01 cb stac a: 88 01 mov %al,(%rcx) c: 31 c9 xor %ecx,%ecx e: 0f 01 ca clac 11: c3 ret 12: 90 nop 13: 90 nop 14: 90 nop 15: 90 nop 16: 90 nop 17: 90 nop 18: 48 bb ff ef ff ff ff movabs $0x7fffffffefff,%rbx 1f: 7f 00 00 22: 48 39 d9 cmp %rbx,%rcx 25: 73 54 jae 0x7b 27: 0f 01 cb stac * 2a: 66 89 01 mov %ax,(%rcx) <-- trapping instruction 2d: 31 c9 xor %ecx,%ecx 2f: 0f 01 ca clac 32: c3 ret 33: 90 nop 34: 90 nop 35: 90 nop 36: 90 nop 37: 90 nop 38: 48 rex.W 39: bb fd ef ff ff mov $0xffffeffd,%ebx 3e: ff (bad) 3f: 7f .byte 0x7f