> From: "Theo de Raadt" <dera...@openbsd.org>
> Date: Wed, 18 May 2022 10:48:01 -0600
> 
> Mark Kettenis <mark.kette...@xs4all.nl> wrote:
> 
> > > I guess there is another question -- should the ps_kbind_* variables
> > > be stored inside the uvmspace, rather than inside pr?
> > 
> > I think there are arguments for both.  But I don't think moving it
> > makes things easier.
> 
> Whatever proc sets the kbind configuration, wins.  Any other proc must
> set the same kbind (if it is different, it gets killed).

Correct.

> Isn't the vm_map_lock enough?

Could be.  The fast path is going to take that lock anyway.  This
would require a bit of surgery to uvm_map_extract() to make sure we
don't take the vm_map_lock twice.  Worth exploring I'd say.

Reply via email to