Fix reset of the kernel stack pointer in TSS for !PTI case on pmap activation
after r354095. Reported and tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
This commit is contained in:
parent
cfa8b64827
commit
af592d0465
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=354132
@ -8650,7 +8650,7 @@ pmap_activate_sw_pti_post(struct thread *td, pmap_t pmap)
|
||||
{
|
||||
|
||||
PCPU_GET(tssp)->tss_rsp0 = pmap->pm_ucr3 != PMAP_NO_CR3 ?
|
||||
PCPU_GET(pti_rsp0) : (uintptr_t)td->td_pcb;
|
||||
PCPU_GET(pti_rsp0) : (uintptr_t)td->td_md.md_stack_base;
|
||||
}
|
||||
|
||||
static void inline
|
||||
|
Loading…
Reference in New Issue
Block a user