summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config
diff options
context:
space:
mode:
authormikeb <mikeb@openbsd.org>2016-10-27 14:04:09 +0000
committermikeb <mikeb@openbsd.org>2016-10-27 14:04:09 +0000
commite97988fee2326464c1fc86020677bc65f5e9d786 (patch)
tree8022d0f5e49fb24ad0e42bec2372adcfe96bacf9 /usr.sbin/config
parentDon't assume clr->ifname is a NUL-terminated printable string. (diff)
downloadwireguard-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/config')
0 files changed, 0 insertions, 0 deletions