From 9eb258b5cf99f9b4f29c1dd7b920449456ebaf81 Mon Sep 17 00:00:00 2001 From: hselasky Date: Tue, 15 Oct 2019 11:20:16 +0000 Subject: [PATCH] Exclude the network link eventhandler from epochification after r353292. This fixes the following assert when "options RATELIMIT" is used: panic() malloc() sysctl_add_oid() tcp_rl_ifnet_link() do_link_state_change() taskqueue_run_locked() Sponsored by: Mellanox Technologies --- sys/net/if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/if.c b/sys/net/if.c index 1d19b1cf9de..88c759fb464 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -2353,9 +2353,9 @@ do_link_state_change(void *arg, int pending) if (log_link_state_change) if_printf(ifp, "link state changed to %s\n", (link_state == LINK_STATE_UP) ? "UP" : "DOWN" ); + NET_EPOCH_EXIT(et); EVENTHANDLER_INVOKE(ifnet_link_event, ifp, link_state); CURVNET_RESTORE(); - NET_EPOCH_EXIT(et); } /* -- 2.45.0