On Fri, Mar 11, 2022 at 12:24:19PM -0700, Mark Kettenis wrote:
> CVSROOT:      /cvs
> Module name:  src
> Changes by:   kette...@cvs.openbsd.org        2022/03/11 12:24:19
> 
> Modified files:
>       sys/uvm        : uvm_extern.h uvm_glue.c uvm_io.c uvm_map.c 
>                        uvm_map.h 
> 
> Log message:
> Hold a read lock on the map while copying out data during a sysctl(2) call
> to prevent another thread from unmapping the memory and triggering
> an assertion or even corrupting random physical memory pages.
> 
> This fix is similar to the change in uvm_glue.c rev. 1.74.  However in this
> case we need to be careful since some sysctl(2) calls look at the map of
> the current process.  In those cases we must not attempt to lock the map
> again.
> 
> ok mpi@
> 
> Should fix:
> Reported-by: syzbot+be89fe83d6c004fcb...@syzkaller.appspotmail.com

With this applied, my amd64 laptop hangs while starting xenodm. Will try
a witness kernel.

Reply via email to