]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fix locking within tcp_ipsec_pcbctl() to match ipsec4_pcbctl(), ipsec4_pcbctl()
authorsbruno <sbruno@FreeBSD.org>
Wed, 4 Jul 2018 17:10:07 +0000 (17:10 +0000)
committersbruno <sbruno@FreeBSD.org>
Wed, 4 Jul 2018 17:10:07 +0000 (17:10 +0000)
commit19380865a304150c4060bd508fce9367ef950be2
treec423e1920f7b5c892131742aae57bc24f8668bfc
parent661ae84b0f78790173cb522321d2e737f0a77f41
fix locking within tcp_ipsec_pcbctl() to match ipsec4_pcbctl(), ipsec4_pcbctl()

IPSEC_PCBCTL() functions, which include tcp_ipsec_pcbctl(),
ipsec4_pcbctl(), and ipsec6_pcbctl(), should all have matching locking
semantics.

ipsec4_pcbctl() and ipsec6_pcbctl() expect the inp to be unlocked on
entry and exit and appear to be correctly implemented as such. But
tcp_ipsec_pcbctl() had other semantics. This patch fixes the semantics
for tcp_ipsec_pcbctl().

Submitted by: Jason Eggleston <jason@eggnet.com>
MFH: 2 weeks
Sponsored by: Limelight Networks
Differential Revision: https://reviews.freebsd.org/D14623
sys/netipsec/xform_tcp.c