F2FS-fs (loop0): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop0): Can't find valid F2FS filesystem in 1th superblock F2FS-fs (loop0): invalid crc value ================================================================== BUG: KASAN: use-after-free in build_sit_entries fs/f2fs/segment.c:3654 [inline] BUG: KASAN: use-after-free in build_segment_manager+0x962a/0x9d30 fs/f2fs/segment.c:3853 Read of size 4 at addr ffff8801c10c95d0 by task syzkaller253852/3788 CPU: 0 PID: 3788 Comm: syzkaller253852 Not tainted 4.9.94-g8683408 #1 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801b5d2f870 ffffffff81eb0aa9 ffffea0007043240 ffff8801c10c95d0 0000000000000000 ffff8801c10c95d0 ffff8801d957b300 ffff8801b5d2f8a8 ffffffff815652cb ffff8801c10c95d0 0000000000000004 0000000000000000 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] print_address_description+0x6c/0x234 mm/kasan/report.c:256 [] kasan_report_error mm/kasan/report.c:355 [inline] [] kasan_report.cold.6+0x242/0x2fe mm/kasan/report.c:412 [] __asan_report_load4_noabort+0x14/0x20 mm/kasan/report.c:432 [] build_sit_entries fs/f2fs/segment.c:3654 [inline] [] build_segment_manager+0x962a/0x9d30 fs/f2fs/segment.c:3853 [] f2fs_fill_super+0x1d10/0x5d00 fs/f2fs/super.c:2807 [] mount_bdev+0x2c7/0x390 fs/super.c:1100 [] f2fs_mount+0x34/0x40 fs/f2fs/super.c:3024 [] mount_fs+0x28c/0x370 fs/super.c:1206 [] vfs_kern_mount.part.29+0xd1/0x3d0 fs/namespace.c:991 [] vfs_kern_mount fs/namespace.c:973 [inline] [] do_new_mount fs/namespace.c:2512 [inline] [] do_mount+0x3c9/0x2740 fs/namespace.c:2834 [] SYSC_mount fs/namespace.c:3050 [inline] [] SyS_mount+0xfe/0x110 fs/namespace.c:3027 [] do_syscall_64+0x1a6/0x490 arch/x86/entry/common.c:282 [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb The buggy address belongs to the page: page:ffffea0007043240 count:0 mapcount:0 mapping: (null) index:0x1 flags: 0x8000000000000000() page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801c10c9480: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8801c10c9500: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff8801c10c9580: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8801c10c9600: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8801c10c9680: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================