================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x1331/0x3ea0 fs/ext4/xattr.c:1738 Read of size 18446744073709551600 at addr ffff8880614f12b8 by task syz.1.21/4375 CPU: 1 PID: 4375 Comm: syz.1.21 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/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:1738 ext4_xattr_ibody_set+0x112/0x330 fs/ext4/xattr.c:2240 ext4_destroy_inline_data_nolock+0x237/0x5e0 fs/ext4/inline.c:467 ext4_convert_inline_data_to_extent fs/ext4/inline.c:619 [inline] ext4_try_to_write_inline_data+0x72f/0x14f0 fs/ext4/inline.c:760 ext4_write_begin+0x26e/0x15d0 fs/ext4/inode.c:1183 generic_perform_write+0x2b6/0x550 mm/filemap.c:3785 ext4_buffered_write_iter+0x25f/0x3b0 fs/ext4/file.c:268 ext4_file_write_iter+0x74d/0x1700 fs/ext4/file.c:-1 call_write_iter include/linux/fs.h:2173 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x745/0xd60 fs/read_write.c:594 ksys_write+0x152/0x260 fs/read_write.c:647 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:0x7f4b6e0c8e59 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:00007f4b6c301028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f4b6e342090 RCX: 00007f4b6e0c8e59 RDX: 0000000000000961 RSI: 0000200000002fc0 RDI: 0000000000000005 RBP: 00007f4b6e15ed6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f4b6e342128 R14: 00007f4b6e342090 R15: 00007ffed5ed8108 The buggy address belongs to the page: page:ffffea0001853c40 refcount:3 mapcount:1 mapping:ffff8880170e2038 index:0x2 pfn:0x614f1 memcg:ffff8880284e4000 aops:def_blk_aops ino:700001 flags: 0xfff0000002203e(referenced|uptodate|dirty|lru|active|private|mappedtodisk|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff0000002203e ffffea0001787608 ffffea0001c99188 ffff8880170e2038 raw: 0000000000000002 ffff888061232828 0000000300000000 ffff8880284e4000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x108c40(GFP_NOFS|__GFP_NOFAIL|__GFP_HARDWALL), pid 4352, ts 58193333690, free_ts 58192545985 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_gfp include/linux/buffer_head.h:368 [inline] ext4_sb_breadahead_unmovable+0x68/0xe0 fs/ext4/super.c:239 __ext4_get_inode_loc+0x989/0xcd0 fs/ext4/inode.c:4417 __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+0x8f/0x2a0 mm/page_alloc.c:3396 free_slab mm/slub.c:2020 [inline] discard_slab mm/slub.c:2026 [inline] __unfreeze_partials+0x1a5/0x200 mm/slub.c:2512 put_cpu_partial+0x12d/0x190 mm/slub.c:2592 qlist_free_all+0x35/0x90 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x150/0x160 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x2f/0xd0 mm/kasan/common.c:444 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x4c/0x380 mm/slab.h:519 slab_alloc_node mm/slub.c:3225 [inline] slab_alloc mm/slub.c:3233 [inline] __kmalloc_track_caller+0x125/0x330 mm/slub.c:4930 kvasprintf+0xe3/0x1a0 lib/kasprintf.c:25 kasprintf+0xdf/0x130 lib/kasprintf.c:59 wq_init_lockdep kernel/workqueue.c:3508 [inline] alloc_workqueue+0x576/0x1410 kernel/workqueue.c:4362 ext4_fill_super+0x7352/0x94f0 fs/ext4/super.c:4860 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 Memory state around the buggy address: ffff8880614f1180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880614f1200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880614f1280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff8880614f1300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880614f1380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================