EXT4-fs error (device loop8): ext4_dirty_inode:6158: inode #15: comm syz.8.246: mark_inode_dirty error EXT4-fs (loop8): Remounting filesystem read-only ================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0xb02/0x2230 fs/ext4/xattr.c:1708 Read of size 18446744073709551600 at addr ffff888131731eb8 by task syz.8.246/1283 CPU: 1 PID: 1283 Comm: syz.8.246 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/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_to_extent fs/ext4/inline.c:620 [inline] ext4_try_to_write_inline_data+0x764/0x1330 fs/ext4/inline.c:761 ext4_write_begin+0x1f8/0xfc0 fs/ext4/inode.c:1207 generic_perform_write+0x32d/0x740 mm/filemap.c:3915 ext4_buffered_write_iter+0x38f/0x690 fs/ext4/file.c:285 ext4_file_write_iter+0x4b2/0x1540 fs/ext4/file.c:-1 call_write_iter include/linux/fs.h:2282 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x5ef/0xd00 fs/read_write.c:584 ksys_pwrite64 fs/read_write.c:699 [inline] __do_sys_pwrite64 fs/read_write.c:709 [inline] __se_sys_pwrite64 fs/read_write.c:706 [inline] __x64_sys_pwrite64+0x194/0x220 fs/read_write.c:706 x64_sys_call+0x36/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:19 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:0x7fbb20f9e0d9 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:00007fbb21d7f028 EFLAGS: 00000246 ORIG_RAX: 0000000000000012 RAX: ffffffffffffffda RBX: 00007fbb21226090 RCX: 00007fbb20f9e0d9 RDX: 00000000ffffff07 RSI: 0000200000000140 RDI: 000000000000000a RBP: 00007fbb21035024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000008000c61 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fbb21226128 R14: 00007fbb21226090 R15: 00007fff51673ad8 The buggy address belongs to the physical page: page:ffffea0004c5cc40 refcount:3 mapcount:1 mapping:ffff88810b2b4950 index:0x13 pfn:0x131731 memcg:ffff888100238000 aops:def_blk_aops ino:700008 flags: 0x6600000000022056(referenced|uptodate|lru|workingset|private|mappedtodisk|zone=1) raw: 6600000000022056 ffffea0004a4e808 ffffea0004989548 ffff88810b2b4950 raw: 0000000000000013 ffff888117e0cdc8 0000000300000000 ffff888100238000 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 1270, tgid 1269 (syz.8.246), ts 54948810367, free_ts 54296270269 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+0x93/0x530 mm/page_alloc.c:3719 free_the_page mm/page_alloc.c:863 [inline] __free_pages+0x67/0x100 mm/page_alloc.c:6020 __vunmap+0xa3c/0xc00 mm/vmalloc.c:2739 __vfree mm/vmalloc.c:2788 [inline] vfree+0x61/0x90 mm/vmalloc.c:2819 kvfree+0x26/0x40 mm/util.c:637 __kvm_arch_free_vm include/linux/kvm_host.h:1485 [inline] kvm_arch_free_vm+0x44/0x50 arch/x86/kvm/x86.c:12516 kvm_destroy_vm virt/kvm/kvm_main.c:1344 [inline] kvm_put_kvm+0x11c5/0x13f0 virt/kvm/kvm_main.c:1370 kvm_vm_release+0x46/0x50 virt/kvm/kvm_main.c:1393 __fput+0x1fd/0x8f0 fs/file_table.c:320 ____fput+0x15/0x20 fs/file_table.c:348 task_work_run+0x1e1/0x250 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x9b/0xb0 kernel/entry/common.c:177 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: ffff888131731d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888131731e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888131731e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888131731f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888131731f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== EXT4-fs error (device loop8): ext4_read_block_bitmap_nowait:477: comm syz.8.246: Invalid block bitmap block 3905754590 in block_group 0 EXT4-fs (loop8): Remounting filesystem read-only