EXT4-fs (loop2): 1 truncate cleaned up EXT4-fs (loop2): mounted filesystem without journal. Opts: max_batch_time=0x0000000000000004,nouser_xattr,debug_want_extra_isize=0x000000000000006a,user_xattr,errors=remount-ro,nombcache, ================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x1326/0x3860 fs/ext4/xattr.c:1729 Read of size 18446744073709551600 at addr ffff88812a64d302 by task syz.2.36/448 CPU: 1 PID: 448 Comm: syz.2.36 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x1a7/0x208 lib/dump_stack.c:118 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:435 [inline] kasan_report+0xe2/0x130 mm/kasan/report.c:452 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+0x1326/0x3860 fs/ext4/xattr.c:1729 ext4_xattr_ibody_set+0x122/0x360 fs/ext4/xattr.c:2229 ext4_destroy_inline_data_nolock+0x20f/0x5e0 fs/ext4/inline.c:464 ext4_convert_inline_data_to_extent fs/ext4/inline.c:629 [inline] ext4_try_to_write_inline_data+0x6d0/0x11f0 fs/ext4/inline.c:769 ext4_write_begin+0x246/0x1690 fs/ext4/inode.c:1192 generic_perform_write+0x2ce/0x540 mm/filemap.c:3509 ext4_buffered_write_iter+0x4b8/0x640 fs/ext4/file.c:271 ext4_file_write_iter+0x53f/0x1980 fs/ext4/file.c:-1 call_write_iter include/linux/fs.h:2066 [inline] new_sync_write fs/read_write.c:518 [inline] vfs_write+0x758/0xdc0 fs/read_write.c:605 ksys_write+0x149/0x250 fs/read_write.c:658 __do_sys_write fs/read_write.c:670 [inline] __se_sys_write fs/read_write.c:667 [inline] __x64_sys_write+0x7b/0x90 fs/read_write.c:667 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fcb0ac7d819 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:00007fcb096d8028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fcb0aef6fa0 RCX: 00007fcb0ac7d819 RDX: 0000000000000050 RSI: 0000200000000700 RDI: 0000000000000005 RBP: 00007fcb0ad13c91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fcb0aef7038 R14: 00007fcb0aef6fa0 R15: 00007ffd39d37308 The buggy address belongs to the page: page:ffffea0004a99340 refcount:3 mapcount:1 mapping:ffff8881102fc290 index:0x2 pfn:0x12a64d aops:def_blk_aops ino:0 flags: 0x400000000002203e(referenced|uptodate|dirty|lru|active|private|mappedtodisk) raw: 400000000002203e ffffea0004789bc8 ffffea000479adc8 ffff8881102fc290 raw: 0000000000000002 ffff88812ac6d5e8 0000000300000000 ffff88810dd2c000 page dumped because: kasan: bad access detected page->mem_cgroup:ffff88810dd2c000 page_owner tracks the page as allocated page last allocated via order 0, migratetype Movable, gfp_mask 0x108c48(GFP_NOFS|__GFP_NOFAIL|__GFP_HARDWALL|__GFP_MOVABLE), pid 448, ts 25775805758, free_ts 25636894661 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x179/0x180 mm/page_alloc.c:2462 get_page_from_freelist+0x223b/0x23d0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x290/0x620 mm/page_alloc.c:5384 __alloc_pages include/linux/gfp.h:544 [inline] __alloc_pages_node include/linux/gfp.h:557 [inline] alloc_pages_node include/linux/gfp.h:571 [inline] alloc_pages include/linux/gfp.h:590 [inline] __page_cache_alloc include/linux/pagemap.h:290 [inline] pagecache_get_page+0x63e/0x930 mm/filemap.c:1848 find_or_create_page include/linux/pagemap.h:402 [inline] grow_dev_page fs/buffer.c:976 [inline] grow_buffers fs/buffer.c:1045 [inline] __getblk_slow fs/buffer.c:1072 [inline] __getblk_gfp+0x212/0x780 fs/buffer.c:1370 sb_getblk include/linux/buffer_head.h:361 [inline] __ext4_get_inode_loc+0x467/0xc30 fs/ext4/inode.c:4449 __ext4_get_inode_loc_noinmem fs/ext4/inode.c:4559 [inline] __ext4_iget+0x495/0x44c0 fs/ext4/inode.c:4809 ext4_orphan_get+0x1e3/0x630 fs/ext4/ialloc.c:1395 ext4_orphan_cleanup+0x663/0xd30 fs/ext4/super.c:3083 ext4_fill_super+0x865f/0x8d70 fs/ext4/super.c:5074 mount_bdev+0x28b/0x3a0 fs/super.c:1442 ext4_mount+0x34/0x40 fs/ext4/super.c:6661 legacy_get_tree+0xed/0x190 fs/fs_context.c:593 vfs_get_tree+0x89/0x260 fs/super.c:1572 do_new_mount+0x25a/0xa20 fs/namespace.c:3006 path_mount+0x585/0xc90 fs/namespace.c:3336 page last free stack trace: reset_page_owner include/linux/page_owner.h:28 [inline] free_pages_prepare mm/page_alloc.c:1349 [inline] free_pcp_prepare mm/page_alloc.c:1421 [inline] free_unref_page_prepare+0x2b7/0x2d0 mm/page_alloc.c:3336 free_unref_page_list+0x129/0x9c0 mm/page_alloc.c:3443 release_pages+0xe52/0xea0 mm/swap.c:1103 free_pages_and_swap_cache+0x86/0xa0 mm/swap_state.c:356 tlb_batch_pages_flush mm/mmu_gather.c:49 [inline] tlb_flush_mmu_free mm/mmu_gather.c:240 [inline] tlb_flush_mmu+0xdf/0x190 mm/mmu_gather.c:247 zap_pte_range mm/memory.c:1385 [inline] zap_pmd_range mm/memory.c:1435 [inline] zap_pud_range mm/memory.c:1464 [inline] zap_p4d_range mm/memory.c:1485 [inline] unmap_page_range+0x1d66/0x2130 mm/memory.c:1506 unmap_single_vma mm/memory.c:1551 [inline] unmap_vmas+0x25f/0x360 mm/memory.c:1583 exit_mmap+0x309/0x590 mm/mmap.c:3385 __mmput+0x93/0x2f0 kernel/fork.c:1153 mmput+0x4e/0x150 kernel/fork.c:1176 exit_mm kernel/exit.c:539 [inline] do_exit+0x9ec/0x2500 kernel/exit.c:859 do_group_exit+0x141/0x310 kernel/exit.c:986 get_signal+0xf7d/0x12e0 kernel/signal.c:2793 arch_do_signal_or_restart+0xe2/0x11d0 arch/x86/kernel/signal.c:805 handle_signal_work kernel/entry/common.c:145 [inline] exit_to_user_mode_loop+0xa2/0xe0 kernel/entry/common.c:169 exit_to_user_mode_prepare+0x76/0xa0 kernel/entry/common.c:199 Memory state around the buggy address: ffff88812a64d200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88812a64d280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88812a64d300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88812a64d380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88812a64d400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== EXT4-fs error (device loop2): __ext4_get_inode_loc:4444: comm syz.2.36: Invalid inode table block 5 in block_group 0 EXT4-fs (loop2): Remounting filesystem read-only EXT4-fs error (device loop2) in ext4_reserve_inode_write:5952: Corrupt filesystem EXT4-fs error (device loop2): ext4_dirty_inode:6162: inode #15: comm syz.2.36: mark_inode_dirty error EXT4-fs error (device loop2): ext4_map_blocks:630: inode #2: block 13: comm syz.2.36: lblock 0 mapped to illegal pblock 13 (length 1)