kernel - Fix races in procfs
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 16 Nov 2011 16:47:29 +0000 (08:47 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 16 Nov 2011 16:47:29 +0000 (08:47 -0800)
commit07cdb1d23b872d65756a5dd2850001b8c0dc2995
tree91e7cee08c1da7a34533c441f245b1868e63d8b9
parent46fb7ae4e63e5ef9bf64ef424632fc2b2875db6d
kernel - Fix races in procfs

* Use cache_copy to acquire a stable textnch

* Do not try to access the vmspace (for process args) for processes
  in the SIDL or SZOMB state as it may be a moving target even with
  the process PHOLD()en.
sys/vfs/procfs/procfs_mem.c
sys/vfs/procfs/procfs_vnops.c