================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0xb02/0x2230 fs/ext4/xattr.c:1708 Read of size 18446744073709551600 at addr ffff888122166eb8 by task syz.3.994/3598 CPU: 0 PID: 3598 Comm: syz.3.994 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/25/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: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_convert_inline_data_nolock+0x3b0/0x9e0 fs/ext4/inline.c:1250 ext4_convert_inline_data+0x470/0x5b0 fs/ext4/inline.c:2119 ext4_setattr+0xf3c/0x1c80 fs/ext4/inode.c:5574 notify_change+0xd33/0x1030 fs/attr.c:499 do_truncate+0x1ac/0x240 fs/open.c:66 vfs_truncate+0x25b/0x2f0 fs/open.c:112 do_sys_truncate+0xf2/0x1c0 fs/open.c:135 __do_sys_truncate fs/open.c:147 [inline] __se_sys_truncate fs/open.c:145 [inline] __x64_sys_truncate+0x5b/0x70 fs/open.c:145 x64_sys_call+0x679/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:77 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:0x7f645a79de99 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:00007f645b5e5028 EFLAGS: 00000246 ORIG_RAX: 000000000000004c RAX: ffffffffffffffda RBX: 00007f645aa25fa0 RCX: 00007f645a79de99 RDX: 0000000000000000 RSI: 000000000004fed4 RDI: 00002000000001c0 RBP: 00007f645a833eaf R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f645aa26038 R14: 00007f645aa25fa0 R15: 00007fff9887cf68 The buggy address belongs to the physical page: page:ffffea0004885980 refcount:3 mapcount:1 mapping:ffff88810048fdd0 index:0x2 pfn:0x122166 memcg:ffff88810023a700 aops:def_blk_aops ino:700003 flags: 0x5600000000022056(referenced|uptodate|lru|workingset|private|mappedtodisk|zone=1) raw: 5600000000022056 ffffea0004ca37c8 ffff888100283250 ffff88810048fdd0 raw: 0000000000000002 ffff888133527690 0000000300000000 ffff88810023a700 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 3598, tgid 3596 (syz.3.994), ts 192103219421, free_ts 192099281512 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] __filemap_get_folio+0x6fe/0xa70 mm/filemap.c:2021 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_noinmem fs/ext4/inode.c:4640 [inline] __ext4_iget+0x448/0x3e70 fs/ext4/inode.c:4887 ext4_lookup+0x28e/0x710 fs/ext4/namei.c:1858 lookup_open fs/namei.c:3467 [inline] open_last_lookups fs/namei.c:3557 [inline] path_openat+0x13fe/0x2f30 fs/namei.c:3787 do_filp_open+0x1ee/0x420 fs/namei.c:3817 do_sys_openat2+0x15e/0x820 fs/open.c:1343 do_sys_open fs/open.c:1359 [inline] __do_sys_openat fs/open.c:1375 [inline] __se_sys_openat fs/open.c:1370 [inline] __x64_sys_openat+0x136/0x160 fs/open.c:1370 x64_sys_call+0x783/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:258 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 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 __vm_munmap+0x1af/0x310 mm/mmap.c:3050 __do_sys_munmap mm/mmap.c:3076 [inline] __se_sys_munmap mm/mmap.c:3072 [inline] __x64_sys_munmap+0x6b/0x80 mm/mmap.c:3072 x64_sys_call+0x8a/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:12 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: ffff888122166d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888122166e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888122166e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888122166f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888122166f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== EXT4-fs error (device loop3): ext4_validate_block_bitmap:429: comm syz.3.994: bg 0: block 6: invalid block bitmap EXT4-fs (loop3): Remounting filesystem read-only EXT4-fs error (device loop3) in ext4_setattr:5697: error 28 EXT4-fs (loop3): Remounting filesystem read-only