summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorvisa <visa@openbsd.org>2018-06-21 13:58:21 +0000
committervisa <visa@openbsd.org>2018-06-21 13:58:21 +0000
commit0ff991d2469a5e6b2ec82348ccae67e31455ec55 (patch)
treea2c3a76c752e360bc0c5b8e1bd312d11b5d02f3a /lib/libc
parentShuffle fields around to eliminate blanks spots resulting from (diff)
downloadwireguard-openbsd-0ff991d2469a5e6b2ec82348ccae67e31455ec55.tar.xz
wireguard-openbsd-0ff991d2469a5e6b2ec82348ccae67e31455ec55.zip
Use atomic operations for updating cred structure reference counts
to make crfree() and crhold() MP-safe. Make crhold() a proper function. Put the definition into file kern_prot.c to constrain the need of the <sys/atomic.h> header. While there, adjust the IPL of ucred_pool to avoid lock order problems with the kernel lock (pointed out by kettenis@). OK mpi@
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions