EXT4-fs (loop7): mounted filesystem without journal. Quota mode: none. ================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0xb02/0x2230 fs/ext4/xattr.c:1708 Read of size 18446744073709551600 at addr ffff88814ddbeed8 by task syz.7.4603/16542 CPU: 0 PID: 16542 Comm: syz.7.4603 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/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_destroy_inline_data+0x84/0xe0 fs/ext4/inline.c:1923 ext4_writepages+0x7e8/0x30a0 fs/ext4/inode.c:2764 do_writepages+0x3ab/0x600 mm/page-writeback.c:2494 filemap_fdatawrite_wbc+0x128/0x190 mm/filemap.c:409 __filemap_fdatawrite_range mm/filemap.c:442 [inline] file_write_and_wait_range+0x159/0x230 mm/filemap.c:795 ext4_sync_file+0x1ad/0xa40 fs/ext4/fsync.c:151 vfs_fsync_range+0x182/0x1a0 fs/sync.c:188 generic_write_sync include/linux/fs.h:2980 [inline] ext4_buffered_write_iter+0x5cf/0x690 fs/ext4/file.c:292 ext4_file_write_iter+0x4b2/0x1540 fs/ext4/file.c:-1 call_write_iter include/linux/fs.h:2282 [inline] aio_write+0x558/0x770 fs/aio.c:1615 __io_submit_one fs/aio.c:-1 [inline] io_submit_one+0x71b/0x1910 fs/aio.c:2034 __do_sys_io_submit fs/aio.c:2093 [inline] __se_sys_io_submit+0x17b/0x3e0 fs/aio.c:2063 __x64_sys_io_submit+0x7b/0x90 fs/aio.c:2063 x64_sys_call+0x81d/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:210 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:0x7f7702f9ce59 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:00007f7703e62028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d1 RAX: ffffffffffffffda RBX: 00007f7703215fa0 RCX: 00007f7702f9ce59 RDX: 0000200000000200 RSI: 0000000000000001 RDI: 00007f7703e41000 RBP: 00007f7703032e6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f7703216038 R14: 00007f7703215fa0 R15: 00007ffe40961758 The buggy address belongs to the physical page: page:ffffea0005376f80 refcount:2 mapcount:0 mapping:ffff88810b71eed0 index:0x2 pfn:0x14ddbe memcg:ffff888100238000 aops:def_blk_aops ino:700007 flags: 0x560000000000205a(referenced|dirty|lru|workingset|private|zone=1) raw: 560000000000205a ffffea0004b2d2c8 ffff888100285950 ffff88810b71eed0 raw: 0000000000000002 ffff88811797ff18 00000002ffffffff ffff888100238000 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 16542, tgid 16541 (syz.7.4603), ts 563570237026, free_ts 563539850060 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 fs/ext4/inode.c:4655 [inline] ext4_reserve_inode_write+0x12a/0x2e0 fs/ext4/inode.c:5944 ext4_xattr_set_handle+0x4e3/0x1510 fs/ext4/xattr.c:2339 ext4_xattr_set+0x22e/0x310 fs/ext4/xattr.c:2501 ext4_xattr_trusted_set+0x3c/0x50 fs/ext4/xattr_trusted.c:38 __vfs_setxattr+0x400/0x450 fs/xattr.c:182 __vfs_setxattr_noperm+0x129/0x5e0 fs/xattr.c:216 __vfs_setxattr_locked+0x20e/0x230 fs/xattr.c:277 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] invalidate_mapping_pagevec+0x417/0x610 mm/truncate.c:584 invalidate_mapping_pages+0x27/0x30 mm/truncate.c:608 invalidate_bdev+0xa6/0x150 block/bdev.c:88 loop_set_status+0x1be/0x950 drivers/block/loop.c:1277 loop_set_status64 drivers/block/loop.c:1414 [inline] lo_ioctl+0xba6/0x1fd0 drivers/block/loop.c:1571 blkdev_ioctl+0x367/0x720 block/ioctl.c:626 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0x12f/0x1b0 fs/ioctl.c:856 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:856 x64_sys_call+0x58b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:17 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: ffff88814ddbed80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88814ddbee00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88814ddbee80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88814ddbef00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88814ddbef80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== EXT4-fs error (device loop7): ext4_validate_block_bitmap:438: comm syz.7.4603: bg 0: block 16362: padding at end of block bitmap is not set EXT4-fs (loop7): Delayed block allocation failed for inode 15 at logical offset 0 with max blocks 2 with error 28 EXT4-fs (loop7): This should not happen!! Data will be lost EXT4-fs (loop7): Total free blocks count 0 EXT4-fs (loop7): Free/Dirty block details EXT4-fs (loop7): free_blocks=0 EXT4-fs (loop7): dirty_blocks=16 EXT4-fs (loop7): Block reservation details EXT4-fs (loop7): i_reserved_data_blocks=1