loop1: detected capacity change from 0 to 512 EXT4-fs (loop1): mounted filesystem without journal. Quota mode: none. loop1: detected capacity change from 512 to 0 ================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0xb02/0x2230 fs/ext4/xattr.c:1708 Read of size 18446744073709551600 at addr ffff888137e12d24 by task syz.1.162/897 CPU: 0 PID: 897 Comm: syz.1.162 Tainted: G W 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 ext4_da_write_begin+0x3ed/0x880 fs/ext4/inode.c:3003 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 do_iter_readv_writev fs/read_write.c:-1 [inline] do_iter_write+0x65a/0xb30 fs/read_write.c:861 vfs_iter_write+0x7d/0xa0 fs/read_write.c:902 iter_file_splice_write+0x6bf/0xd00 fs/splice.c:685 do_splice_from fs/splice.c:763 [inline] direct_splice_actor+0xf7/0x130 fs/splice.c:930 splice_direct_to_actor+0x4ad/0xb30 fs/splice.c:885 do_splice_direct+0x1c2/0x2d0 fs/splice.c:973 generic_copy_file_range fs/read_write.c:1393 [inline] vfs_copy_file_range+0xb36/0x1800 fs/read_write.c:1539 __do_sys_copy_file_range fs/read_write.c:1596 [inline] __se_sys_copy_file_range+0x316/0x460 fs/read_write.c:1559 __x64_sys_copy_file_range+0xe5/0x100 fs/read_write.c:1559 x64_sys_call+0x66b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:327 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:0x7f6bdf79e0d9 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:00007f6be06c6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000146 RAX: ffffffffffffffda RBX: 00007f6bdfa25fa0 RCX: 00007f6bdf79e0d9 RDX: 0000000000000008 RSI: 0000000000000000 RDI: 0000000000000009 RBP: 00007f6bdf835024 R08: 0000000000003df1 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f6bdfa26038 R14: 00007f6bdfa25fa0 R15: 00007fffce96fef8 The buggy address belongs to the physical page: page:ffffea0004df8480 refcount:2 mapcount:0 mapping:ffff88810048ab50 index:0x23 pfn:0x137e12 memcg:ffff88810023eb40 aops:def_blk_aops ino:700001 flags: 0x5600000000002052(referenced|lru|workingset|private|zone=1) raw: 5600000000002052 ffffea0004df8448 ffffea00047ed608 ffff88810048ab50 raw: 0000000000000023 ffff888132fcce70 00000002ffffffff ffff88810023eb40 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 897, tgid 896 (syz.1.162), ts 42024284808, free_ts 41855657565 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+0x81/0xf0 fs/ext4/inode.c:4655 ext4_xattr_ibody_get+0x122/0x4d0 fs/ext4/xattr.c:594 ext4_xattr_get+0x122/0x650 fs/ext4/xattr.c:655 ext4_xattr_security_get+0x32/0x40 fs/ext4/xattr_security.c:20 __vfs_getxattr+0x3da/0x410 fs/xattr.c:407 cap_inode_need_killpriv+0x45/0x60 security/commoncap.c:301 security_inode_need_killpriv+0x73/0xa0 security/security.c:1437 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 __pagevec_release+0x71/0xe0 mm/swap.c:1073 pagevec_release include/linux/pagevec.h:71 [inline] folio_batch_release include/linux/pagevec.h:135 [inline] shmem_undo_range+0x564/0x14e0 mm/shmem.c:951 shmem_truncate_range mm/shmem.c:1067 [inline] shmem_evict_inode+0x21f/0x9c0 mm/shmem.c:1176 evict+0x4c4/0x8c0 fs/inode.c:709 iput_final fs/inode.c:1845 [inline] iput+0x633/0x690 fs/inode.c:1871 dentry_unlink_inode+0x346/0x3f0 fs/dcache.c:405 __dentry_kill+0x46c/0x680 fs/dcache.c:611 dentry_kill+0xc0/0x2a0 fs/dcache.c:-1 dput+0x42/0x80 fs/dcache.c:918 __fput+0x5c0/0x8f0 fs/file_table.c:328 ____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 Memory state around the buggy address: ffff888137e12c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888137e12c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888137e12d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888137e12d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888137e12e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== EXT4-fs error (device loop1): ext4_validate_block_bitmap:420: comm syz.1.162: bg 0: bad block bitmap checksum syz.1.162 (897) used greatest stack depth: 20672 bytes left