EXT4-fs error (device loop0): ext4_lookup:1862: inode #12: comm syz.0.13: deleted inode referenced: 13 ================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x11f6/0x3f70 fs/ext4/xattr.c:1738 Read of size 18446744073709551600 at addr ffff888068ab02b8 by task syz.0.13/4336 CPU: 0 PID: 4336 Comm: syz.0.13 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+0x11f6/0x3f70 fs/ext4/xattr.c:1738 ext4_xattr_ibody_set+0x113/0x330 fs/ext4/xattr.c:2240 ext4_destroy_inline_data_nolock+0x237/0x5f0 fs/ext4/inline.c:467 ext4_convert_inline_data_to_extent fs/ext4/inline.c:619 [inline] ext4_try_to_write_inline_data+0x70f/0x1520 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+0x24e/0x3a0 fs/ext4/file.c:268 ext4_file_write_iter+0x73f/0x1720 fs/ext4/file.c:-1 do_iter_readv_writev+0x47d/0x5f0 fs/read_write.c:-1 do_iter_write+0x1f8/0x7a0 fs/read_write.c:855 iter_file_splice_write+0x6be/0xcf0 fs/splice.c:689 do_splice_from fs/splice.c:767 [inline] direct_splice_actor+0xe1/0x130 fs/splice.c:956 splice_direct_to_actor+0x4e8/0xc00 fs/splice.c:902 do_splice_direct+0x1d4/0x2f0 fs/splice.c:1008 do_sendfile+0x524/0xe30 fs/read_write.c:1249 __do_sys_sendfile64 fs/read_write.c:1317 [inline] __se_sys_sendfile64+0x141/0x1a0 fs/read_write.c:1303 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:0x7f8d9af09e59 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:00007f8d99163028 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f8d9b182fa0 RCX: 00007f8d9af09e59 RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000005 RBP: 00007f8d9af9fe6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000020fffe82 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f8d9b183038 R14: 00007f8d9b182fa0 R15: 00007ffe3c5c75e8 The buggy address belongs to the page: page:ffffea0001a2ac00 refcount:2 mapcount:0 mapping:ffff888145d4cf38 index:0x2 pfn:0x68ab0 memcg:ffff88802ba44000 aops:def_blk_aops ino:700000 flags: 0xfff0000000203a(referenced|dirty|lru|active|private|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff0000000203a ffffea0001cc2f08 ffff88802bbc1030 ffff888145d4cf38 raw: 0000000000000002 ffff88805e293e80 00000002ffffffff ffff88802ba44000 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 4336, ts 73048006396, free_ts 72924060242 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x24f6/0x2670 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+0x9b8/0xf20 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+0x240/0xb20 fs/buffer.c:1336 sb_getblk include/linux/buffer_head.h:361 [inline] __ext4_get_inode_loc+0x45b/0xcb0 fs/ext4/inode.c:4339 __ext4_get_inode_loc_noinmem fs/ext4/inode.c:4447 [inline] __ext4_iget+0x448/0x3e90 fs/ext4/inode.c:4702 ext4_lookup+0x4af/0x930 fs/ext4/namei.c:1858 lookup_open fs/namei.c:3448 [inline] open_last_lookups fs/namei.c:3540 [inline] path_openat+0x1046/0x2fb0 fs/namei.c:3747 do_filp_open+0x1df/0x400 fs/namei.c:3777 do_sys_openat2+0x14b/0x500 fs/open.c:1255 do_sys_open fs/open.c:1271 [inline] __do_sys_open fs/open.c:1279 [inline] __se_sys_open fs/open.c:1275 [inline] __x64_sys_open+0x11b/0x140 fs/open.c:1275 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/0x830 mm/page_alloc.c:3433 release_pages+0x185f/0x1bd0 mm/swap.c:963 __pagevec_release+0x6d/0xe0 mm/swap.c:983 pagevec_release include/linux/pagevec.h:81 [inline] shmem_undo_range+0x5cd/0x19a0 mm/shmem.c:964 shmem_truncate_range mm/shmem.c:1063 [inline] shmem_evict_inode+0x1e2/0x9a0 mm/shmem.c:1145 evict+0x4b6/0x8b0 fs/inode.c:647 __dentry_kill+0x412/0x630 fs/dcache.c:586 dentry_kill+0xb8/0x290 fs/dcache.c:-1 dput+0xd8/0x1a0 fs/dcache.c:893 __fput+0x5a5/0x8c0 fs/file_table.c:319 task_work_run+0x125/0x1a0 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0x10f/0x130 kernel/entry/common.c:181 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:307 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86 Memory state around the buggy address: ffff888068ab0180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888068ab0200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888068ab0280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888068ab0300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888068ab0380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================