loop0: detected capacity change from 0 to 512 ================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x13c0/0x3ef0 fs/ext4/xattr.c:1732 Read of size 18446744073709551584 at addr ffff88811a0edfc8 by task syz-executor.0/1701 CPU: 1 PID: 1701 Comm: syz-executor.0 Not tainted 6.1.75-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:284 [inline] print_report+0x158/0x4e0 mm/kasan/report.c:395 kasan_report+0x13c/0x170 mm/kasan/report.c:495 kasan_check_range+0x294/0x2a0 mm/kasan/generic.c:189 memmove+0x2d/0x70 mm/kasan/shadow.c:54 ext4_xattr_set_entry+0x13c0/0x3ef0 fs/ext4/xattr.c:1732 ext4_xattr_ibody_set+0x124/0x390 fs/ext4/xattr.c:2237 ext4_xattr_move_to_block fs/ext4/xattr.c:2624 [inline] ext4_xattr_make_inode_space fs/ext4/xattr.c:2692 [inline] ext4_expand_extra_isize_ea+0x1147/0x1c40 fs/ext4/xattr.c:2784 __ext4_expand_extra_isize+0x31a/0x420 fs/ext4/inode.c:5919 ext4_try_to_expand_extra_isize fs/ext4/inode.c:5962 [inline] __ext4_mark_inode_dirty+0x4bb/0x7d0 fs/ext4/inode.c:6040 ext4_inline_data_truncate+0x552/0xd60 fs/ext4/inline.c:2031 ext4_truncate+0x337/0xfb0 fs/ext4/inode.c:4233 ext4_process_orphan+0x1d3/0x2f0 fs/ext4/orphan.c:339 ext4_orphan_cleanup+0xa50/0x11b0 fs/ext4/orphan.c:474 __ext4_fill_super fs/ext4/super.c:5533 [inline] ext4_fill_super+0x7e6f/0x8590 fs/ext4/super.c:5664 get_tree_bdev+0x43d/0x670 fs/super.c:1355 ext4_get_tree+0x1c/0x20 fs/ext4/super.c:5694 vfs_get_tree+0x88/0x290 fs/super.c:1562 do_new_mount+0x2ba/0xb30 fs/namespace.c:3051 path_mount+0x671/0x1070 fs/namespace.c:3381 do_mount fs/namespace.c:3394 [inline] __do_sys_mount fs/namespace.c:3602 [inline] __se_sys_mount+0x2c4/0x3b0 fs/namespace.c:3579 __x64_sys_mount+0xbf/0xd0 fs/namespace.c:3579 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f6a55c7f46a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 09 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f6a5691aef8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f6a5691af80 RCX: 00007f6a55c7f46a RDX: 0000000020000180 RSI: 00000000200000c0 RDI: 00007f6a5691af40 RBP: 0000000020000180 R08: 00007f6a5691af80 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000200000c0 R13: 00007f6a5691af40 R14: 000000000000046a R15: 0000000020000300 The buggy address belongs to the physical page: page:ffffea0004683b40 refcount:3 mapcount:1 mapping:ffff888100480510 index:0x1 pfn:0x11a0ed memcg:ffff888100262000 aops:def_blk_aops ino:700000 flags: 0x560000000002205e(referenced|uptodate|dirty|lru|workingset|private|mappedtodisk|zone=1) raw: 560000000002205e ffffea0004665ec8 ffff888100264190 ffff888100480510 raw: 0000000000000001 ffff88812299be70 0000000300000000 ffff888100262000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x152c40(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 441, tgid 441 (udevd), ts 50426140286, free_ts 50425856972 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1e2/0x1f0 mm/page_alloc.c:2513 prep_new_page mm/page_alloc.c:2520 [inline] get_page_from_freelist+0x2df3/0x2ed0 mm/page_alloc.c:4279 __alloc_pages+0x3c2/0x7d0 mm/page_alloc.c:5545 __folio_alloc+0x15/0x40 mm/page_alloc.c:5577 __folio_alloc_node include/linux/gfp.h:246 [inline] folio_alloc include/linux/gfp.h:275 [inline] filemap_alloc_folio include/linux/pagemap.h:507 [inline] page_cache_ra_unbounded+0x1ec/0x4e0 mm/readahead.c:248 do_page_cache_ra mm/readahead.c:300 [inline] force_page_cache_ra mm/readahead.c:331 [inline] page_cache_sync_ra+0x394/0x450 mm/readahead.c:705 page_cache_sync_readahead include/linux/pagemap.h:1248 [inline] filemap_get_pages mm/filemap.c:2636 [inline] filemap_read+0x7a9/0x24b0 mm/filemap.c:2730 blkdev_read_iter+0x3de/0x530 block/fops.c:613 call_read_iter include/linux/fs.h:2243 [inline] new_sync_read fs/read_write.c:389 [inline] vfs_read+0x771/0xad0 fs/read_write.c:470 ksys_read+0x199/0x2c0 fs/read_write.c:613 __do_sys_read fs/read_write.c:623 [inline] __se_sys_read fs/read_write.c:621 [inline] __x64_sys_read+0x7b/0x90 fs/read_write.c:621 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1440 [inline] free_pcp_prepare mm/page_alloc.c:1513 [inline] free_unref_page_prepare+0x83d/0x850 mm/page_alloc.c:3358 free_unref_page_list+0xf1/0x7b0 mm/page_alloc.c:3499 release_pages+0xf7f/0xfe0 mm/swap.c:1055 folios_put include/linux/mm.h:1206 [inline] folio_batch_move_lru+0x3cf/0x4a0 mm/swap.c:253 lru_add_drain_cpu+0xf4/0x4e0 mm/swap.c:669 lru_add_drain+0x3d/0xc0 mm/swap.c:773 unmap_region+0xa2/0x2f0 mm/mmap.c:2326 do_mas_align_munmap+0x947/0x11b0 mm/mmap.c:2582 do_mas_munmap+0x23e/0x2b0 mm/mmap.c:2640 mmap_region+0x915/0x1f90 mm/mmap.c:2688 do_mmap+0x853/0xe30 mm/mmap.c:1425 vm_mmap_pgoff+0x1c7/0x2d0 mm/util.c:520 ksys_mmap_pgoff+0x15d/0x1e0 mm/mmap.c:1471 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:93 [inline] __se_sys_mmap arch/x86/kernel/sys_x86_64.c:86 [inline] __x64_sys_mmap+0x103/0x120 arch/x86/kernel/sys_x86_64.c:86 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd Memory state around the buggy address: ffff88811a0ede80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88811a0edf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88811a0edf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88811a0ee000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88811a0ee080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== EXT4-fs error (device loop0): ext4_xattr_ibody_find:2213: inode #12: comm syz-executor.0: corrupted in-inode xattr EXT4-fs warning (device loop0): ext4_xattr_set_entry:1745: inode #12: comm syz-executor.0: unable to update i_inline_off EXT4-fs warning (device loop0): ext4_expand_extra_isize_ea:2810: Unable to expand inode 12. Delete some EAs or run e2fsck. EXT4-fs (loop0): 1 truncate cleaned up EXT4-fs (loop0): mounted filesystem without journal. Quota mode: writeback.