EXT4-fs (loop0): mounted filesystem without journal. Quota mode: writeback. ================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0xaf2/0x21d0 fs/ext4/xattr.c:1719 Read of size 18446744073709551600 at addr ffff88811dd33008 by task syz-executor367/291 CPU: 1 PID: 291 Comm: syz-executor367 Not tainted 6.1.141-syzkaller-00025-g45271a2c461a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:88 dump_stack_lvl+0xee/0x150 lib/dump_stack.c:106 print_address_description+0x71/0x210 mm/kasan/report.c:316 print_report+0x4a/0x60 mm/kasan/report.c:427 kasan_report+0x122/0x150 mm/kasan/report.c:531 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+0xaf2/0x21d0 fs/ext4/xattr.c:1719 ext4_xattr_ibody_set+0x24e/0x6c0 fs/ext4/xattr.c:2229 ext4_destroy_inline_data_nolock+0x211/0x5b0 fs/ext4/inline.c:451 ext4_convert_inline_data_nolock+0x3c9/0x9e0 fs/ext4/inline.c:1232 ext4_try_add_inline_entry+0x784/0xad0 fs/ext4/inline.c:1342 ext4_add_entry+0x4eb/0xd70 fs/ext4/namei.c:2458 ext4_add_nondir+0x97/0x270 fs/ext4/namei.c:2845 ext4_create+0x2e0/0x460 fs/ext4/namei.c:2891 lookup_open fs/namei.c:3481 [inline] open_last_lookups fs/namei.c:3549 [inline] path_openat+0x11e3/0x2f50 fs/namei.c:3779 do_filp_open+0x1c1/0x3c0 fs/namei.c:3809 do_sys_openat2+0x185/0x7e0 fs/open.c:1341 do_sys_open fs/open.c:1357 [inline] __do_sys_openat fs/open.c:1373 [inline] __se_sys_openat fs/open.c:1368 [inline] __x64_sys_openat+0x136/0x160 fs/open.c:1368 x64_sys_call+0x783/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:258 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fa859a21bf9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff7d2c2c48 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000000000073 RCX: 00007fa859a21bf9 RDX: 000000000000275a RSI: 00002000000000c0 RDI: 00000000ffffff9c RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fa859a86604 R13: 00007fff7d2c2e28 R14: 0000000000000001 R15: 0000000000000001 The buggy address belongs to the physical page: page:ffffea0004774cc0 refcount:2 mapcount:0 mapping:ffff8881094cd308 index:0xbd7 pfn:0x11dd33 memcg:ffff88810033f500 aops:ext4_da_aops ino:7e4 dentry name(?):"syz-execprog" flags: 0x5000000000002014(uptodate|lru|private|zone=1) raw: 5000000000002014 ffffea0004713f48 ffffea0004774d08 ffff8881094cd308 raw: 0000000000000bd7 ffff8881133eb930 00000002ffffffff ffff88810033f500 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Movable, gfp_mask 0x141cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP|__GFP_WRITE), pid 272, tgid 272 (sftp-server), ts 52241439526, free_ts 52174364389 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2637 prep_new_page+0x1c/0x110 mm/page_alloc.c:2644 get_page_from_freelist+0x2c7b/0x2cf0 mm/page_alloc.c:4539 __alloc_pages+0x19e/0x3a0 mm/page_alloc.c:5850 __folio_alloc+0x12/0x40 mm/page_alloc.c:5882 __folio_alloc_node include/linux/gfp.h:245 [inline] folio_alloc include/linux/gfp.h:274 [inline] filemap_alloc_folio include/linux/pagemap.h:513 [inline] __filemap_get_folio+0x6ec/0x980 mm/filemap.c:2018 pagecache_get_page+0x2b/0x110 mm/folio-compat.c:110 grab_cache_page_write_begin+0x43/0x60 mm/folio-compat.c:122 ext4_da_write_begin+0x4f0/0x8b0 fs/ext4/inode.c:3017 generic_perform_write+0x2f6/0x6d0 mm/filemap.c:3882 ext4_buffered_write_iter+0x36f/0x660 fs/ext4/file.c:285 ext4_file_write_iter+0x18f/0x13d0 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+0x5db/0xca0 fs/read_write.c:584 ksys_write+0x140/0x240 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __x64_sys_write+0x7b/0x90 fs/read_write.c:646 x64_sys_call+0x27b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:2 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1545 [inline] free_pcp_prepare mm/page_alloc.c:1619 [inline] free_unref_page_prepare+0x742/0x750 mm/page_alloc.c:3581 free_unref_page_list+0xba/0x7c0 mm/page_alloc.c:3729 release_pages+0xad1/0xb20 mm/swap.c:1043 free_pages_and_swap_cache+0x86/0xa0 mm/swap_state.c:315 tlb_batch_pages_flush mm/mmu_gather.c:59 [inline] tlb_flush_mmu_free mm/mmu_gather.c:254 [inline] tlb_flush_mmu mm/mmu_gather.c:261 [inline] tlb_finish_mmu+0x1aa/0x370 mm/mmu_gather.c:361 unmap_region+0x28d/0x2e0 mm/mmap.c:2402 do_mas_align_munmap+0xb94/0x11b0 mm/mmap.c:2668 do_mas_munmap+0x241/0x2b0 mm/mmap.c:2726 __vm_munmap+0x19f/0x2f0 mm/mmap.c:3025 __do_sys_munmap mm/mmap.c:3051 [inline] __se_sys_munmap mm/mmap.c:3047 [inline] __x64_sys_munmap+0x6b/0x80 mm/mmap.c:3047 x64_sys_call+0x8a/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:12 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Memory state around the buggy address: ffff88811dd32f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88811dd32f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88811dd33000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88811dd33080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88811dd33100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00