Add a missing part of jhb's previous commit. It looks like he had a
patch chunk rejected that he missed. This would manifest as a lock assertion panic at boot (Giant not locked in kern_fork.c). Obtained from: jhb
This commit is contained in:
parent
5a35fbb199
commit
5750ee293d
@ -471,9 +471,13 @@ fork1(td, flags, pages, procp)
|
||||
ke2 = FIRST_KSE_IN_KSEGRP(kg2);
|
||||
|
||||
/* Allocate and switch to an alternate kstack if specified. */
|
||||
if (pages != 0)
|
||||
if (pages != 0) {
|
||||
mtx_lock(&Giant);
|
||||
vm_thread_new_altkstack(td2, pages);
|
||||
mtx_unlock(&Giant);
|
||||
}
|
||||
|
||||
mtx_lock(&Giant); /* XXX: for VREF() */
|
||||
PROC_LOCK(p2);
|
||||
PROC_LOCK(p1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user