move allocations in DIOCSADDRULE and DIOCHANGERULE outside of locks.
authorsashan <sashan@openbsd.org>
Tue, 11 Jan 2022 09:00:17 +0000 (09:00 +0000)
committersashan <sashan@openbsd.org>
Tue, 11 Jan 2022 09:00:17 +0000 (09:00 +0000)
commit6c51f7d89f3d76b4f8d49e9640ce1287fd1f6ce0
tree64c3cf1904465c179e0331665ed4c12db1b0bd8c
parent6e6e940fa449da785b766b539f9d1ae8201e9ec7
move allocations in DIOCSADDRULE and DIOCHANGERULE outside of locks.
this diff lets pf_rule_copyin() to be called outside of PF_LOCK()/NET_LOCK().

OK bluhm@
sys/net/pf_ioctl.c