diff options
author | 2020-04-03 03:20:12 +0000 | |
---|---|---|
committer | 2020-04-03 03:20:12 +0000 | |
commit | 0338024a72e3f1337a0aa2d9af92a08736f07e29 (patch) | |
tree | 5748c4c5106221925d14db8e6a59bebe3a76a59a /usr.bin/ssh/ssh.c | |
parent | Add percent_expand test for 'Match Exec'. (diff) | |
download | wireguard-openbsd-0338024a72e3f1337a0aa2d9af92a08736f07e29.tar.xz wireguard-openbsd-0338024a72e3f1337a0aa2d9af92a08736f07e29.zip |
Take an explicit write reference when associating a thread with a ktrace
vnode. This lets other parts of the kernel see the vnode as active for
writing. In particular, now quotaon_vnode() properly sets up quotas for
ktrace vnodes. This fixes a crash that could happen if quotas were
turned on while a process was ktraced.
ktrace vnodes are opened for writing and an initial write reference
is provided for them by vn_open(9). However, this reference is removed,
too early, when sys_ktrace() calls vn_close(9).
Crash reported and fix tested by Bryan Stenson
OK mpi@
Diffstat (limited to 'usr.bin/ssh/ssh.c')
0 files changed, 0 insertions, 0 deletions