diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-09-24 11:18:38 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-09-24 11:18:38 +0000 |
commit | db229aeca27693b33b3422a1cb583e6c068c8876 (patch) | |
tree | b8b01b9cbc13e070f4dc602b6228fb17c74feb0e /bin | |
parent | 9dad4670ac02e309a821e43c8ad05853a2ded912 (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