diff options
author | Luiz Otavio O Souza <luiz@netgate.com> | 2015-09-15 12:54:43 -0500 |
---|---|---|
committer | Luiz Otavio O Souza <luiz@netgate.com> | 2015-10-20 11:49:31 -0500 |
commit | f766687a3a5ebf46077dce1e79b586b6b1d57101 (patch) | |
tree | 549a7415d6b5d7051dd36e701787d3ce823052e8 /sys/libkern/explicit_bzero.c | |
parent | 83a94510e9d03a1b9239901fb1d0595ae3e405df (diff) | |
download | FreeBSD-src-f766687a3a5ebf46077dce1e79b586b6b1d57101.zip FreeBSD-src-f766687a3a5ebf46077dce1e79b586b6b1d57101.tar.gz |
MFC r261251:
Prevent races in accesses of the software crypto session array.
swcr_newsession can change the pointer for swcr_sessions which races with
swcr_process which is looking up entries in this array.
Add a rwlock that protects changes to the array pointer so that
swcr_newsession and swcr_process no longer race.
Original patch by: Steve O'Hara-Smith <Steve.OHaraSmith@isilon.com>
Reviewed by: jmg
Sponsored by: EMC / Isilon Storage Division
TAG: IPSEC-HEAD
Issue: #4841
Diffstat (limited to 'sys/libkern/explicit_bzero.c')
0 files changed, 0 insertions, 0 deletions