diff options
author | Luiz Otavio O Souza <luiz@netgate.com> | 2016-05-11 12:48:11 -0500 |
---|---|---|
committer | Luiz Otavio O Souza <luiz@netgate.com> | 2016-05-12 10:59:34 -0500 |
commit | b2fbeb687ab88416fde1db788240cd4694bf340b (patch) | |
tree | 04ba6079b36282e4cff7fbc8f53f47f8836068e3 /contrib/gdtoa/strtoIxL.c | |
parent | 67d971cff8b345311dc2317f112dd3c1b4a7fadf (diff) | |
download | FreeBSD-src-b2fbeb687ab88416fde1db788240cd4694bf340b.zip FreeBSD-src-b2fbeb687ab88416fde1db788240cd4694bf340b.tar.gz |
MFC r288418:
Take extra reference to security policy before calling crypto_dispatch().
Currently we perform crypto requests for IPSEC synchronous for most of
crypto providers (software, aesni) and only VIA padlock calls crypto
callback asynchronous. In synchronous mode it is possible, that security
policy will be removed during the processing crypto request. And crypto
callback will release the last reference to SP. Then upon return into
ipsec[46]_process_packet() IPSECREQUEST_UNLOCK() will be called to already
freed request. To prevent this we will take extra reference to SP.
PR: 201876
Sponsored by: Yandex LLC
TAG: IPSEC-HEAD
(cherry picked from commit 3e1742ed6cd844d82787f2fa5cd57652805c6b34)
Diffstat (limited to 'contrib/gdtoa/strtoIxL.c')
0 files changed, 0 insertions, 0 deletions