From 91e1324ac74746103896c4a557e62d3e40a708f4 Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Wed, 25 Mar 2020 11:39:59 +0000 Subject: Grab the NET_LOCK() before calling pipex_iface_stop(). This function calls pipex_destroy_session() which requires the lock and pipex_ioctl() already calls it with the NET_LOCK() held. From Vitaliy Makkoveev. --- sys/net/pipex.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/net/pipex.c b/sys/net/pipex.c index 44564d3281c..a1df79f6931 100644 --- a/sys/net/pipex.c +++ b/sys/net/pipex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pipex.c,v 1.107 2019/01/31 18:01:14 millert Exp $ */ +/* $OpenBSD: pipex.c,v 1.108 2020/03/25 11:39:58 mpi Exp $ */ /*- * Copyright (c) 2009 Internet Initiative Japan Inc. @@ -197,7 +197,9 @@ void pipex_iface_fini(struct pipex_iface_context *pipex_iface) { pool_put(&pipex_session_pool, pipex_iface->multicast_session); + NET_LOCK(); pipex_iface_stop(pipex_iface); + NET_UNLOCK(); } int -- cgit v1.2.3