CVSROOT: /cvs Module name: src Changes by: m...@cvs.openbsd.org 2022/11/04 03:36:45
Modified files: sys/uvm : uvm_addr.c uvm_fault.c uvm_map.c uvm_map.h Log message: Assert the VM map lock is held in function used by mmap/mprotect/munmap. Also grab the lock in uvm_map_teardown() and uvm_map_deallocate() to satisfy the assertions. Grabbing the lock there shouldn't be strictly necessary, because no other reference to the map should exist when the reaper is holding it, but it doesn't hurt and makes our life easier. Inputs & tests from Ivo van der Sangen, tb@, gnezdo@, kn@ kettenis@ and tb@ agree with the direction, ok kn@