================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x1159/0x3860 fs/ext4/xattr.c:1731 Read of size 18446744073709551600 at addr ffff88811e8a02b8 by task syz.0.390/1867 CPU: 0 PID: 1867 Comm: syz.0.390 Not tainted 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:77 dump_stack_lvl+0x1a7/0x208 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+0x100/0x140 mm/kasan/report.c:452 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+0x1159/0x3860 fs/ext4/xattr.c:1731 ext4_xattr_ibody_set+0x114/0x330 fs/ext4/xattr.c:2231 ext4_destroy_inline_data_nolock+0x20f/0x5e0 fs/ext4/inline.c:464 ext4_convert_inline_data_to_extent fs/ext4/inline.c:637 [inline] ext4_try_to_write_inline_data+0x6df/0x11e0 fs/ext4/inline.c:777 ext4_write_begin+0x25d/0x1730 fs/ext4/inode.c:1194 ext4_da_write_begin+0x32b/0xec0 fs/ext4/inode.c:3035 generic_perform_write+0x2ce/0x540 mm/filemap.c:3509 ext4_buffered_write_iter+0x48c/0x620 fs/ext4/file.c:271 ext4_file_write_iter+0x49a/0x19a0 fs/ext4/file.c:-1 do_iter_readv_writev+0x477/0x5f0 fs/read_write.c:-1 do_iter_write+0x175/0x5e0 fs/read_write.c:866 vfs_writev+0x2a9/0x530 fs/read_write.c:939 do_pwritev fs/read_write.c:1036 [inline] __do_sys_pwritev2 fs/read_write.c:1095 [inline] __se_sys_pwritev2+0x17d/0x290 fs/read_write.c:1086 __x64_sys_pwritev2+0xbf/0xd0 fs/read_write.c:1086 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fe030952e59 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:00007fe02f3ac028 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007fe030bdafa0 RCX: 00007fe030952e59 RDX: 0000000000000001 RSI: 00002000000000c0 RDI: 0000000000000007 RBP: 00007fe0309e8e6f R08: 0000000000000000 R09: 0000000000000000 R10: 00000000007ffffe R11: 0000000000000246 R12: 0000000000000000 R13: 00007fe030bdb038 R14: 00007fe030bdafa0 R15: 00007ffc8c1d4b48 The buggy address belongs to the page: page:ffffea00047a2800 refcount:7 mapcount:1 mapping:ffff88810044be10 index:0xa pfn:0x11e8a0 aops:def_blk_aops ino:0 flags: 0x4000000000022016(referenced|uptodate|lru|private|mappedtodisk) raw: 4000000000022016 ffffea00045ecbc8 ffffea00045f7508 ffff88810044be10 raw: 000000000000000a ffff88811ca58dc8 0000000700000000 ffff88810e9cc000 page dumped because: kasan: bad access detected page->mem_cgroup:ffff88810e9cc000 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 1867, ts 109470790376, free_ts 109459077311 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x176/0x190 mm/page_alloc.c:2462 get_page_from_freelist+0x225f/0x23f0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x29a/0x640 mm/page_alloc.c:5384 __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+0x2d2/0x790 mm/readahead.c:226 do_page_cache_ra+0xf2/0x110 mm/readahead.c:277 do_sync_mmap_readahead mm/filemap.c:2668 [inline] filemap_fault+0x1132/0x2020 mm/filemap.c:2811 __do_fault mm/memory.c:4064 [inline] do_read_fault mm/memory.c:4408 [inline] do_fault mm/memory.c:4536 [inline] handle_pte_fault+0x2466/0x3910 mm/memory.c:4800 __handle_mm_fault mm/memory.c:4953 [inline] handle_mm_fault+0xf86/0x1720 mm/memory.c:5367 faultin_page mm/gup.c:902 [inline] __get_user_pages+0xbf8/0x1400 mm/gup.c:1121 populate_vma_page_range mm/gup.c:1454 [inline] __mm_populate+0x31c/0x420 mm/gup.c:1502 mm_populate include/linux/mm.h:2793 [inline] vm_mmap_pgoff+0x23b/0x350 mm/util.c:548 ksys_mmap_pgoff+0x16f/0x1e0 mm/mmap.c:1712 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:95 [inline] __se_sys_mmap arch/x86/kernel/sys_x86_64.c:86 [inline] __x64_sys_mmap+0xfa/0x110 arch/x86/kernel/sys_x86_64.c:86 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 mm/page_alloc.c:3391 [inline] free_the_page mm/page_alloc.c:5443 [inline] __free_pages+0x146/0x390 mm/page_alloc.c:5454 __free_slab+0xcf/0x190 mm/slub.c:1899 free_slab mm/slub.c:1914 [inline] discard_slab mm/slub.c:1920 [inline] unfreeze_partials+0x150/0x180 mm/slub.c:2415 put_cpu_partial+0xc1/0x180 mm/slub.c:2451 __slab_free+0x2c9/0x3a0 mm/slub.c:3100 do_slab_free mm/slub.c:3196 [inline] ___cache_free+0x10e/0x130 mm/slub.c:3215 qlink_free+0x50/0x90 mm/kasan/quarantine.c:157 qlist_free_all+0x5f/0xb0 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x14a/0x160 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x2f/0xe0 mm/kasan/common.c:440 kasan_slab_alloc include/linux/kasan.h:244 [inline] slab_post_alloc_hook+0x5d/0x2f0 mm/slab.h:580 slab_alloc_node mm/slub.c:2952 [inline] slab_alloc mm/slub.c:2960 [inline] kmem_cache_alloc+0x15a/0x2d0 mm/slub.c:2965 anon_vma_chain_alloc mm/rmap.c:138 [inline] __anon_vma_prepare+0x51/0x410 mm/rmap.c:192 anon_vma_prepare include/linux/rmap.h:171 [inline] do_anonymous_page mm/memory.c:3961 [inline] handle_pte_fault+0x30d7/0x3910 mm/memory.c:4795 __handle_mm_fault mm/memory.c:4953 [inline] handle_mm_fault+0xf86/0x1720 mm/memory.c:5367 Memory state around the buggy address: ffff88811e8a0180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88811e8a0200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88811e8a0280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88811e8a0300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88811e8a0380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== EXT4-fs warning (device loop0): ext4_read_block_bitmap_nowait:485: Cannot get buffer for block bitmap - block_group = 0, block_bitmap = 4294967295