================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0xb02/0x2230 fs/ext4/xattr.c:1708 Read of size 18446744073709551600 at addr ffff888116175eb8 by task syz.7.1194/4420 CPU: 1 PID: 4420 Comm: syz.7.1194 Tainted: G W 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] __filemap_fdatawrite mm/filemap.c:448 [inline] filemap_flush+0xe0/0x140 mm/filemap.c:475 ext4_alloc_da_blocks+0x7a/0x190 fs/ext4/inode.c:3167 ext4_release_file+0x84/0x320 fs/ext4/file.c:158 __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 exit_task_work include/linux/task_work.h:39 [inline] do_exit+0xaf2/0x2850 kernel/exit.c:887 do_group_exit+0x21b/0x2e0 kernel/exit.c:1030 get_signal+0x167c/0x1700 kernel/signal.c:2895 arch_do_signal_or_restart+0xd1/0x11c0 arch/x86/kernel/signal.c:871 exit_to_user_mode_loop+0x7a/0xb0 kernel/entry/common.c:174 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 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f062195e6ce Code: Unable to access opcode bytes at 0x7f062195e6a4. RSP: 002b:00007f0622943f58 EFLAGS: 00000246 ORIG_RAX: 00000000000000e6 RAX: fffffffffffffdfc RBX: 00007f06229446c0 RCX: 00007f062195e6ce RDX: 00007f0622943fb0 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007f0621a33eaf R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f0621c26038 R14: 00007f0621c25fa0 R15: 00007ffdd5bdb918 The buggy address belongs to the physical page: page:ffffea0004585d40 refcount:2 mapcount:0 mapping:ffff88810b315fd0 index:0x10 pfn:0x116175 memcg:ffff88810023c440 aops:def_blk_aops ino:700007 flags: 0x560000000002205e(referenced|uptodate|dirty|lru|workingset|private|mappedtodisk|zone=1) raw: 560000000002205e ffffea0004e860c8 ffff888100287690 ffff88810b315fd0 raw: 0000000000000010 ffff88810b3df888 00000002ffffffff ffff88810023c440 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 388, tgid 388 (udevd), ts 212770200791, free_ts 212762433001 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] force_page_cache_ra mm/readahead.c:344 [inline] page_cache_sync_ra+0x3ec/0x4a0 mm/readahead.c:735 page_cache_sync_readahead include/linux/pagemap.h:1259 [inline] filemap_get_pages mm/filemap.c:2694 [inline] filemap_read+0x6b6/0x23c0 mm/filemap.c:2789 blkdev_read_iter+0x439/0x580 block/fops.c:668 call_read_iter include/linux/fs.h:2276 [inline] new_sync_read fs/read_write.c:389 [inline] vfs_read+0x46e/0x930 fs/read_write.c:470 ksys_read+0x14a/0x260 fs/read_write.c:613 __do_sys_read fs/read_write.c:623 [inline] __se_sys_read fs/read_write.c:621 [inline] __x64_sys_read+0x7b/0x90 fs/read_write.c:621 x64_sys_call+0x2f/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:1 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 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 folios_put include/linux/mm.h:1481 [inline] folio_batch_move_lru+0x37a/0x470 mm/swap.c:248 folio_batch_add_and_move mm/swap.c:258 [inline] folio_add_lru+0x28e/0x650 mm/swap.c:536 folio_add_lru_vma+0x62/0x80 mm/swap.c:556 lru_cache_add_inactive_or_unevictable+0x5d/0x80 mm/folio-compat.c:94 do_anonymous_page mm/memory.c:4327 [inline] handle_pte_fault mm/memory.c:5181 [inline] __handle_mm_fault mm/memory.c:5325 [inline] handle_mm_fault+0x220a/0x26b0 mm/memory.c:5465 do_user_addr_fault+0x61e/0x1030 arch/x86/mm/fault.c:1372 handle_page_fault arch/x86/mm/fault.c:1464 [inline] exc_page_fault+0x51/0xb0 arch/x86/mm/fault.c:1517 asm_exc_page_fault+0x27/0x30 arch/x86/include/asm/idtentry.h:608 Memory state around the buggy address: ffff888116175d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888116175e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888116175e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888116175f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888116175f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== EXT4-fs error (device loop7): ext4_read_block_bitmap_nowait:477: comm syz.7.1194: Invalid block bitmap block 7168870732846596096 in block_group 0 EXT4-fs (loop7): Delayed block allocation failed for inode 15 at logical offset 0 with max blocks 1 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