summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2017-06-20 09:03:39 +0000
committermpi <mpi@openbsd.org>2017-06-20 09:03:39 +0000
commit89bcff6e8b8a8573e46ded647e1a150823060ebc (patch)
tree9125e88d43e314a4c9f16f2e3053f601ef3708ad /sys
parentBetter document the :s ex command and its variants. (diff)
downloadwireguard-openbsd-89bcff6e8b8a8573e46ded647e1a150823060ebc.tar.xz
wireguard-openbsd-89bcff6e8b8a8573e46ded647e1a150823060ebc.zip
Remove KERNEL_LOCK() asserts.
pf table code iterates on a radix tree and currently relies on the NET_LOCK() to do the serialization. Found the hardway by jasper@
Diffstat (limited to 'sys')
-rw-r--r--sys/net/radix.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/net/radix.c b/sys/net/radix.c
index 083f68d9905..e7303fbcc9c 100644
--- a/sys/net/radix.c
+++ b/sys/net/radix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: radix.c,v 1.57 2017/06/19 09:42:45 mpi Exp $ */
+/* $OpenBSD: radix.c,v 1.58 2017/06/20 09:03:39 mpi Exp $ */
/* $NetBSD: radix.c,v 1.20 2003/08/07 16:32:56 agc Exp $ */
/*
@@ -763,8 +763,6 @@ rn_addroute(void *v_arg, void *n_arg, struct radix_node_head *head,
struct radix_node *tt, *saved_tt, *tm = NULL;
int keyduplicated;
- KERNEL_ASSERT_LOCKED();
-
/*
* In dealing with non-contiguous masks, there may be
* many different routes which have the same mask.
@@ -914,8 +912,6 @@ rn_delete(void *v_arg, void *n_arg, struct radix_node_head *head,
int off = top->rn_off;
int vlen;
- KERNEL_ASSERT_LOCKED();
-
vlen = SALEN(v);
/*
@@ -1062,7 +1058,6 @@ rn_walktree(struct radix_node_head *h, int (*f)(struct radix_node *, void *,
struct radix_node *base, *next;
struct radix_node *rn = h->rnh_treetop;
- KERNEL_ASSERT_LOCKED();
/*
* This gets complicated because we may delete the node
* while applying the function f to it, so we need to calculate