summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex/regexec.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2017-10-03 17:36:40 +0000
committerguenther <guenther@openbsd.org>2017-10-03 17:36:40 +0000
commitb1cdcaf5fd63ff98193f7cf1fb74fdf4692e4d28 (patch)
tree725b5081629c334eaa0945df151a39fb97ccf7e2 /lib/libc/regex/regexec.c
parentDisable msi on the Yukon 88E8036 and 88E8053 as it triggers watchdog timeouts (diff)
downloadwireguard-openbsd-b1cdcaf5fd63ff98193f7cf1fb74fdf4692e4d28.tar.xz
wireguard-openbsd-b1cdcaf5fd63ff98193f7cf1fb74fdf4692e4d28.zip
The xrstor instruction will fault if the provided xstate data, which
is under userspace control via sigreturn, fails various consistency checks. Rather than trying to replicate the CPU's hardwired checks in C code, handle it like iretq: check in trap() whether a fault is from the problem instruction and handle it there. CPU behavior and the potential issue pointed out on Linux kernel-hardening ok mikeb@ deraadt@
Diffstat (limited to 'lib/libc/regex/regexec.c')
0 files changed, 0 insertions, 0 deletions