================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x1159/0x3860 fs/ext4/xattr.c:1731 Read of size 18446744073709551600 at addr ffff888111f98eb8 by task syz.2.22/401 CPU: 1 PID: 401 Comm: syz.2.22 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: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_destroy_inline_data+0x84/0xe0 fs/ext4/inline.c:1904 ext4_writepages+0x603/0x2f00 fs/ext4/inode.c:2781 do_writepages+0x12e/0x280 mm/page-writeback.c:2380 __filemap_fdatawrite_range+0x2a0/0x350 mm/filemap.c:427 __filemap_fdatawrite mm/filemap.c:435 [inline] filemap_flush+0x23/0x30 mm/filemap.c:462 ext4_alloc_da_blocks+0x7a/0x190 fs/ext4/inode.c:3252 ext4_release_file+0x84/0x320 fs/ext4/file.c:144 __fput+0x2dc/0x730 fs/file_table.c:281 ____fput+0x15/0x20 fs/file_table.c:314 task_work_run+0x127/0x190 kernel/task_work.c:189 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop+0xcb/0xe0 kernel/entry/common.c:172 exit_to_user_mode_prepare+0x76/0xa0 kernel/entry/common.c:199 syscall_exit_to_user_mode+0x1d/0x40 kernel/entry/common.c:274 do_syscall_64+0x3d/0x40 arch/x86/entry/common.c:56 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fed79873e99 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:00007fffe6ba56e8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007fffe6ba57d0 RCX: 00007fed79873e99 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 0000000000006973 R08: 0000000000000001 R09: 0000000000000000 R10: 0000001b2d420000 R11: 0000000000000246 R12: 00007fffe6ba5810 R13: 00007fed79afbfac R14: 0000000000006a0f R15: 00007fed79afbfa0 The buggy address belongs to the page: page:ffffea000447e600 refcount:9 mapcount:1 mapping:ffff88810044a050 index:0x10 pfn:0x111f98 aops:def_blk_aops ino:0 flags: 0x400000000002201c(uptodate|dirty|lru|private|mappedtodisk) raw: 400000000002201c ffffea0004a2d148 ffffea0004acddc8 ffff88810044a050 raw: 0000000000000010 ffff88811cb4d150 0000000900000000 ffff888100144000 page dumped because: kasan: bad access detected page->mem_cgroup:ffff888100144000 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 390, ts 27047933693, free_ts 26965762929 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 mm/readahead.c:277 [inline] force_page_cache_ra+0x3a7/0x400 mm/readahead.c:308 page_cache_sync_ra+0x237/0x2a0 mm/readahead.c:582 page_cache_sync_readahead include/linux/pagemap.h:837 [inline] generic_file_buffered_read+0x570/0x26d0 mm/filemap.c:2250 generic_file_read_iter+0x10b/0x580 mm/filemap.c:2568 blkdev_read_iter+0x12f/0x160 fs/block_dev.c:1956 call_read_iter include/linux/fs.h:2060 [inline] new_sync_read fs/read_write.c:415 [inline] vfs_read+0x62a/0xa50 fs/read_write.c:496 ksys_read+0x14a/0x260 fs/read_write.c:634 __do_sys_read fs/read_write.c:644 [inline] __se_sys_read fs/read_write.c:642 [inline] __x64_sys_read+0x7b/0x90 fs/read_write.c:642 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_pages+0x82/0x90 mm/page_alloc.c:5465 tlb_batch_list_free mm/mmu_gather.c:61 [inline] tlb_finish_mmu+0x258/0x310 mm/mmu_gather.c:329 exit_mmap+0x329/0x590 mm/mmap.c:3387 __mmput+0x92/0x2d0 kernel/fork.c:1153 mmput+0x4e/0x150 kernel/fork.c:1176 exit_mm kernel/exit.c:540 [inline] do_exit+0x9d8/0x24e0 kernel/exit.c:860 do_group_exit+0x149/0x310 kernel/exit.c:987 get_signal+0xfb1/0x1300 kernel/signal.c:2794 arch_do_signal_or_restart+0xe7/0x11b0 arch/x86/kernel/signal.c:805 handle_signal_work kernel/entry/common.c:145 [inline] exit_to_user_mode_loop+0xa2/0xe0 kernel/entry/common.c:169 exit_to_user_mode_prepare+0x76/0xa0 kernel/entry/common.c:199 syscall_exit_to_user_mode+0x1d/0x40 kernel/entry/common.c:274 do_syscall_64+0x3d/0x40 arch/x86/entry/common.c:56 entry_SYSCALL_64_after_hwframe+0x61/0xcb Memory state around the buggy address: ffff888111f98d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888111f98e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888111f98e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888111f98f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888111f98f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== EXT4-fs error (device loop2): ext4_read_block_bitmap_nowait:476: comm syz.2.22: Invalid block bitmap block 7168870732846596096 in block_group 0 EXT4-fs (loop2): Delayed block allocation failed for inode 15 at logical offset 0 with max blocks 1 with error 28 EXT4-fs (loop2): This should not happen!! Data will be lost EXT4-fs (loop2): Total free blocks count 0 EXT4-fs (loop2): Free/Dirty block details EXT4-fs (loop2): free_blocks=0 EXT4-fs (loop2): dirty_blocks=16 EXT4-fs (loop2): Block reservation details EXT4-fs (loop2): i_reserved_data_blocks=1