CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2025/03/21 07:19:33
Modified files:
sys/uvm : uvm_glue.c
Log message:
Make vslock(9) similar to mlock(2): silently ignore non-mapped ranges.
Prevents panics triggerable by multi-threaded processes where a thread A
munmap(2)s a page being used and wired, by sysctl(2) executed in thread B.
This turns vslock(9) into a best-effort mechanism similar to doing
mlock(2) on sysctl(2)'s arguments.
Note that with this change, thread B might still fault during its copyout(9)
if a sibling thread does munmap(2) or munlock(2) multiple times.
Tested by and ok bluhm@, ok kettenis@
Reported-by: [email protected]
Reported-by: [email protected]
Reported-by: [email protected]