cvs commit: src/sys/fs/procfs procfs.c
    Konstantin Belousov 
    kib at FreeBSD.org
       
    Wed Feb  7 10:30:51 UTC 2007
    
    
  
kib         2007-02-07 10:30:49 UTC
  FreeBSD src repository
  Modified files:
    sys/fs/procfs        procfs.c 
  Log:
  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
  
  Revision  Changes    Path
  1.15      +11 -3     src/sys/fs/procfs/procfs.c
    
    
More information about the cvs-all
mailing list