EXT4-fs (loop3): Ignoring removed nomblk_io_submit option EXT4-fs (loop3): mounted filesystem without journal. Opts: noblock_validity,bsddf,sysvgroups,norecovery,debug_want_extra_isize=0x0000000000000080,orlov,nogrpid,noauto_da_alloc,nomblk_io_submit,,errors=continue. Quota mode: none. ================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x1390/0x3d30 fs/ext4/xattr.c:1747 Read of size 18446744073709551552 at addr ffff888077ae62e8 by task syz.3.1383/10087 CPU: 1 PID: 10087 Comm: syz.3.1383 Not tainted 5.15.189-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: dump_stack_lvl+0x168/0x230 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+0x27b/0x290 mm/kasan/generic.c:189 memmove+0x25/0x60 mm/kasan/shadow.c:54 ext4_xattr_set_entry+0x1390/0x3d30 fs/ext4/xattr.c:1747 ext4_xattr_ibody_set+0x112/0x330 fs/ext4/xattr.c:2252 ext4_xattr_move_to_block fs/ext4/xattr.c:2639 [inline] ext4_xattr_make_inode_space fs/ext4/xattr.c:2707 [inline] ext4_expand_extra_isize_ea+0xf9a/0x19a0 fs/ext4/xattr.c:2799 __ext4_expand_extra_isize+0x301/0x3e0 fs/ext4/inode.c:5887 ext4_try_to_expand_extra_isize fs/ext4/inode.c:5930 [inline] __ext4_mark_inode_dirty+0x469/0x700 fs/ext4/inode.c:6008 ext4_dirty_inode+0xbf/0x100 fs/ext4/inode.c:6040 __mark_inode_dirty+0x2b0/0xc60 fs/fs-writeback.c:2464 generic_update_time+0x1cd/0x1f0 fs/inode.c:1881 inode_update_time fs/inode.c:1894 [inline] file_update_time+0x38b/0x400 fs/inode.c:2083 ext4_write_checks+0x240/0x2c0 fs/ext4/file.c:247 ext4_buffered_write_iter+0xb3/0x3b0 fs/ext4/file.c:263 ext4_file_write_iter+0x773/0x17b0 fs/ext4/file.c:-1 do_iter_readv_writev+0x497/0x600 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+0x204/0x340 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:0x7f7d31abbbe9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f7d2fd23038 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007f7d31ce2fa0 RCX: 00007f7d31abbbe9 RDX: 0000000000000001 RSI: 0000200000000100 RDI: 0000000000000005 RBP: 00007f7d31b3ee19 R08: 0000000000000010 R09: 0000000000000000 R10: 0000000000040e7b R11: 0000000000000246 R12: 0000000000000000 R13: 00007f7d31ce3038 R14: 00007f7d31ce2fa0 R15: 00007ffc45cb8078 The buggy address belongs to the page: page:ffffea0001deb980 refcount:3 mapcount:1 mapping:ffff8881408d7270 index:0x2 pfn:0x77ae6 memcg:ffff888029f10000 aops:def_blk_aops ino:700003 flags: 0xfff0000002203e(referenced|uptodate|dirty|lru|active|private|mappedtodisk|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff0000002203e ffffea00014da148 ffffea0001a22cc8 ffff8881408d7270 raw: 0000000000000002 ffff88805f89d000 0000000300000000 ffff888029f10000 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 10087, ts 592147145019, free_ts 592046548696 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x1b77/0x1c60 mm/page_alloc.c:4192 __alloc_pages+0x1e1/0x470 mm/page_alloc.c:5474 __page_cache_alloc+0xd2/0x3f0 mm/filemap.c:1022 pagecache_get_page+0x986/0xef0 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+0x249/0xb70 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+0x97b/0xcd0 fs/ext4/inode.c:4404 __ext4_get_inode_loc_noinmem fs/ext4/inode.c:4434 [inline] __ext4_iget+0x44a/0x3d90 fs/ext4/inode.c:4684 ext4_fill_super+0x77d5/0x9a00 fs/ext4/super.c:4839 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:3014 do_mount fs/namespace.c:3357 [inline] __do_sys_mount fs/namespace.c:3565 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3542 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+0x122/0x7e0 mm/page_alloc.c:3433 release_pages+0x184b/0x1bb0 mm/swap.c:963 __pagevec_release+0x6d/0xe0 mm/swap.c:983 pagevec_release include/linux/pagevec.h:81 [inline] __invalidate_mapping_pages+0x4e4/0x5e0 mm/truncate.c:509 btrfs_close_bdev fs/btrfs/volumes.c:1186 [inline] btrfs_close_one_device fs/btrfs/volumes.c:1210 [inline] close_fs_devices+0x443/0x930 fs/btrfs/volumes.c:1253 btrfs_close_devices+0xc2/0x500 fs/btrfs/volumes.c:1268 open_ctree+0x730/0x3250 fs/btrfs/disk-io.c:3702 btrfs_fill_super+0x1c2/0x2e0 fs/btrfs/super.c:1387 btrfs_mount_root+0x857/0x8c0 fs/btrfs/super.c:1751 legacy_get_tree+0xe6/0x180 fs/fs_context.c:611 vfs_get_tree+0x88/0x270 fs/super.c:1530 fc_mount fs/namespace.c:996 [inline] vfs_kern_mount+0xba/0x150 fs/namespace.c:1026 btrfs_mount+0x2d7/0xa50 fs/btrfs/super.c:1811 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: ffff888077ae6180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888077ae6200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888077ae6280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888077ae6300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888077ae6380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================