CVSROOT: /cvs Module name: src Changes by: m...@cvs.openbsd.org 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: syzbot+e8310909e2910c9cc...@syzkaller.appspotmail.com Reported-by: syzbot+d9b926edfd5f64a66...@syzkaller.appspotmail.com Reported-by: syzbot+a12540517e3a76a6a...@syzkaller.appspotmail.com