================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0xa10/0x1e90 fs/ext4/xattr.c:1761 Read of size 18446744073709551600 at addr ffff8880797e60b8 by task syz.2.3417/21842 CPU: 0 PID: 21842 Comm: syz.2.3417 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xa8/0x210 mm/kasan/report.c:468 kasan_report+0x117/0x150 mm/kasan/report.c:581 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x241/0x290 mm/kasan/generic.c:187 __asan_memmove+0x29/0x70 mm/kasan/shadow.c:94 ext4_xattr_set_entry+0xa10/0x1e90 fs/ext4/xattr.c:1761 ext4_xattr_ibody_set+0x254/0x6a0 fs/ext4/xattr.c:2268 ext4_destroy_inline_data_nolock+0x23b/0x5e0 fs/ext4/inline.c:467 ext4_convert_inline_data_nolock+0x1f1/0x730 fs/ext4/inline.c:1222 ext4_convert_inline_data+0x4c6/0x5f0 fs/ext4/inline.c:2083 ext4_fallocate+0xed/0x1d40 fs/ext4/extents.c:4815 vfs_fallocate+0x58e/0x700 fs/open.c:324 ksys_fallocate fs/open.c:347 [inline] __do_sys_fallocate fs/open.c:355 [inline] __se_sys_fallocate fs/open.c:353 [inline] __x64_sys_fallocate+0xc1/0x110 fs/open.c:353 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f1bfd59c819 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:00007f1bfe4aa028 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f1bfd816090 RCX: 00007f1bfd59c819 RDX: 0000000000000003 RSI: 0000000000000000 RDI: 0000000000000007 RBP: 00007f1bfd632c91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000800000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f1bfd816128 R14: 00007f1bfd816090 R15: 00007fff38aaa548 The buggy address belongs to the physical page: page:ffffea0001e5f980 refcount:2 mapcount:0 mapping:ffff8880200758f8 index:0x3 pfn:0x797e6 memcg:ffff88801a672000 aops:def_blk_aops ino:700002 flags: 0xfff5800002822c(referenced|uptodate|lru|workingset|private|mappedtodisk|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff5800002822c ffffea00015d5148 ffff88801a6741f8 ffff8880200758f8 raw: 0000000000000003 ffff8880769b1e80 00000002ffffffff ffff88801a672000 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 20419, tgid 20419 (udevd), ts 669613374771, free_ts 669598812840 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1c1/0x200 mm/page_alloc.c:1581 prep_new_page mm/page_alloc.c:1588 [inline] get_page_from_freelist+0x1951/0x19e0 mm/page_alloc.c:3220 __alloc_pages+0x1f0/0x460 mm/page_alloc.c:4500 folio_alloc+0x1e/0x30 mm/mempolicy.c:2289 filemap_alloc_folio+0xdf/0x490 mm/filemap.c:1004 page_cache_ra_unbounded+0x17b/0x770 mm/readahead.c:247 do_page_cache_ra mm/readahead.c:299 [inline] force_page_cache_ra mm/readahead.c:330 [inline] page_cache_sync_ra+0x3db/0x490 mm/readahead.c:694 page_cache_sync_readahead include/linux/pagemap.h:1325 [inline] filemap_get_pages+0x3d6/0x1e90 mm/filemap.c:2594 filemap_read+0x402/0xf00 mm/filemap.c:2690 blkdev_read_iter+0x341/0x480 block/fops.c:744 call_read_iter include/linux/fs.h:2012 [inline] new_sync_read fs/read_write.c:389 [inline] vfs_read+0x46a/0x970 fs/read_write.c:470 ksys_read+0x150/0x260 fs/read_write.c:613 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/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:24 [inline] free_pages_prepare mm/page_alloc.c:1181 [inline] free_unref_page_prepare+0x7b2/0x8c0 mm/page_alloc.c:2365 free_unref_page+0x32/0x2e0 mm/page_alloc.c:2458 discard_slab mm/slub.c:2127 [inline] __unfreeze_partials+0x1cf/0x210 mm/slub.c:2667 put_cpu_partial+0x17c/0x250 mm/slub.c:2743 __slab_free+0x319/0x400 mm/slub.c:3700 qlink_free mm/kasan/quarantine.c:166 [inline] qlist_free_all+0x75/0xd0 mm/kasan/quarantine.c:185 kasan_quarantine_reduce+0x143/0x160 mm/kasan/quarantine.c:292 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:306 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook+0x6e/0x4b0 mm/slab.h:767 slab_alloc_node mm/slub.c:3495 [inline] slab_alloc mm/slub.c:3503 [inline] __kmem_cache_alloc_lru mm/slub.c:3510 [inline] kmem_cache_alloc+0x11a/0x2d0 mm/slub.c:3519 getname_flags+0xbb/0x500 fs/namei.c:140 do_sys_openat2+0xda/0x1d0 fs/open.c:1415 do_sys_open fs/open.c:1436 [inline] __do_sys_openat fs/open.c:1452 [inline] __se_sys_openat fs/open.c:1447 [inline] __x64_sys_openat+0x139/0x160 fs/open.c:1447 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Memory state around the buggy address: ffff8880797e5f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880797e6000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880797e6080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff8880797e6100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880797e6180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================