summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2020-09-24 11:18:37 +0000
committerkettenis <kettenis@openbsd.org>2020-09-24 11:18:37 +0000
commitf436a13e5be76cfe79c35dcb903a8dc0aee23ac4 (patch)
treec8c08801e8d12add68c09ab0a014c764c5109dd1 /lib
parentOn removing an rtable (diff)
downloadwireguard-openbsd-f436a13e5be76cfe79c35dcb903a8dc0aee23ac4.tar.xz
wireguard-openbsd-f436a13e5be76cfe79c35dcb903a8dc0aee23ac4.zip
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 'lib')
0 files changed, 0 insertions, 0 deletions