EXT4-fs (loop2): 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 ffff88811024b008 by task syz.2.16/472 CPU: 0 PID: 472 Comm: syz.2.16 Not tainted 6.1.145-syzkaller-1169984-g3b4ff5af8d36 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/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:0x7fd87098e929 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:00007fd8717d1038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fd870bb5fa0 RCX: 00007fd87098e929 RDX: 000000000000275a RSI: 00002000000000c0 RDI: ffffffffffffff9c RBP: 00007fd870a10b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fd870bb5fa0 R15: 00007fffa566a8c8 The buggy address belongs to the physical page: page:ffffea00044092c0 refcount:2 mapcount:1 mapping:ffff88811381b2d0 index:0x4 pfn:0x11024b memcg:ffff88810033eb40 aops:def_blk_aops ino:700002 flags: 0x5400000000020056(referenced|uptodate|lru|workingset|mappedtodisk|zone=1) raw: 5400000000020056 ffffea0004409288 ffffea0004409348 ffff88811381b2d0 raw: 0000000000000004 0000000000000000 0000000200000000 ffff88810033eb40 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 400, tgid 400 (udevd), ts 55411097314, free_ts 54747816828 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:4544 __alloc_pages+0x1c3/0x450 mm/page_alloc.c:5858 __folio_alloc+0x12/0x40 mm/page_alloc.c:5890 __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] page_cache_ra_unbounded+0x234/0x720 mm/readahead.c:260 do_page_cache_ra mm/readahead.c:312 [inline] force_page_cache_ra mm/readahead.c:343 [inline] page_cache_sync_ra+0x3e3/0x490 mm/readahead.c:727 page_cache_sync_readahead include/linux/pagemap.h:1257 [inline] filemap_get_pages mm/filemap.c:2690 [inline] filemap_read+0x62d/0x22c0 mm/filemap.c:2785 blkdev_read_iter+0x41e/0x560 block/fops.c:614 call_read_iter include/linux/fs.h:2276 [inline] new_sync_read fs/read_write.c:389 [inline] vfs_read+0x41e/0x8c0 fs/read_write.c:470 ksys_read+0x140/0x240 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:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 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: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+0x8f/0x530 mm/page_alloc.c:3677 free_the_page mm/page_alloc.c:830 [inline] __free_pages+0x67/0x100 mm/page_alloc.c:5947 __vunmap+0x9af/0xb70 mm/vmalloc.c:2731 __vfree mm/vmalloc.c:2780 [inline] vfree+0x61/0x90 mm/vmalloc.c:2811 kcov_put kernel/kcov.c:437 [inline] kcov_close+0x2b/0x50 kernel/kcov.c:533 __fput+0x1fc/0x8f0 fs/file_table.c:320 ____fput+0x15/0x20 fs/file_table.c:348 task_work_run+0x1db/0x240 kernel/task_work.c:203 exit_task_work include/linux/task_work.h:39 [inline] do_exit+0xa25/0x2650 kernel/exit.c:886 do_group_exit+0x210/0x2d0 kernel/exit.c:1028 get_signal+0x13b5/0x1520 kernel/signal.c:2889 arch_do_signal_or_restart+0xb0/0x1030 arch/x86/kernel/signal.c:871 exit_to_user_mode_loop+0x7a/0xb0 kernel/entry/common.c:174 exit_to_user_mode_prepare+0x5a/0xa0 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 Memory state around the buggy address: ffff88811024af00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88811024af80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88811024b000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88811024b080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88811024b100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================