F2FS-fs (loop4): Can't find valid F2FS filesystem in 1th superblock F2FS-fs (loop4): Fix alignment : done, start(4096) end(147456) block(12288) F2FS-fs (loop4): invalid crc value ================================================================== BUG: KASAN: slab-out-of-bounds in init_min_max_mtime fs/f2fs/segment.c:4161 [inline] BUG: KASAN: slab-out-of-bounds in f2fs_build_segment_manager+0xa24b/0xac60 fs/f2fs/segment.c:4243 Read of size 8 at addr ffff8880585b46e8 by task syz-executor.4/5327 CPU: 1 PID: 5327 Comm: syz-executor.4 Not tainted 4.19.157-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2fe lib/dump_stack.c:118 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1c7 mm/kasan/report.c:354 kasan_report mm/kasan/report.c:412 [inline] __asan_report_load8_noabort+0x88/0x90 mm/kasan/report.c:433 init_min_max_mtime fs/f2fs/segment.c:4161 [inline] f2fs_build_segment_manager+0xa24b/0xac60 fs/f2fs/segment.c:4243 f2fs_fill_super+0x31d9/0x7050 fs/f2fs/super.c:3016 mount_bdev+0x2fc/0x3b0 fs/super.c:1158 mount_fs+0xa3/0x30c fs/super.c:1261 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961 vfs_kern_mount fs/namespace.c:951 [inline] do_new_mount fs/namespace.c:2469 [inline] do_mount+0x113c/0x2f10 fs/namespace.c:2799 ksys_mount+0xcf/0x130 fs/namespace.c:3015 __do_sys_mount fs/namespace.c:3029 [inline] __se_sys_mount fs/namespace.c:3026 [inline] __x64_sys_mount+0xba/0x150 fs/namespace.c:3026 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x46090a Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 ad 89 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 8a 89 fb ff c3 66 0f 1f 84 00 00 00 00 00 RSP: 002b:00007f3af24a0a88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f3af24a0b20 RCX: 000000000046090a RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f3af24a0ae0 RBP: 00007f3af24a0ae0 R08: 00007f3af24a0b20 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000 R13: 0000000020000100 R14: 0000000020000200 R15: 0000000020012400 Allocated by task 5327: __do_kmalloc_node mm/slab.c:3689 [inline] __kmalloc_node+0x4c/0x70 mm/slab.c:3696 kmalloc_node include/linux/slab.h:557 [inline] kvmalloc_node+0x61/0xf0 mm/util.c:423 kvmalloc include/linux/mm.h:577 [inline] f2fs_kvmalloc fs/f2fs/f2fs.h:2687 [inline] f2fs_kvzalloc fs/f2fs/f2fs.h:2693 [inline] build_sit_info fs/f2fs/segment.c:3768 [inline] f2fs_build_segment_manager+0xb9f/0xac60 fs/f2fs/segment.c:4219 f2fs_fill_super+0x31d9/0x7050 fs/f2fs/super.c:3016 mount_bdev+0x2fc/0x3b0 fs/super.c:1158 mount_fs+0xa3/0x30c fs/super.c:1261 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961 vfs_kern_mount fs/namespace.c:951 [inline] do_new_mount fs/namespace.c:2469 [inline] do_mount+0x113c/0x2f10 fs/namespace.c:2799 ksys_mount+0xcf/0x130 fs/namespace.c:3015 __do_sys_mount fs/namespace.c:3029 [inline] __se_sys_mount fs/namespace.c:3026 [inline] __x64_sys_mount+0xba/0x150 fs/namespace.c:3026 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 8082: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x210 mm/slab.c:3822 skb_free_head net/core/skbuff.c:554 [inline] skb_release_data+0x6de/0x920 net/core/skbuff.c:574 skb_release_all net/core/skbuff.c:631 [inline] __kfree_skb net/core/skbuff.c:645 [inline] consume_skb+0x113/0x3d0 net/core/skbuff.c:705 __dev_kfree_skb_any+0x9c/0xc0 net/core/dev.c:2796 dev_consume_skb_any include/linux/netdevice.h:3557 [inline] napi_consume_skb+0x45d/0x5e0 net/core/skbuff.c:769 free_old_xmit_skbs+0xea/0x270 drivers/net/virtio_net.c:1379 start_xmit+0x156/0x17a0 drivers/net/virtio_net.c:1575 __netdev_start_xmit include/linux/netdevice.h:4333 [inline] netdev_start_xmit include/linux/netdevice.h:4347 [inline] xmit_one net/core/dev.c:3256 [inline] dev_hard_start_xmit+0x1a8/0x920 net/core/dev.c:3272 sch_direct_xmit+0x2d6/0xf50 net/sched/sch_generic.c:332 qdisc_restart net/sched/sch_generic.c:395 [inline] __qdisc_run+0x4d0/0x1640 net/sched/sch_generic.c:403 qdisc_run include/net/pkt_sched.h:120 [inline] __dev_xmit_skb net/core/dev.c:3451 [inline] __dev_queue_xmit+0x2102/0x2e00 net/core/dev.c:3807 neigh_hh_output include/net/neighbour.h:491 [inline] neigh_output include/net/neighbour.h:499 [inline] ip_finish_output2+0xb6d/0x15a0 net/ipv4/ip_output.c:230 ip_finish_output+0x85b/0xd20 net/ipv4/ip_output.c:318 NF_HOOK_COND include/linux/netfilter.h:278 [inline] ip_output+0x203/0x5f0 net/ipv4/ip_output.c:406 dst_output include/net/dst.h:455 [inline] ip_local_out+0xaf/0x170 net/ipv4/ip_output.c:125 __ip_queue_xmit+0x866/0x1b50 net/ipv4/ip_output.c:506 __tcp_transmit_skb+0x1bb2/0x33f0 net/ipv4/tcp_output.c:1148 tcp_transmit_skb net/ipv4/tcp_output.c:1164 [inline] tcp_write_xmit+0x968/0x4fb0 net/ipv4/tcp_output.c:2389 __tcp_push_pending_frames+0xae/0x310 net/ipv4/tcp_output.c:2568 tcp_push+0x4b7/0x6b0 net/ipv4/tcp.c:745 tcp_sendmsg_locked+0x26a9/0x2f60 net/ipv4/tcp.c:1432 tcp_sendmsg+0x2b/0x40 net/ipv4/tcp.c:1462 inet_sendmsg+0x132/0x5a0 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xc3/0x120 net/socket.c:632 sock_write_iter+0x287/0x3c0 net/socket.c:901 call_write_iter include/linux/fs.h:1821 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x51b/0x770 fs/read_write.c:487 vfs_write+0x1f3/0x540 fs/read_write.c:549 ksys_write+0x12b/0x2a0 fs/read_write.c:599 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8880585b4240 which belongs to the cache kmalloc-2048 of size 2048 The buggy address is located 1192 bytes inside of 2048-byte region [ffff8880585b4240, ffff8880585b4a40) The buggy address belongs to the page: page:ffffea0001616d00 count:1 mapcount:0 mapping:ffff88813bff0c40 index:0x0 compound_mapcount: 0 flags: 0xfff00000008100(slab|head) raw: 00fff00000008100 ffffea000156f708 ffffea0002ad7988 ffff88813bff0c40 raw: 0000000000000000 ffff8880585b4240 0000000100000003 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880585b4580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880585b4600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880585b4680: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff8880585b4700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880585b4780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================