Add missing kernel lock around (*if_ioctl)() call within
authormvs <mvs@openbsd.org>
Tue, 6 Dec 2022 22:19:39 +0000 (22:19 +0000)
committermvs <mvs@openbsd.org>
Tue, 6 Dec 2022 22:19:39 +0000 (22:19 +0000)
commitbfb4dd3f2647ef021146a35f127d3469d9c9340b
tree21e044445acec8b822c87c7f096eac977b910c19
parentcb8c034d7b22ff9713f4c2e7468e8838a26797fc
Add missing kernel lock around (*if_ioctl)() call within
in{,6}_addmulti(). Since kernel lock is no more taken while following
setsockopt() path, it should be taken in this place. Corresponding
in{,6}_delmulti() already acquire kernel lock around (*if_ioctl)().

Problem reported and diff tested by weerd@

ok kn@ bluhm@
sys/netinet/in.c
sys/netinet6/in6.c