F2FS-fs (loop3): heap/no_heap options were deprecated F2FS-fs (loop3): QUOTA feature is enabled, so ignore jquota_fmt F2FS-fs (loop3): invalid crc value F2FS-fs (loop3): Found nat_bits in checkpoint F2FS-fs (loop3): Mounted with checkpoint version = 1b41e954 ================================================================== BUG: KASAN: slab-out-of-bounds in __find_xattr fs/f2fs/xattr.c:235 [inline] BUG: KASAN: slab-out-of-bounds in __find_inline_xattr fs/f2fs/xattr.c:261 [inline] BUG: KASAN: slab-out-of-bounds in lookup_all_xattrs fs/f2fs/xattr.c:345 [inline] BUG: KASAN: slab-out-of-bounds in f2fs_getxattr+0x11e5/0x1350 fs/f2fs/xattr.c:533 Read of size 4 at addr ffff88810c7c5fd8 by task syz.3.16/3519 CPU: 1 PID: 3519 Comm: syz.3.16 Not tainted 6.10.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x280 lib/dump_stack.c:114 print_address_description mm/kasan/report.c:377 [inline] print_report+0x169/0x550 mm/kasan/report.c:488 kasan_report+0x143/0x180 mm/kasan/report.c:601 __find_xattr fs/f2fs/xattr.c:235 [inline] __find_inline_xattr fs/f2fs/xattr.c:261 [inline] lookup_all_xattrs fs/f2fs/xattr.c:345 [inline] f2fs_getxattr+0x11e5/0x1350 fs/f2fs/xattr.c:533 __vfs_getxattr+0x300/0x350 fs/xattr.c:423 smk_fetch+0x98/0x100 security/smack/smack_lsm.c:306 smack_d_instantiate+0x4f0/0x780 security/smack/smack_lsm.c:3588 security_d_instantiate+0x6f/0xb0 security/security.c:3916 d_splice_alias+0x5f/0x2a0 fs/dcache.c:2973 f2fs_lookup+0x2f5/0x940 fs/f2fs/namei.c:590 lookup_open fs/namei.c:3483 [inline] open_last_lookups fs/namei.c:3574 [inline] path_openat+0xd15/0x2810 fs/namei.c:3804 do_filp_open+0x22b/0x440 fs/namei.c:3834 do_sys_openat2+0xf6/0x180 fs/open.c:1405 do_sys_open fs/open.c:1420 [inline] __do_sys_openat fs/open.c:1436 [inline] __se_sys_openat fs/open.c:1431 [inline] __x64_sys_openat+0x20d/0x260 fs/open.c:1431 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x8d/0x170 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f79e1585d29 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:00007f79e2447038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f79e1775fa0 RCX: 00007f79e1585d29 RDX: 0000000000101042 RSI: 0000000020000040 RDI: ffffffffffffff9c RBP: 00007f79e1601b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f79e1775fa0 R15: 00007ffe7513fa68 Allocated by task 3519: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:370 [inline] __kasan_kmalloc+0x98/0xb0 mm/kasan/common.c:387 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slub.c:4122 [inline] __kmalloc_noprof+0x1d5/0x440 mm/slub.c:4135 xattr_alloc fs/f2fs/xattr.c:34 [inline] lookup_all_xattrs fs/f2fs/xattr.c:333 [inline] f2fs_getxattr+0xfd6/0x1350 fs/f2fs/xattr.c:533 __vfs_getxattr+0x300/0x350 fs/xattr.c:423 smk_fetch+0x98/0x100 security/smack/smack_lsm.c:306 smack_d_instantiate+0x4f0/0x780 security/smack/smack_lsm.c:3588 security_d_instantiate+0x6f/0xb0 security/security.c:3916 d_splice_alias+0x5f/0x2a0 fs/dcache.c:2973 f2fs_lookup+0x2f5/0x940 fs/f2fs/namei.c:590 lookup_open fs/namei.c:3483 [inline] open_last_lookups fs/namei.c:3574 [inline] path_openat+0xd15/0x2810 fs/namei.c:3804 do_filp_open+0x22b/0x440 fs/namei.c:3834 do_sys_openat2+0xf6/0x180 fs/open.c:1405 do_sys_open fs/open.c:1420 [inline] __do_sys_openat fs/open.c:1436 [inline] __se_sys_openat fs/open.c:1431 [inline] __x64_sys_openat+0x20d/0x260 fs/open.c:1431 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x8d/0x170 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88810c7c5fc0 which belongs to the cache kmalloc-16 of size 16 The buggy address is located 12 bytes to the right of allocated 12-byte region [ffff88810c7c5fc0, ffff88810c7c5fcc) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10c7c5 flags: 0x100000000000000(node=0|zone=2) page_type: 0xffffefff(slab) raw: 0100000000000000 ffff888100041640 dead000000000100 dead000000000122 raw: 0000000000000000 0000000080800080 00000001ffffefff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 3814652191, free_ts 3712240958 create_dummy_stack mm/page_owner.c:94 [inline] register_dummy_stack+0x85/0xe0 mm/page_owner.c:100 init_page_owner+0x24/0x860 mm/page_owner.c:118 invoke_init_callbacks mm/page_ext.c:148 [inline] page_ext_init+0x3cd/0x410 mm/page_ext.c:493 mm_core_init+0x4c/0x60 mm/mm_init.c:2754 page last free pid 206 tgid 206 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1088 [inline] free_unref_page+0xb58/0xc90 mm/page_alloc.c:2583 vfree+0x10e/0x210 mm/vmalloc.c:3346 delayed_vfree_work+0x3c/0x70 mm/vmalloc.c:3267 process_one_work kernel/workqueue.c:3231 [inline] process_scheduled_works+0x8cf/0x1320 kernel/workqueue.c:3312 worker_thread+0x869/0xca0 kernel/workqueue.c:3393 kthread+0x268/0x2c0 kernel/kthread.c:389 ret_from_fork+0x32/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Memory state around the buggy address: ffff88810c7c5e80: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc ffff88810c7c5f00: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc >ffff88810c7c5f80: fa fb fc fc fa fb fc fc 00 04 fc fc 00 00 fc fc ^ ffff88810c7c6000: 00 01 fc fc 00 01 fc fc 00 02 fc fc 00 02 fc fc ffff88810c7c6080: 00 02 fc fc 00 02 fc fc 00 00 fc fc 00 00 fc fc ==================================================================