git: kernel - fix procfs vm_map scan.
dillon at crater.dragonflybsd.org
Wed Mar 10 15:59:55 PST 2010
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Wed Mar 10 15:56:09 2010 -0800
kernel - fix procfs vm_map scan.
* procfs was holding a vm_map lock during a uiomove, which can result
in a recursive lock panic on the vm_map.
* since we must now unlock the map during the uiomove use a trick with
vm_map->hint to detect if the current entry has been ripped out from
under us and issue a lookup to reacquire our position in the scan.
Reported-by: "Alex Hornung" <ahornung at gmail.com>
Summary of changes:
sys/vfs/procfs/procfs_map.c | 37 +++++++++++++++++++++++++++++++++----
1 files changed, 33 insertions(+), 4 deletions(-)
DragonFly BSD source repository
More information about the Commits