================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x1326/0x3860 fs/ext4/xattr.c:1729 Read of size 18446744073709551600 at addr ffff888113c00eb8 by task syz.5.152/969 CPU: 0 PID: 969 Comm: syz.5.152 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+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 do_iter_readv_writev+0x478/0x5f0 fs/read_write.c:-1 do_iter_write+0x189/0x630 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+0x1af/0x2b0 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:0x7ff66858fe59 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:00007ff666fea028 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007ff668808fa0 RCX: 00007ff66858fe59 RDX: 0000000000000014 RSI: 0000200000000240 RDI: 000000000000000a RBP: 00007ff668625d6f R08: 0000000000000000 R09: 0000000000000003 R10: 0000000000007000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ff668809038 R14: 00007ff668808fa0 R15: 00007ffd722aa9f8 The buggy address belongs to the page: page:ffffea00044f0000 refcount:3 mapcount:1 mapping:ffff888110334f50 index:0xde pfn:0x113c00 aops:def_blk_aops ino:0 flags: 0x400000000002203e(referenced|uptodate|dirty|lru|active|private|mappedtodisk) raw: 400000000002203e ffffea0004da1788 ffff8881158da030 ffff888110334f50 raw: 00000000000000de ffff88811afa0a80 0000000300000000 ffff888115910000 page dumped because: kasan: bad access detected page->mem_cgroup:ffff888115910000 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 969, ts 50476405555, free_ts 50189760170 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] ondemand_readahead+0x7b5/0xc00 mm/readahead.c:559 page_cache_async_ra+0x29f/0x2d0 mm/readahead.c:617 page_cache_async_readahead include/linux/pagemap.h:860 [inline] do_async_mmap_readahead mm/filemap.c:2695 [inline] filemap_fault+0xa83/0x20d0 mm/filemap.c:2805 __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+0x2424/0x37d0 mm/memory.c:4800 __handle_mm_fault mm/memory.c:4953 [inline] handle_mm_fault+0xf81/0x1710 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+0x34f/0x440 mm/gup.c:1502 mm_populate include/linux/mm.h:2793 [inline] vm_mmap_pgoff+0x254/0x370 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_pages_ok+0x80b/0x830 mm/page_alloc.c:1629 free_the_page mm/page_alloc.c:5445 [inline] __free_pages+0xd8/0x3b0 mm/page_alloc.c:5454 __free_slab+0xcf/0x190 mm/slub.c:1899 free_slab mm/slub.c:1914 [inline] discard_slab+0x29/0x40 mm/slub.c:1920 __slab_free+0x313/0x3a0 mm/slub.c:3136 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/0xf0 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] __kmalloc_track_caller+0x17e/0x320 mm/slub.c:4541 memdup_user+0x25/0xb0 mm/util.c:176 proc_pid_attr_write+0x1d7/0x2e0 fs/proc/base.c:2832 vfs_write+0x338/0xdc0 fs/read_write.c:603 ksys_write+0x149/0x250 fs/read_write.c:658 Memory state around the buggy address: ffff888113c00d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888113c00e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888113c00e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888113c00f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888113c00f80: 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:476: comm syz.5.152: Invalid block bitmap block 1600 in block_group 0 EXT4-fs (loop5): Remounting filesystem read-only