================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x1339/0x36c0 fs/ext4/xattr.c:1740 Read of size 18446744073709551600 at addr ffff8881108c6eb8 by task syz.7.1072/4659 CPU: 1 PID: 4659 Comm: syz.7.1072 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x169/0x1d8 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+0x280/0x290 mm/kasan/generic.c:189 memmove+0x2d/0x70 mm/kasan/shadow.c:54 ext4_xattr_set_entry+0x1339/0x36c0 fs/ext4/xattr.c:1740 ext4_xattr_ibody_set+0x122/0x360 fs/ext4/xattr.c:2243 ext4_destroy_inline_data_nolock+0x1da/0x590 fs/ext4/inline.c:455 ext4_convert_inline_data_nolock+0x3c2/0xc70 fs/ext4/inline.c:1248 ext4_convert_inline_data+0x49e/0x5d0 fs/ext4/inline.c:2065 ext4_fallocate+0xf8/0x1a70 fs/ext4/extents.c:4752 vfs_fallocate+0x4b4/0x590 fs/open.c:310 ioctl_preallocate fs/ioctl.c:494 [inline] file_ioctl fs/ioctl.c:-1 [inline] do_vfs_ioctl+0x12e3/0x1510 fs/ioctl.c:732 __do_sys_ioctl fs/ioctl.c:751 [inline] __se_sys_ioctl+0x9f/0x1a0 fs/ioctl.c:739 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:739 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f874926afc9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f8747cd3038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f87494c1fa0 RCX: 00007f874926afc9 RDX: 0000200000000000 RSI: 0000000040305829 RDI: 0000000000000004 RBP: 00007f87492edf91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f87494c2038 R14: 00007f87494c1fa0 R15: 00007ffc99007968 The buggy address belongs to the page: page:ffffea0004423180 refcount:3 mapcount:0 mapping:ffff8881092f57d0 index:0x1 pfn:0x1108c6 aops:def_blk_aops ino:0 flags: 0x4000000000022024(uptodate|active|private|mappedtodisk) raw: 4000000000022024 ffffea0004cb8c88 ffffea0004aee308 ffff8881092f57d0 raw: 0000000000000001 ffff88810fed1a80 00000003ffffffff ffff88810013e000 page dumped because: kasan: bad access detected page->mem_cgroup:ffff88810013e000 page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112cc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY), pid 4400, ts 322397641647, free_ts 322304241547 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+0x2235/0x23d0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x268/0x5f0 mm/page_alloc.c:5370 __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] page_cache_ra_unbounded+0x2c8/0x7d0 mm/readahead.c:226 do_page_cache_ra mm/readahead.c:277 [inline] force_page_cache_ra+0x3a9/0x400 mm/readahead.c:308 page_cache_sync_ra+0x237/0x2a0 mm/readahead.c:582 page_cache_sync_readahead include/linux/pagemap.h:837 [inline] generic_file_buffered_read+0x55b/0x2730 mm/filemap.c:2250 generic_file_read_iter+0x116/0x560 mm/filemap.c:2568 blkdev_read_iter+0x12f/0x160 fs/block_dev.c:1956 call_read_iter include/linux/fs.h:2060 [inline] new_sync_read fs/read_write.c:415 [inline] vfs_read+0x874/0xa10 fs/read_write.c:496 ksys_read+0x140/0x240 fs/read_write.c:634 __do_sys_read fs/read_write.c:644 [inline] __se_sys_read fs/read_write.c:642 [inline] __x64_sys_read+0x7b/0x90 fs/read_write.c:642 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb 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+0x12e/0x9b0 mm/page_alloc.c:3443 release_pages+0xe38/0xe80 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 mm/mmu_gather.c:247 [inline] tlb_finish_mmu+0x175/0x300 mm/mmu_gather.c:326 exit_mmap+0x2fc/0x540 mm/mmap.c:3387 __mmput+0x93/0x2f0 kernel/fork.c:1153 mmput+0x4e/0x150 kernel/fork.c:1176 exit_mm kernel/exit.c:539 [inline] do_exit+0x9ae/0x2480 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+0xbf/0x10f0 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 syscall_exit_to_user_mode+0x1d/0x40 kernel/entry/common.c:274 ret_from_fork+0x15/0x30 arch/x86/entry/entry_64.S:291 Memory state around the buggy address: ffff8881108c6d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881108c6e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8881108c6e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff8881108c6f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881108c6f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== EXT4-fs error (device loop7): ext4_xattr_ibody_find:2219: inode #15: comm syz.7.1072: corrupted in-inode xattr EXT4-fs (loop7): Remounting filesystem read-only EXT4-fs warning (device loop7): ext4_xattr_set_entry:1753: inode #15: comm syz.7.1072: unable to update i_inline_off