Set the %gs base to pcb_gsbase, not pcb_fsbase. Oops.
Discovered by: davidxu
This commit is contained in:
parent
07f9d83887
commit
8b48b40d5e
@ -77,7 +77,7 @@ sysarch(td, uap)
|
||||
case AMD64_SET_GSBASE:
|
||||
error = copyin(uap->parms, &pcb->pcb_gsbase, sizeof(pcb->pcb_gsbase));
|
||||
if (!error)
|
||||
wrmsr(MSR_KGSBASE, pcb->pcb_fsbase);
|
||||
wrmsr(MSR_KGSBASE, pcb->pcb_gsbase);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user