git: kernel - fix procfs vm_map scan.

Matthew Dillon dillon at
Wed Mar 10 15:59:55 PST 2010

commit 7a6ce7c7fc9b080ca50453ba55d7a405c92ca5f4
Author: Matthew Dillon <dillon at>
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>

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 mailing list