CVSROOT: /cvs Module name: src Changes by: ari...@cvs.openbsd.org 2011/05/29 09:18:19
Modified files: sys/uvm : uvm_map.c Log message: Fix parameter range clamping in vmmap routines. The old VM_MAP_RANGE_CHECK macro was wrong and caused code to be unreadable (argument altering macros are harmful). Each function now treats the memory range outside the map as it would treat free memory: if it would error on being given free memory, it'll error in a similar fashion when the start,end parameters fall outside the map. If it would accept free memory in its argument range, it'll silently accept the outside-map memory too. Confirmed to help ports build machines.