diff options
author | benno <benno@FreeBSD.org> | 2014-01-28 22:02:29 +0000 |
---|---|---|
committer | benno <benno@FreeBSD.org> | 2014-01-28 22:02:29 +0000 |
commit | 220033cd7496da00ac9d614a9abcfe7eceb91d45 (patch) | |
tree | d27f15fbb585771adf8ec735b4e8c29683e18da8 /contrib/libc++/src/bind.cpp | |
parent | ee3f3bf669b136f638d169001bbf4e8363314357 (diff) | |
download | FreeBSD-src-220033cd7496da00ac9d614a9abcfe7eceb91d45.zip FreeBSD-src-220033cd7496da00ac9d614a9abcfe7eceb91d45.tar.gz |
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
Diffstat (limited to 'contrib/libc++/src/bind.cpp')
0 files changed, 0 insertions, 0 deletions