Call rtm_send() with netlock held to protect dereference of sockaddr
authormvs <mvs@openbsd.org>
Fri, 1 Sep 2023 20:24:29 +0000 (20:24 +0000)
committermvs <mvs@openbsd.org>
Fri, 1 Sep 2023 20:24:29 +0000 (20:24 +0000)
commitaa68484aed5bb18a00db2285785d24f82e04c5b5
treead6afdd100c5bfdb0b3d893ba8e78ce9f39efd0d
parent8761e6b466749a81c2780e885eeadb88b4f41796
Call rtm_send() with netlock held to protect dereference of sockaddr
structure data returned by rtable_getsource(). Netlock can't be pushed
within rtm_send() because we have paths where caller already holds it.

tested by jca

ok bluhm jca
sys/dev/usb/if_umb.c