F2FS-fs (loop0): invalid crc value F2FS-fs (loop0): Found nat_bits in checkpoint F2FS-fs (loop0): 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+0xf5c/0x1064 fs/f2fs/xattr.c:533 Read of size 4 at addr ffff0000cc09b278 by task syz-executor773/6410 CPU: 0 UID: 0 PID: 6410 Comm: syz-executor773 Not tainted 6.13.0-rc3-syzkaller-g573067a5a685 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:466 (C) __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x198/0x538 mm/kasan/report.c:489 kasan_report+0xd8/0x138 mm/kasan/report.c:602 __asan_report_load4_noabort+0x20/0x2c mm/kasan/report_generic.c:380 __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+0xf5c/0x1064 fs/f2fs/xattr.c:533 f2fs_xattr_generic_get+0x130/0x174 fs/f2fs/xattr.c:63 __vfs_getxattr+0x394/0x3c0 fs/xattr.c:423 smk_fetch+0xc8/0x150 security/smack/smack_lsm.c:306 smack_d_instantiate+0x594/0x880 security/smack/smack_lsm.c:3615 security_d_instantiate+0x100/0x204 security/security.c:4070 d_splice_alias+0x70/0x310 fs/dcache.c:3001 f2fs_lookup+0x4c8/0x948 fs/f2fs/namei.c:523 lookup_open fs/namei.c:3627 [inline] open_last_lookups fs/namei.c:3748 [inline] path_openat+0xf7c/0x2b14 fs/namei.c:3984 do_filp_open+0x1e8/0x404 fs/namei.c:4014 do_sys_openat2+0x124/0x1b8 fs/open.c:1402 do_sys_open fs/open.c:1417 [inline] __do_sys_openat fs/open.c:1433 [inline] __se_sys_openat fs/open.c:1428 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1428 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 Allocated by task 6410: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:68 kasan_save_alloc_info+0x40/0x50 mm/kasan/generic.c:568 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0xac/0xc4 mm/kasan/common.c:394 kasan_kmalloc include/linux/kasan.h:260 [inline] __do_kmalloc_node mm/slub.c:4298 [inline] __kmalloc_noprof+0x32c/0x54c mm/slub.c:4310 kmalloc_noprof include/linux/slab.h:905 [inline] f2fs_kmalloc fs/f2fs/f2fs.h:3428 [inline] f2fs_kzalloc+0x124/0x254 fs/f2fs/f2fs.h:3447 xattr_alloc fs/f2fs/xattr.c:34 [inline] lookup_all_xattrs fs/f2fs/xattr.c:333 [inline] f2fs_getxattr+0xc60/0x1064 fs/f2fs/xattr.c:533 f2fs_xattr_generic_get+0x130/0x174 fs/f2fs/xattr.c:63 __vfs_getxattr+0x394/0x3c0 fs/xattr.c:423 smk_fetch+0xc8/0x150 security/smack/smack_lsm.c:306 smack_d_instantiate+0x594/0x880 security/smack/smack_lsm.c:3615 security_d_instantiate+0x100/0x204 security/security.c:4070 d_splice_alias+0x70/0x310 fs/dcache.c:3001 f2fs_lookup+0x4c8/0x948 fs/f2fs/namei.c:523 lookup_open fs/namei.c:3627 [inline] open_last_lookups fs/namei.c:3748 [inline] path_openat+0xf7c/0x2b14 fs/namei.c:3984 do_filp_open+0x1e8/0x404 fs/namei.c:4014 do_sys_openat2+0x124/0x1b8 fs/open.c:1402 do_sys_open fs/open.c:1417 [inline] __do_sys_openat fs/open.c:1433 [inline] __se_sys_openat fs/open.c:1428 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1428 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 The buggy address belongs to the object at ffff0000cc09b260 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 [ffff0000cc09b260, ffff0000cc09b26c) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10c09b flags: 0x5ffc00000000000(node=0|zone=2|lastcpupid=0x7ff) page_type: f5(slab) raw: 05ffc00000000000 ffff0000c0001640 dead000000000100 dead000000000122 raw: 0000000000000000 0000000080800080 00000001f5000000 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000cc09b100: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc ffff0000cc09b180: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc >ffff0000cc09b200: fa fb fc fc fa fb fc fc fa fb fc fc 00 04 fc fc ^ ffff0000cc09b280: 00 06 fc fc fa fb fc fc fa fb fc fc fa fb fc fc ffff0000cc09b300: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc ==================================================================