================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x1326/0x3860 fs/ext4/xattr.c:1729 Read of size 18446744073709551600 at addr ffff888100fc9eb8 by task syz.0.150/893 CPU: 1 PID: 893 Comm: syz.0.150 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/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+0xe2/0x130 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+0x1326/0x3860 fs/ext4/xattr.c:1729 ext4_xattr_ibody_set+0x122/0x360 fs/ext4/xattr.c:2229 ext4_destroy_inline_data_nolock+0x20f/0x5e0 fs/ext4/inline.c:464 ext4_destroy_inline_data+0x84/0xe0 fs/ext4/inline.c:1896 ext4_writepages+0x766/0x2eb0 fs/ext4/inode.c:2781 do_writepages+0x128/0x280 mm/page-writeback.c:2380 __filemap_fdatawrite_range+0x2a0/0x350 mm/filemap.c:427 file_write_and_wait_range+0x8c/0x110 mm/filemap.c:766 ext4_sync_file+0x1a9/0x9f0 fs/ext4/fsync.c:151 vfs_fsync_range+0x190/0x1a0 fs/sync.c:202 generic_write_sync include/linux/fs.h:2920 [inline] ext4_buffered_write_iter+0x59b/0x640 fs/ext4/file.c:278 ext4_file_write_iter+0x53f/0x1980 fs/ext4/file.c:-1 call_write_iter include/linux/fs.h:2066 [inline] new_sync_write fs/read_write.c:518 [inline] vfs_write+0x758/0xdc0 fs/read_write.c:605 ksys_pwrite64 fs/read_write.c:712 [inline] __do_sys_pwrite64 fs/read_write.c:722 [inline] __se_sys_pwrite64 fs/read_write.c:719 [inline] __x64_sys_pwrite64+0x197/0x220 fs/read_write.c:719 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f5bfd4d0e59 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:00007f5bfbf2b028 EFLAGS: 00000246 ORIG_RAX: 0000000000000012 RAX: ffffffffffffffda RBX: 00007f5bfd749fa0 RCX: 00007f5bfd4d0e59 RDX: 000000000000fdef RSI: 0000200000000140 RDI: 0000000000000006 RBP: 00007f5bfd566d6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000e7c R11: 0000000000000246 R12: 0000000000000000 R13: 00007f5bfd74a038 R14: 00007f5bfd749fa0 R15: 00007ffd33cc5808 The buggy address belongs to the page: page:ffffea000403f240 refcount:3 mapcount:1 mapping:ffff88810044a050 index:0x8 pfn:0x100fc9 aops:def_blk_aops ino:0 flags: 0x400000000002203e(referenced|uptodate|dirty|lru|active|private|mappedtodisk) raw: 400000000002203e ffffea000433f408 ffffea0004599a48 ffff88810044a050 raw: 0000000000000008 ffff88812a50fbd0 0000000300000000 ffff888100142000 page dumped because: kasan: bad access detected page->mem_cgroup:ffff888100142000 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 743, ts 39861891729, free_ts 39821593578 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x179/0x180 mm/page_alloc.c:2462 get_page_from_freelist+0x223b/0x23d0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x290/0x620 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+0x2dc/0x7e0 mm/readahead.c:226 do_page_cache_ra mm/readahead.c:277 [inline] force_page_cache_ra+0x3a9/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+0x574/0x2770 mm/filemap.c:2250 generic_file_read_iter+0x11e/0x5c0 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/0xa60 fs/read_write.c:496 ksys_read+0x149/0x250 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/0x3b0 mm/page_alloc.c:5454 __vunmap+0x86d/0x9f0 mm/vmalloc.c:2307 free_work+0x5a/0x80 mm/vmalloc.c:69 process_one_work+0x6e1/0xba0 kernel/workqueue.c:2301 worker_thread+0xa6a/0x13c0 kernel/workqueue.c:2447 kthread+0x346/0x3d0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Memory state around the buggy address: ffff888100fc9d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888100fc9e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888100fc9e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888100fc9f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888100fc9f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== EXT4-fs error (device loop0): ext4_read_block_bitmap_nowait:476: comm syz.0.150: Invalid block bitmap block 0 in block_group 0 EXT4-fs (loop0): Delayed block allocation failed for inode 15 at logical offset 0 with max blocks 34 with error 117 EXT4-fs (loop0): This should not happen!! Data will be lost