summaryrefslogtreecommitdiffstats
path: root/sys/libkern/x86
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2017-04-19 15:59:16 +0000
committerandrew <andrew@FreeBSD.org>2017-04-19 15:59:16 +0000
commitb7aef29707b4ceb8e2e598038a1b6c6bedcd075e (patch)
treebd6e3b1077a26cecbca5807f2373f5e6d8f98193 /sys/libkern/x86
parent4b14b18364b6ec3f1121c654a7d3bf41cfff77fe (diff)
downloadFreeBSD-src-b7aef29707b4ceb8e2e598038a1b6c6bedcd075e.zip
FreeBSD-src-b7aef29707b4ceb8e2e598038a1b6c6bedcd075e.tar.gz
MFC 313772:
Load the new sp_el0 with interrupts disabled in fork_trampoline. If an interrupt arrives in fork_trampoline after sp_el0 was written we may then switch to a new thread, enter userland so change this stack pointer, then return to this code with the wrong value. This fixes this case by moving the load of sp_el0 until after interrupts have been disabled.
Diffstat (limited to 'sys/libkern/x86')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud