Grab the KERNEL_LOCK() around rtm*() functions. Routing sockets globals
authormpi <mpi@openbsd.org>
Wed, 7 Jun 2017 13:28:02 +0000 (13:28 +0000)
committermpi <mpi@openbsd.org>
Wed, 7 Jun 2017 13:28:02 +0000 (13:28 +0000)
commit3431983c017a4bc56451d3de848a13601e5d75a1
treedcb0cb39bc604728bd0d75cc1bf8d4a3c81eaa61
parent6094fb6b83e86efcde69bd2c91bed6009e07a256
Grab the KERNEL_LOCK() around rtm*() functions.  Routing sockets globals
aren't protected by the NET_LOCK().

While here change lock assertions in rt_{set,put}gwroute(), the NET_LOCK()
is enough.

Tested by Hrvoje Popovski.

ok jmatthew@, claudio@
sys/net/route.c
sys/netinet/in_pcb.c
sys/netinet6/nd6_rtr.c