summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2018-01-17 10:22:25 +0000
committerkettenis <kettenis@openbsd.org>2018-01-17 10:22:25 +0000
commitd855ec95cfe64f13b6899415be9c24dc9be8ec49 (patch)
treee12400a648150669550395b17bcc1d026bf6d041 /lib/libc/stdlib/malloc.c
parentImplement support for the PSCI_VERSION call and export the function such that (diff)
downloadwireguard-openbsd-d855ec95cfe64f13b6899415be9c24dc9be8ec49.tar.xz
wireguard-openbsd-d855ec95cfe64f13b6899415be9c24dc9be8ec49.zip
Defend agains branch predictor target injection (Spectre "variant 2")
attacks by flushing the branch predictor cache (BTB) on context switches and page faults in kkernel address space. Note that this relies on the presence of firmware (such as Arm Trusted Firmware) that provides PSCI services that flush the BTB on entry as described in Arm Trusted Firmware Security Advisory TFV 6. ok patrick@, visa@
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions