F2FS-fs (loop0): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop0): Can't find valid F2FS filesystem in 2th superblock F2FS-fs (loop0): invalid crc value ================================================================== BUG: KASAN: slab-out-of-bounds in build_sit_entries fs/f2fs/segment.c:3299 [inline] BUG: KASAN: slab-out-of-bounds in build_segment_manager+0x7ca3/0x80e0 fs/f2fs/segment.c:3567 Read of size 4 at addr ffff8880a925b5a4 by task syz-executor283/7974 CPU: 0 PID: 7974 Comm: syz-executor283 Not tainted 4.14.289-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 print_address_description.cold+0x54/0x1d3 mm/kasan/report.c:252 kasan_report_error.cold+0x8a/0x191 mm/kasan/report.c:351 kasan_report mm/kasan/report.c:409 [inline] __asan_report_load4_noabort+0x68/0x70 mm/kasan/report.c:429 build_sit_entries fs/f2fs/segment.c:3299 [inline] build_segment_manager+0x7ca3/0x80e0 fs/f2fs/segment.c:3567 f2fs_fill_super+0x2e21/0x56a0 fs/f2fs/super.c:2581 mount_bdev+0x2b3/0x360 fs/super.c:1134 mount_fs+0x92/0x2a0 fs/super.c:1237 vfs_kern_mount.part.0+0x5b/0x470 fs/namespace.c:1046 vfs_kern_mount fs/namespace.c:1036 [inline] do_new_mount fs/namespace.c:2572 [inline] do_mount+0xe65/0x2a30 fs/namespace.c:2905 SYSC_mount fs/namespace.c:3121 [inline] SyS_mount+0xa8/0x120 fs/namespace.c:3098 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x7f78529d43aa RSP: 002b:00007ffff50e23e8 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007ffff50e2440 RCX: 00007f78529d43aa RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffff50e2400 RBP: 00007ffff50e2400 R08: 00007ffff50e2440 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000286 R12: 00000000200002a8 R13: 0000000000000003 R14: 0000000000000004 R15: 0000000000000007 Allocated by task 7974: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:551 __do_kmalloc_node mm/slab.c:3682 [inline] __kmalloc_node+0x4c/0x70 mm/slab.c:3689 kmalloc_node include/linux/slab.h:530 [inline] kvmalloc_node+0x46/0xd0 mm/util.c:430 kvmalloc include/linux/mm.h:531 [inline] kvzalloc include/linux/mm.h:539 [inline] build_sit_info fs/f2fs/segment.c:3147 [inline] build_segment_manager+0xeb9/0x80e0 fs/f2fs/segment.c:3556 f2fs_fill_super+0x2e21/0x56a0 fs/f2fs/super.c:2581 mount_bdev+0x2b3/0x360 fs/super.c:1134 mount_fs+0x92/0x2a0 fs/super.c:1237 vfs_kern_mount.part.0+0x5b/0x470 fs/namespace.c:1046 vfs_kern_mount fs/namespace.c:1036 [inline] do_new_mount fs/namespace.c:2572 [inline] do_mount+0xe65/0x2a30 fs/namespace.c:2905 SYSC_mount fs/namespace.c:3121 [inline] SyS_mount+0xa8/0x120 fs/namespace.c:3098 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff8880a925b580 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 36 bytes inside of 64-byte region [ffff8880a925b580, ffff8880a925b5c0) The buggy address belongs to the page: page:ffffea0002a496c0 count:1 mapcount:0 mapping:ffff8880a925b000 index:0x0 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffff8880a925b000 0000000000000000 0000000100000020 raw: ffffea0002651920 ffffea0002acc060 ffff88813fe74340 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a925b480: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ffff8880a925b500: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc >ffff8880a925b580: 00 00 00 00 04 fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880a925b600: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ffff8880a925b680: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ==================================================================