================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x1331/0x3ea0 fs/ext4/xattr.c:1736 Read of size 18446744073709551600 at addr ffff888016a49eb8 by task syz.3.2209/15362 CPU: 0 PID: 15362 Comm: syz.3.2209 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026 Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 print_address_description+0x60/0x2d0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xdf/0x130 mm/kasan/report.c:451 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x235/0x290 mm/kasan/generic.c:189 memmove+0x25/0x60 mm/kasan/shadow.c:54 ext4_xattr_set_entry+0x1331/0x3ea0 fs/ext4/xattr.c:1736 ext4_xattr_ibody_set+0x112/0x330 fs/ext4/xattr.c:2238 ext4_destroy_inline_data_nolock+0x237/0x5e0 fs/ext4/inline.c:467 ext4_destroy_inline_data+0x7f/0xe0 fs/ext4/inline.c:1901 ext4_writepages+0x670/0x2df0 fs/ext4/inode.c:2737 do_writepages+0x476/0x6e0 mm/page-writeback.c:2386 filemap_fdatawrite_wbc+0x1eb/0x240 mm/filemap.c:400 __filemap_fdatawrite_range mm/filemap.c:433 [inline] file_write_and_wait_range+0x14d/0x220 mm/filemap.c:810 ext4_sync_file+0x1ff/0xae0 fs/ext4/fsync.c:151 generic_write_sync include/linux/fs.h:2990 [inline] ext4_buffered_write_iter+0x338/0x3b0 fs/ext4/file.c:275 ext4_file_write_iter+0x74d/0x1700 fs/ext4/file.c:-1 do_iter_readv_writev+0x47e/0x5f0 fs/read_write.c:-1 do_iter_write+0x205/0x7b0 fs/read_write.c:855 vfs_writev fs/read_write.c:928 [inline] do_pwritev+0x240/0x3a0 fs/read_write.c:1025 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f62c9874e59 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:00007f62c7ace028 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007f62c9aedfa0 RCX: 00007f62c9874e59 RDX: 0000000000000001 RSI: 0000200000000240 RDI: 0000000000000007 RBP: 00007f62c990ad6f R08: 0000000000000000 R09: 0000000000000003 R10: 0000000000002000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f62c9aee038 R14: 00007f62c9aedfa0 R15: 00007fff9a63b378 The buggy address belongs to the page: page:ffffea00005a9240 refcount:3 mapcount:1 mapping:ffff88801d5d7270 index:0x2 pfn:0x16a49 memcg:ffff888077c70000 aops:def_blk_aops ino:700003 flags: 0xfff0000002203e(referenced|uptodate|dirty|lru|active|private|mappedtodisk|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff0000002203e ffffea00017ec7c8 ffff888076f2b030 ffff88801d5d7270 raw: 0000000000000002 ffff888060342910 0000000300000000 ffff888077c70000 page dumped because: kasan: bad access detected 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 15362, ts 982474180118, free_ts 982379910259 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x1bbd/0x1ca0 mm/page_alloc.c:4192 __alloc_pages+0x1ee/0x480 mm/page_alloc.c:5501 __page_cache_alloc+0xce/0x440 mm/filemap.c:1022 pagecache_get_page+0x9b6/0xf10 mm/filemap.c:1940 find_or_create_page include/linux/pagemap.h:420 [inline] grow_dev_page fs/buffer.c:949 [inline] grow_buffers fs/buffer.c:1014 [inline] __getblk_slow fs/buffer.c:1041 [inline] __getblk_gfp+0x247/0xb60 fs/buffer.c:1336 sb_getblk include/linux/buffer_head.h:361 [inline] __ext4_get_inode_loc+0x46e/0xcd0 fs/ext4/inode.c:4339 __ext4_get_inode_loc_noinmem fs/ext4/inode.c:4447 [inline] __ext4_iget+0x448/0x3e50 fs/ext4/inode.c:4702 ext4_fill_super+0x73f9/0x94f0 fs/ext4/super.c:4872 mount_bdev+0x287/0x3c0 fs/super.c:1400 legacy_get_tree+0xe6/0x180 fs/fs_context.c:611 vfs_get_tree+0x88/0x270 fs/super.c:1530 do_new_mount+0x24a/0xa40 fs/namespace.c:3034 do_mount fs/namespace.c:3377 [inline] __do_sys_mount fs/namespace.c:3585 [inline] __se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3562 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317 free_unref_page_list+0x119/0x820 mm/page_alloc.c:3433 release_pages+0x186c/0x1be0 mm/swap.c:963 tlb_batch_pages_flush mm/mmu_gather.c:50 [inline] tlb_flush_mmu_free mm/mmu_gather.c:241 [inline] tlb_flush_mmu mm/mmu_gather.c:248 [inline] tlb_finish_mmu+0x1b4/0x370 mm/mmu_gather.c:371 unmap_region+0x344/0x3b0 mm/mmap.c:2669 __do_munmap+0x9f8/0xdf0 mm/mmap.c:2899 __vm_munmap+0x140/0x240 mm/mmap.c:2952 __do_sys_munmap mm/mmap.c:2978 [inline] __se_sys_munmap mm/mmap.c:2974 [inline] __x64_sys_munmap+0x67/0x70 mm/mmap.c:2974 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Memory state around the buggy address: ffff888016a49d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888016a49e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888016a49e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888016a49f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888016a49f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================