F2FS-fs (loop1): sanity_check_inode: inode (ino=8) has corrupted i_xattr_nid: 218103808, run fsck to fix. ================================================================== BUG: KASAN: use-after-free in instrument_atomic_read include/linux/instrumented.h:71 [inline] BUG: KASAN: use-after-free in atomic_read include/linux/atomic/atomic-instrumented.h:27 [inline] BUG: KASAN: use-after-free in f2fs_destroy_extent_node fs/f2fs/extent_cache.c:789 [inline] BUG: KASAN: use-after-free in f2fs_destroy_extent_tree+0x29d/0x670 fs/f2fs/extent_cache.c:839 Read of size 4 at addr ffff888072ef1210 by task syz.1.21/5201 CPU: 0 PID: 5201 Comm: syz.1.21 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/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 instrument_atomic_read include/linux/instrumented.h:71 [inline] atomic_read include/linux/atomic/atomic-instrumented.h:27 [inline] f2fs_destroy_extent_node fs/f2fs/extent_cache.c:789 [inline] f2fs_destroy_extent_tree+0x29d/0x670 fs/f2fs/extent_cache.c:839 f2fs_evict_inode+0x3c4/0x15b0 fs/f2fs/inode.c:776 evict+0x485/0x870 fs/inode.c:647 f2fs_iget+0x16ad/0x4a50 fs/f2fs/inode.c:573 f2fs_nfs_get_inode+0x72/0x100 fs/f2fs/super.c:3108 generic_fh_to_dentry+0x8f/0xe0 fs/libfs.c:1044 exportfs_decode_fh_raw+0x12a/0x5d0 fs/exportfs/expfs.c:436 exportfs_decode_fh+0x36/0x70 fs/exportfs/expfs.c:576 do_handle_to_path fs/fhandle.c:152 [inline] handle_to_path fs/fhandle.c:207 [inline] do_handle_open+0x3df/0x820 fs/fhandle.c:223 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:0x7f00b4d90ff9 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:00007f00b3ff0038 EFLAGS: 00000246 ORIG_RAX: 0000000000000130 RAX: ffffffffffffffda RBX: 00007f00b4f49058 RCX: 00007f00b4d90ff9 RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000004 RBP: 00007f00b4e03296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f00b4f49058 R15: 00007ffd074b44a8 Allocated by task 5175: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] __kasan_slab_alloc+0x9c/0xd0 mm/kasan/common.c:467 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] kmem_cache_alloc+0x100/0x290 mm/slub.c:3238 f2fs_kmem_cache_alloc_nofail fs/f2fs/f2fs.h:2631 [inline] f2fs_kmem_cache_alloc fs/f2fs/f2fs.h:2641 [inline] __grab_extent_tree fs/f2fs/extent_cache.c:295 [inline] __f2fs_init_extent_tree fs/f2fs/extent_cache.c:381 [inline] f2fs_init_extent_tree+0x518/0xae0 fs/f2fs/extent_cache.c:404 do_read_inode fs/f2fs/inode.c:399 [inline] f2fs_iget+0xfe4/0x4a50 fs/f2fs/inode.c:521 f2fs_nfs_get_inode+0x72/0x100 fs/f2fs/super.c:3108 generic_fh_to_dentry+0x8f/0xe0 fs/libfs.c:1044 exportfs_decode_fh_raw+0x12a/0x5d0 fs/exportfs/expfs.c:436 exportfs_decode_fh+0x36/0x70 fs/exportfs/expfs.c:576 do_handle_to_path fs/fhandle.c:152 [inline] handle_to_path fs/fhandle.c:207 [inline] do_handle_open+0x3df/0x820 fs/fhandle.c:223 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 Freed by task 5175: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:46 kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:360 ____kasan_slab_free+0xd5/0x110 mm/kasan/common.c:366 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:1710 [inline] slab_free_freelist_hook+0xea/0x170 mm/slub.c:1736 slab_free mm/slub.c:3504 [inline] kmem_cache_free+0x8f/0x210 mm/slub.c:3520 f2fs_destroy_extent_tree+0x3b3/0x670 fs/f2fs/extent_cache.c:845 f2fs_evict_inode+0x3c4/0x15b0 fs/f2fs/inode.c:776 evict+0x485/0x870 fs/inode.c:647 f2fs_iget+0x16ad/0x4a50 fs/f2fs/inode.c:573 f2fs_nfs_get_inode+0x72/0x100 fs/f2fs/super.c:3108 generic_fh_to_dentry+0x8f/0xe0 fs/libfs.c:1044 exportfs_decode_fh_raw+0x12a/0x5d0 fs/exportfs/expfs.c:436 exportfs_decode_fh+0x36/0x70 fs/exportfs/expfs.c:576 do_handle_to_path fs/fhandle.c:152 [inline] handle_to_path fs/fhandle.c:207 [inline] do_handle_open+0x3df/0x820 fs/fhandle.c:223 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 The buggy address belongs to the object at ffff888072ef1190 which belongs to the cache f2fs_extent_tree of size 136 The buggy address is located 128 bytes inside of 136-byte region [ffff888072ef1190, ffff888072ef1218) The buggy address belongs to the page: page:ffffea0001cbbc40 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x72ef1 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 0000000000000000 dead000000000122 ffff888146a08280 raw: 0000000000000000 0000000080140014 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Reclaimable, gfp_mask 0x112c50(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 5085, ts 91113158446, free_ts 61134301703 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:5487 alloc_slab_page mm/slub.c:1780 [inline] allocate_slab mm/slub.c:1917 [inline] new_slab+0xc0/0x4b0 mm/slub.c:1980 ___slab_alloc+0x81e/0xdf0 mm/slub.c:3013 __slab_alloc mm/slub.c:3100 [inline] slab_alloc_node mm/slub.c:3191 [inline] slab_alloc mm/slub.c:3233 [inline] kmem_cache_alloc+0x195/0x290 mm/slub.c:3238 f2fs_kmem_cache_alloc_nofail fs/f2fs/f2fs.h:2631 [inline] f2fs_kmem_cache_alloc fs/f2fs/f2fs.h:2641 [inline] __grab_extent_tree fs/f2fs/extent_cache.c:295 [inline] __f2fs_init_extent_tree fs/f2fs/extent_cache.c:381 [inline] f2fs_init_extent_tree+0x518/0xae0 fs/f2fs/extent_cache.c:404 do_read_inode fs/f2fs/inode.c:399 [inline] f2fs_iget+0xfe4/0x4a50 fs/f2fs/inode.c:521 f2fs_nfs_get_inode+0x72/0x100 fs/f2fs/super.c:3108 generic_fh_to_dentry+0x8f/0xe0 fs/libfs.c:1044 exportfs_decode_fh_raw+0x12a/0x5d0 fs/exportfs/expfs.c:436 exportfs_decode_fh+0x36/0x70 fs/exportfs/expfs.c:576 do_handle_to_path fs/fhandle.c:152 [inline] handle_to_path fs/fhandle.c:207 [inline] do_handle_open+0x3df/0x820 fs/fhandle.c:223 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+0x94/0x280 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+0x127/0x330 mm/slub.c:4408 kmalloc include/linux/slab.h:609 [inline] tomoyo_realpath_from_path+0x118/0x610 security/tomoyo/realpath.c:254 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0x1cd/0x510 security/tomoyo/file.c:822 security_inode_getattr+0xcf/0x120 security/security.c:1348 vfs_getattr+0x26/0x3a0 fs/stat.c:157 vfs_fstat fs/stat.c:182 [inline] __do_sys_newfstat fs/stat.c:421 [inline] __se_sys_newfstat fs/stat.c:418 [inline] __x64_sys_newfstat+0x104/0x1d0 fs/stat.c:418 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: ffff888072ef1100: fb fb fb fb fb fb fb fb fb fb fc fc fc fc fc fc ffff888072ef1180: fc fc fa fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888072ef1200: fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888072ef1280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888072ef1300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================