================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x1326/0x3860 fs/ext4/xattr.c:1729 Read of size 18446744073709551600 at addr ffff88811421a6b8 by task syz.1.770/2980 CPU: 0 PID: 2980 Comm: syz.1.770 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 __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+0x2fb/0x770 fs/file_table.c:281 ____fput+0x15/0x20 fs/file_table.c:314 task_work_run+0x127/0x190 kernel/task_work.c:189 exit_task_work include/linux/task_work.h:33 [inline] do_exit+0xa87/0x2500 kernel/exit.c:873 do_group_exit+0x141/0x310 kernel/exit.c:987 get_signal+0xf7d/0x12e0 kernel/signal.c:2793 arch_do_signal_or_restart+0xe2/0x11d0 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 irqentry_exit_to_user_mode+0x9/0x10 kernel/entry/common.c:287 irqentry_exit+0x12/0x60 kernel/entry/common.c:375 exc_page_fault+0x67/0xc0 arch/x86/mm/fault.c:1495 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:571 RIP: 0033:0x0 Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6. RSP: 002b:0000200000000398 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007fbe426b5fa0 RCX: 00007fbe4243ce59 RDX: 00002000000003c0 RSI: 0000200000000390 RDI: 0000000002000000 RBP: 00007fbe424d2d6f R08: 0000200000000440 R09: 0000200000000440 R10: 0000200000000400 R11: 0000000000000206 R12: 0000000000000000 R13: 00007fbe426b6038 R14: 00007fbe426b5fa0 R15: 00007ffc4a642dc8 The buggy address belongs to the page: page:ffffea0004508680 refcount:2 mapcount:0 mapping:ffff88810919c290 index:0x2 pfn:0x11421a aops:def_blk_aops ino:0 flags: 0x400000000002203e(referenced|uptodate|dirty|lru|active|private|mappedtodisk) raw: 400000000002203e ffffea0004c4d608 ffffea0004793648 ffff88810919c290 raw: 0000000000000002 ffff88812f485b28 00000002ffffffff ffff888127f6e000 page dumped because: kasan: bad access detected page->mem_cgroup:ffff888127f6e000 page_owner tracks the page as allocated page last allocated via order 0, migratetype Movable, gfp_mask 0x108c48(GFP_NOFS|__GFP_NOFAIL|__GFP_HARDWALL|__GFP_MOVABLE), pid 2975, ts 124827793593, free_ts 124826756825 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] pagecache_get_page+0x63e/0x930 mm/filemap.c:1848 find_or_create_page include/linux/pagemap.h:402 [inline] grow_dev_page fs/buffer.c:976 [inline] grow_buffers fs/buffer.c:1045 [inline] __getblk_slow fs/buffer.c:1072 [inline] __getblk_gfp+0x212/0x780 fs/buffer.c:1370 sb_getblk include/linux/buffer_head.h:361 [inline] __ext4_get_inode_loc+0x467/0xc30 fs/ext4/inode.c:4456 __ext4_get_inode_loc_noinmem fs/ext4/inode.c:4566 [inline] __ext4_iget+0x495/0x44c0 fs/ext4/inode.c:4816 ext4_orphan_get+0x1e3/0x630 fs/ext4/ialloc.c:1401 ext4_orphan_cleanup+0x663/0xd30 fs/ext4/super.c:3081 ext4_fill_super+0x865f/0x8d70 fs/ext4/super.c:5079 mount_bdev+0x28b/0x3a0 fs/super.c:1442 ext4_mount+0x34/0x40 fs/ext4/super.c:6666 legacy_get_tree+0xed/0x190 fs/fs_context.c:593 vfs_get_tree+0x89/0x260 fs/super.c:1572 do_new_mount+0x25a/0xa20 fs/namespace.c:3006 path_mount+0x585/0xc90 fs/namespace.c:3336 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_list+0x129/0x9c0 mm/page_alloc.c:3443 release_pages+0xe52/0xea0 mm/swap.c:1103 __pagevec_release+0x71/0xe0 mm/swap.c:1123 pagevec_release include/linux/pagevec.h:88 [inline] shmem_undo_range+0x74a/0x1810 mm/shmem.c:965 shmem_truncate_range mm/shmem.c:1069 [inline] shmem_evict_inode+0x210/0xa00 mm/shmem.c:1169 evict+0x4ae/0x930 fs/inode.c:612 iput_final fs/inode.c:1736 [inline] iput+0x638/0x7c0 fs/inode.c:1762 dentry_unlink_inode+0x2cf/0x380 fs/dcache.c:378 __dentry_kill+0x44f/0x650 fs/dcache.c:583 dentry_kill+0xc0/0x2a0 fs/dcache.c:-1 dput+0x42/0x80 fs/dcache.c:883 do_renameat2+0x7bd/0xe50 fs/namei.c:4631 __do_sys_rename fs/namei.c:4678 [inline] __se_sys_rename fs/namei.c:4676 [inline] __x64_sys_rename+0x86/0x90 fs/namei.c:4676 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb Memory state around the buggy address: ffff88811421a580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88811421a600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88811421a680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88811421a700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88811421a780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== EXT4-fs error (device loop1): ext4_validate_block_bitmap:429: comm syz.1.770: bg 0: block 5: invalid block bitmap EXT4-fs (loop1): Delayed block allocation failed for inode 19 at logical offset 0 with max blocks 5 with error 28 EXT4-fs (loop1): This should not happen!! Data will be lost EXT4-fs (loop1): Total free blocks count 0 EXT4-fs (loop1): Free/Dirty block details EXT4-fs (loop1): free_blocks=0 EXT4-fs (loop1): dirty_blocks=2909 EXT4-fs (loop1): Block reservation details EXT4-fs (loop1): i_reserved_data_blocks=2909