summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2020-09-24 11:18:38 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2020-09-24 11:18:38 +0000
commitdb229aeca27693b33b3422a1cb583e6c068c8876 (patch)
treeb8b01b9cbc13e070f4dc602b6228fb17c74feb0e /bin
parent9dad4670ac02e309a821e43c8ad05853a2ded912 (diff)
Make sure we fetch the CS limit of the CPU the trap happened on. It is
possible to switch CPUs when handling a trap since we need to lock the vm_map of the process. In that case the CS limit would be wrong an we incorrectly decide that there has been an execute privilige violation. Also make sure we only modify the variables that keep track of the CS limit and segment descriptor while holding the kernel lock. Fixes builds of go ports on i386. tested by sthen@ ok deraadt@
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions