vmm(4): grab kernel lock before vmspace init
authordv <dv@openbsd.org>
Fri, 3 Sep 2021 11:47:05 +0000 (11:47 +0000)
committerdv <dv@openbsd.org>
Fri, 3 Sep 2021 11:47:05 +0000 (11:47 +0000)
commit8e114673a836afc182cf07571ed0fce8e2401ff3
tree3060ce01c185cb82e6b91eb1b94051209694c11f
parent0317870298fb69b40114a9056b1974f78e5365ce
vmm(4): grab kernel lock before vmspace init

We need the kernel lock before calling some uvm functions. Fixes a
panic reported by syzbot.

Reported-by: syzbot+dd7a70eaf794705db27e@syzkaller.appspotmail.com
ok mlarkin@
sys/arch/amd64/amd64/vmm.c