Re: Unlock minherit(2)

2022-12-12 Thread Klemens Nanni
On Wed, Nov 30, 2022 at 08:44:01PM +, Klemens Nanni wrote: > struct uvm_map's .addr is protected by the map's lock and .{min,max}_offset > are immutable. > > uvm_map_inherit() locks the VM map upon entry, sets the desired inheritance > mode for the given address range (validated outside the lo

Re: Unlock minherit(2)

2022-12-02 Thread Klemens Nanni
On Fri, Dec 02, 2022 at 08:44:09PM +0100, Christian Weisgerber wrote: > The only user of minherit() in base appears to be libc's arc4random. Yes, no other grep hits. > I successfully ran a full amd64 package bulk build with this. Thanks!

Re: Unlock minherit(2)

2022-12-02 Thread Christian Weisgerber
Klemens Nanni: > This has been running fine through regress and daily usage on my X230 driver > for months, incl. selected ports builds. > > Feedback? Objection? Tests? OK? The only user of minherit() in base appears to be libc's arc4random. I successfully ran a full amd64 package bulk build wi

Unlock minherit(2)

2022-11-30 Thread Klemens Nanni
struct uvm_map's .addr is protected by the map's lock and .{min,max}_offset are immutable. uvm_map_inherit() locks the VM map upon entry, sets the desired inheritance mode for the given address range (validated outside the lock) and unlocks the map itself. fork(2), i.e. uvm_mapent_forkcopy(), fir