Push kernel lock into pru_control() aka. in6_control() / in_control()
authorkn <kn@openbsd.org>
Sat, 19 Nov 2022 14:26:39 +0000 (14:26 +0000)
committerkn <kn@openbsd.org>
Sat, 19 Nov 2022 14:26:39 +0000 (14:26 +0000)
commitceecbd6ed952aba0f487b32c05dbfbeb763ce812
tree4c007f53446677ed59fe8e2b092791db7de549e6
parent115753a87ce31c2e7158aa5613a6b102044d494b
Push kernel lock into pru_control() aka. in6_control() / in_control()

so->so_state is already read without kernel lock inside soo_ioctl()
which calls pru_control() aka in6_control() and in_control().

OK mvs
sys/kern/sys_socket.c
sys/netinet/in.c
sys/netinet6/in6.c