summaryrefslogtreecommitdiffstats
path: root/sys/lib/libkern
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2018-07-03 05:50:46 +0000
committermpi <mpi@openbsd.org>2018-07-03 05:50:46 +0000
commit4e13440d1c69a1e95d8fa2679ca8e517b9d739eb (patch)
treed1e92a10392f3cb247c8ca25b4b2f90b58fb32f8 /sys/lib/libkern
parentRemove dead code present since r1.1. Fix CID 1470238. (diff)
downloadwireguard-openbsd-4e13440d1c69a1e95d8fa2679ca8e517b9d739eb.tar.xz
wireguard-openbsd-4e13440d1c69a1e95d8fa2679ca8e517b9d739eb.zip
Instead of overwriting `f_data' replace the 'struct file' with a new one.
With this change `f_data' is effectively immutable. While here prevent a lock ordering issue by not unterleaving the vnode's lock and the fdplock(). Tested by bluhm@, ok kettenis@, visa@, jsing@
Diffstat (limited to 'sys/lib/libkern')
0 files changed, 0 insertions, 0 deletions