summaryrefslogtreecommitdiffstats
path: root/lib/libkvm
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2007-02-07 10:30:49 +0000
committerkib <kib@FreeBSD.org>2007-02-07 10:30:49 +0000
commit0e5b15d726fe05f6c5c50c0dc9f7d5aed285d3c9 (patch)
tree8ea493a77b12f3dc48651402856803c2d9de34b1 /lib/libkvm
parent2eb15b506b7d7b69a41d0fcdf2d7a806d723e4c7 (diff)
downloadFreeBSD-src-0e5b15d726fe05f6c5c50c0dc9f7d5aed285d3c9.zip
FreeBSD-src-0e5b15d726fe05f6c5c50c0dc9f7d5aed285d3c9.tar.gz
Fix the race of dereferencing /proc/<pid>/file with execve(2) by caching
the value of p_textvp. This way, we always unlock the locked vnode. While there, vhold() the vnode around the vn_lock(). Reported and tested by: Guy Helmer (ghelmer palisadesys com) Approved by: des (procfs maintainer) MFC after: 1 week
Diffstat (limited to 'lib/libkvm')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud