MINIX-fs: mounting unchecked file system, running fsck is recommended ================================================================== BUG: KASAN: use-after-free in hlist_del_rcu include/linux/rculist.h:427 [inline] BUG: KASAN: use-after-free in vxlan_fdb_destroy+0x16d/0x1b0 drivers/net/vxlan.c:787 Read of size 8 at addr ffff88808896b680 by task syz-executor.2/26588 CPU: 1 PID: 26588 Comm: syz-executor.2 Not tainted 4.14.175-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x13e/0x194 lib/dump_stack.c:58 print_address_description.cold+0x7c/0x1e2 mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report mm/kasan/report.c:409 [inline] kasan_report.cold+0xa9/0x2ae mm/kasan/report.c:393 hlist_del_rcu include/linux/rculist.h:427 [inline] vxlan_fdb_destroy+0x16d/0x1b0 drivers/net/vxlan.c:787 __vxlan_dev_create+0x3bc/0x710 drivers/net/vxlan.c:3272 vxlan_newlink+0xa3/0xe0 drivers/net/vxlan.c:3493 rtnl_newlink+0xecb/0x1720 net/core/rtnetlink.c:2728 rtnetlink_rcv_msg+0x3be/0xb10 net/core/rtnetlink.c:4315 netlink_rcv_skb+0x127/0x370 net/netlink/af_netlink.c:2433 netlink_unicast_kernel net/netlink/af_netlink.c:1287 [inline] netlink_unicast+0x437/0x620 net/netlink/af_netlink.c:1313 netlink_sendmsg+0x733/0xbe0 net/netlink/af_netlink.c:1878 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xc5/0x100 net/socket.c:656 sock_no_sendpage+0xe5/0x110 net/core/sock.c:2572 kernel_sendpage+0x82/0xd0 net/socket.c:3407 sock_sendpage+0x84/0xa0 net/socket.c:871 pipe_to_sendpage+0x226/0x2d0 fs/splice.c:451 splice_from_pipe_feed fs/splice.c:502 [inline] __splice_from_pipe+0x332/0x740 fs/splice.c:626 splice_from_pipe+0xc6/0x120 fs/splice.c:661 do_splice_from fs/splice.c:851 [inline] do_splice fs/splice.c:1147 [inline] SYSC_splice fs/splice.c:1402 [inline] SyS_splice+0xca0/0x1230 fs/splice.c:1382 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45c889 RSP: 002b:00007f9d8f9fcc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000113 RAX: ffffffffffffffda RBX: 00007f9d8f9fd6d4 RCX: 000000000045c889 RDX: 0000000000000005 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 000000000076bfa0 R08: 000000000004ffe2 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000ba2 R14: 00000000004ce6ca R15: 000000000076bfac Allocated by task 26588: save_stack+0x32/0xa0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc mm/kasan/kasan.c:551 [inline] kasan_kmalloc+0xbf/0xe0 mm/kasan/kasan.c:529 kmem_cache_alloc_trace+0x14d/0x7b0 mm/slab.c:3618 kmalloc include/linux/slab.h:488 [inline] vxlan_fdb_alloc drivers/net/vxlan.c:645 [inline] vxlan_fdb_create+0x11f/0x650 drivers/net/vxlan.c:673 __vxlan_dev_create+0x370/0x710 drivers/net/vxlan.c:3238 vxlan_newlink+0xa3/0xe0 drivers/net/vxlan.c:3493 rtnl_newlink+0xecb/0x1720 net/core/rtnetlink.c:2728 rtnetlink_rcv_msg+0x3be/0xb10 net/core/rtnetlink.c:4315 netlink_rcv_skb+0x127/0x370 net/netlink/af_netlink.c:2433 netlink_unicast_kernel net/netlink/af_netlink.c:1287 [inline] netlink_unicast+0x437/0x620 net/netlink/af_netlink.c:1313 netlink_sendmsg+0x733/0xbe0 net/netlink/af_netlink.c:1878 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xc5/0x100 net/socket.c:656 sock_no_sendpage+0xe5/0x110 net/core/sock.c:2572 kernel_sendpage+0x82/0xd0 net/socket.c:3407 sock_sendpage+0x84/0xa0 net/socket.c:871 pipe_to_sendpage+0x226/0x2d0 fs/splice.c:451 splice_from_pipe_feed fs/splice.c:502 [inline] __splice_from_pipe+0x332/0x740 fs/splice.c:626 splice_from_pipe+0xc6/0x120 fs/splice.c:661 do_splice_from fs/splice.c:851 [inline] do_splice fs/splice.c:1147 [inline] SYSC_splice fs/splice.c:1402 [inline] SyS_splice+0xca0/0x1230 fs/splice.c:1382 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 Freed by task 17: save_stack+0x32/0xa0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0x75/0xc0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xcb/0x260 mm/slab.c:3815 __rcu_reclaim kernel/rcu/rcu.h:195 [inline] rcu_do_batch kernel/rcu/tree.c:2699 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2962 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2929 [inline] rcu_process_callbacks+0x792/0x1190 kernel/rcu/tree.c:2946 __do_softirq+0x254/0x9bf kernel/softirq.c:288 The buggy address belongs to the object at ffff88808896b680 which belongs to the cache kmalloc-96 of size 96 The buggy address is located 0 bytes inside of 96-byte region [ffff88808896b680, ffff88808896b6e0) The buggy address belongs to the page: page:ffffea0002225ac0 count:1 mapcount:0 mapping:ffff88808896b000 index:0xffff88808896b500 flags: 0xfffe0000000100(slab) raw: 00fffe0000000100 ffff88808896b000 ffff88808896b500 000000010000001f raw: ffffea000237e420 ffffea00024278e0 ffff88812fe564c0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88808896b580: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc ffff88808896b600: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc >ffff88808896b680: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ^ ffff88808896b700: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc ffff88808896b780: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ================================================================== minix_free_inode: bit 1 already cleared audit: type=1800 audit(1586589094.360:50): pid=26608 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op="collect_data" cause="failed(directio)" comm="syz-executor.1" name="bus" dev="sda1" ino=16244 res=0