================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0xaf2/0x21d0 fs/ext4/xattr.c:1708 Read of size 18446744073709551600 at addr ffff888141328eb8 by task syz.4.526/2317 CPU: 1 PID: 2317 Comm: syz.4.526 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/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+0xaf2/0x21d0 fs/ext4/xattr.c:1708 ext4_xattr_ibody_set+0x24e/0x6c0 fs/ext4/xattr.c:2215 ext4_destroy_inline_data_nolock+0x234/0x5d0 fs/ext4/inline.c:468 ext4_destroy_inline_data+0x84/0xe0 fs/ext4/inline.c:1923 ext4_writepages+0x7f8/0x30e0 fs/ext4/inode.c:2762 do_writepages+0x3a4/0x5f0 mm/page-writeback.c:2494 filemap_fdatawrite_wbc+0x128/0x190 mm/filemap.c:408 __filemap_fdatawrite_range mm/filemap.c:441 [inline] file_write_and_wait_range+0x159/0x230 mm/filemap.c:794 ext4_sync_file+0x1a9/0xa10 fs/ext4/fsync.c:151 vfs_fsync_range+0x1a1/0x1b0 fs/sync.c:188 generic_write_sync include/linux/fs.h:2980 [inline] ext4_buffered_write_iter+0x573/0x630 fs/ext4/file.c:292 ext4_file_write_iter+0x191/0x1500 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+0x603/0xce0 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+0x197/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:0x7f246739cdd9 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:00007f2468290028 EFLAGS: 00000246 ORIG_RAX: 0000000000000012 RAX: ffffffffffffffda RBX: 00007f2467615fa0 RCX: 00007f246739cdd9 RDX: 00000000ffffff07 RSI: 0000200000000140 RDI: 0000000000000005 RBP: 00007f2467432d69 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000008000c61 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f2467616038 R14: 00007f2467615fa0 R15: 00007ffc19c58058 The buggy address belongs to the physical page: page:ffffea000504ca00 refcount:3 mapcount:1 mapping:ffff88810b6ed0d0 index:0x2 pfn:0x141328 memcg:ffff88810023ba80 aops:def_blk_aops ino:700004 flags: 0x560000000002205e(referenced|uptodate|dirty|lru|workingset|private|mappedtodisk|zone=1) raw: 560000000002205e ffffea0004e096c8 ffffea0004770b08 ffff88810b6ed0d0 raw: 0000000000000002 ffff888133a58a80 0000000300000000 ffff88810023ba80 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 2317, tgid 2316 (syz.4.526), ts 116837998899, free_ts 116830935206 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+0x2d12/0x2d80 mm/page_alloc.c:4585 __alloc_pages+0x1fa/0x610 mm/page_alloc.c:5926 __folio_alloc+0x12/0x40 mm/page_alloc.c:5959 __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+0x6ee/0xa60 mm/filemap.c:2020 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+0x217/0x7d0 fs/buffer.c:1376 sb_getblk include/linux/buffer_head.h:356 [inline] __ext4_get_inode_loc+0x481/0xdf0 fs/ext4/inode.c:4516 __ext4_get_inode_loc_noinmem fs/ext4/inode.c:4629 [inline] __ext4_iget+0x448/0x3e40 fs/ext4/inode.c:4876 __ext4_fill_super fs/ext4/super.c:5410 [inline] ext4_fill_super+0x5916/0x7590 fs/ext4/super.c:5674 get_tree_bdev+0x447/0x690 fs/super.c:1371 ext4_get_tree+0x1c/0x20 fs/ext4/super.c:5704 vfs_get_tree+0x9a/0x270 fs/super.c:1578 do_new_mount+0x251/0xb30 fs/namespace.c:3081 path_mount+0x659/0xfc0 fs/namespace.c:3411 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+0x7f8/0x800 mm/page_alloc.c:3620 free_unref_page_list+0x117/0x8c0 mm/page_alloc.c:3771 release_pages+0xc93/0xcf0 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+0x574/0x1540 mm/shmem.c:951 shmem_truncate_range mm/shmem.c:1067 [inline] shmem_evict_inode+0x255/0xa50 mm/shmem.c:1176 evict+0x4d7/0x8f0 fs/inode.c:708 iput_final fs/inode.c:1844 [inline] iput+0x620/0x670 fs/inode.c:1870 dentry_unlink_inode+0x33d/0x3f0 fs/dcache.c:405 __dentry_kill+0x460/0x670 fs/dcache.c:611 dentry_kill+0xc0/0x2a0 fs/dcache.c:-1 dput+0x42/0x80 fs/dcache.c:918 do_renameat2+0x8f4/0xfd0 fs/namei.c:5036 __do_sys_rename fs/namei.c:5080 [inline] __se_sys_rename fs/namei.c:5078 [inline] __x64_sys_rename+0x86/0x90 fs/namei.c:5078 x64_sys_call+0x300/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:83 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 Memory state around the buggy address: ffff888141328d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888141328e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888141328e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888141328f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888141328f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== EXT4-fs error (device loop4): ext4_mb_generate_buddy:1126: group 0, block bitmap and bg descriptor inconsistent: 12475 vs 150994969 free clusters EXT4-fs (loop4): Delayed block allocation failed for inode 15 at logical offset 65537 with max blocks 513 with error 28 EXT4-fs (loop4): This should not happen!! Data will be lost EXT4-fs (loop4): Total free blocks count 0 EXT4-fs (loop4): Free/Dirty block details EXT4-fs (loop4): free_blocks=2415719904 EXT4-fs (loop4): dirty_blocks=544 EXT4-fs (loop4): Block reservation details EXT4-fs (loop4): i_reserved_data_blocks=34