================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0xb02/0x2230 fs/ext4/xattr.c:1708 Read of size 18446744073709551600 at addr ffff88811e1feeb8 by task syz.5.333/1505 CPU: 0 PID: 1505 Comm: syz.5.333 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/25/2026 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:88 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106 print_address_description+0x71/0x200 mm/kasan/report.c:316 print_report+0x4a/0x60 mm/kasan/report.c:420 kasan_report+0x122/0x150 mm/kasan/report.c:524 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+0xb02/0x2230 fs/ext4/xattr.c:1708 ext4_xattr_ibody_set+0x25b/0x720 fs/ext4/xattr.c:2215 ext4_destroy_inline_data_nolock+0x234/0x5e0 fs/ext4/inline.c:468 ext4_destroy_inline_data+0x84/0xe0 fs/ext4/inline.c:1923 ext4_writepages+0x7e8/0x30a0 fs/ext4/inode.c:2764 do_writepages+0x3ab/0x600 mm/page-writeback.c:2494 filemap_fdatawrite_wbc+0x128/0x190 mm/filemap.c:409 __filemap_fdatawrite_range mm/filemap.c:442 [inline] __filemap_fdatawrite mm/filemap.c:448 [inline] filemap_flush+0xe0/0x140 mm/filemap.c:475 ext4_alloc_da_blocks+0x7a/0x190 fs/ext4/inode.c:3167 ext4_release_file+0x84/0x320 fs/ext4/file.c:158 __fput+0x1fd/0x8f0 fs/file_table.c:320 ____fput+0x15/0x20 fs/file_table.c:348 task_work_run+0x1e1/0x250 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x9b/0xb0 kernel/entry/common.c:177 exit_to_user_mode_prepare+0x87/0xd0 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 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fa21cb9de99 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:00007ffe981e3698 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007ffe981e3780 RCX: 00007fa21cb9de99 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 000000000000e5f5 R08: 0000000000000001 R09: 0000000000000000 R10: 0000001b32d20000 R11: 0000000000000246 R12: 00007ffe981e37c0 R13: 00007fa21ce25fac R14: 000000000000e663 R15: 00007fa21ce25fa0 The buggy address belongs to the physical page: page:ffffea0004787f80 refcount:3 mapcount:1 mapping:ffff88810b71c1d0 index:0x10 pfn:0x11e1fe memcg:ffff88810023ba80 aops:def_blk_aops ino:700005 flags: 0x560000000002205e(referenced|uptodate|dirty|lru|workingset|private|mappedtodisk|zone=1) raw: 560000000002205e ffffea0004787fc8 ffffea0004787f48 ffff88810b71c1d0 raw: 0000000000000010 ffff8881162d05e8 0000000300000000 ffff88810023ba80 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 353, tgid 353 (udevd), ts 58915737734, free_ts 58806560363 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2672 prep_new_page+0x1c/0x110 mm/page_alloc.c:2679 get_page_from_freelist+0x2ca9/0x2d20 mm/page_alloc.c:4586 __alloc_pages+0x1fa/0x610 mm/page_alloc.c:5930 __folio_alloc+0x12/0x40 mm/page_alloc.c:5963 __folio_alloc_node include/linux/gfp.h:245 [inline] folio_alloc include/linux/gfp.h:274 [inline] filemap_alloc_folio include/linux/pagemap.h:515 [inline] page_cache_ra_unbounded+0x24d/0x850 mm/readahead.c:260 do_page_cache_ra mm/readahead.c:313 [inline] force_page_cache_ra mm/readahead.c:344 [inline] page_cache_sync_ra+0x3ec/0x4a0 mm/readahead.c:735 page_cache_sync_readahead include/linux/pagemap.h:1259 [inline] filemap_get_pages mm/filemap.c:2694 [inline] filemap_read+0x6b6/0x23c0 mm/filemap.c:2789 blkdev_read_iter+0x439/0x580 block/fops.c:668 call_read_iter include/linux/fs.h:2276 [inline] new_sync_read fs/read_write.c:389 [inline] vfs_read+0x46e/0x930 fs/read_write.c:470 ksys_read+0x14a/0x260 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:46 [inline] do_syscall_64+0x4c/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:26 [inline] free_pages_prepare mm/page_alloc.c:1580 [inline] free_pcp_prepare mm/page_alloc.c:1654 [inline] free_unref_page_prepare+0x80c/0x820 mm/page_alloc.c:3621 free_unref_page+0x93/0x530 mm/page_alloc.c:3719 free_the_page mm/page_alloc.c:863 [inline] __free_pages+0x67/0x100 mm/page_alloc.c:6020 __vunmap+0xa3c/0xc00 mm/vmalloc.c:2739 __vfree mm/vmalloc.c:2788 [inline] vfree+0x61/0x90 mm/vmalloc.c:2819 bpf_check+0xd729/0x10e90 kernel/bpf/verifier.c:15703 bpf_prog_load+0x10f4/0x1670 kernel/bpf/syscall.c:2624 __sys_bpf+0x57b/0x850 kernel/bpf/syscall.c:5006 __do_sys_bpf kernel/bpf/syscall.c:5110 [inline] __se_sys_bpf kernel/bpf/syscall.c:5108 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5108 x64_sys_call+0x488/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:322 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Memory state around the buggy address: ffff88811e1fed80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88811e1fee00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88811e1fee80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88811e1fef00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88811e1fef80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== EXT4-fs error (device loop5): ext4_read_block_bitmap_nowait:477: comm syz.5.333: Invalid block bitmap block 7168870732846596096 in block_group 0 EXT4-fs (loop5): Delayed block allocation failed for inode 15 at logical offset 0 with max blocks 1 with error 28 EXT4-fs (loop5): This should not happen!! Data will be lost EXT4-fs (loop5): Total free blocks count 0 EXT4-fs (loop5): Free/Dirty block details EXT4-fs (loop5): free_blocks=0 EXT4-fs (loop5): dirty_blocks=16 EXT4-fs (loop5): Block reservation details EXT4-fs (loop5): i_reserved_data_blocks=1