diff options
author | mikeb <mikeb@openbsd.org> | 2016-10-27 14:04:09 +0000 |
---|---|---|
committer | mikeb <mikeb@openbsd.org> | 2016-10-27 14:04:09 +0000 |
commit | e97988fee2326464c1fc86020677bc65f5e9d786 (patch) | |
tree | 8022d0f5e49fb24ad0e42bec2372adcfe96bacf9 /usr.sbin | |
parent | Don't assume clr->ifname is a NUL-terminated printable string. (diff) | |
download | wireguard-openbsd-e97988fee2326464c1fc86020677bc65f5e9d786.tar.xz wireguard-openbsd-e97988fee2326464c1fc86020677bc65f5e9d786.zip |
Improve channel ring locking strategy
Make sure to hold the ring buffer lock for the complete duration
of a channel ring I/O operation. For read operations this means
peeking and reading is done uninterrupted and for both reads and
writes this places the buffer space availability check under the
same lock as well.
Diffstat (limited to 'usr.sbin')
0 files changed, 0 insertions, 0 deletions