Add PS_NOBTCFI, a per-process flag indicating that Branch Target
authorguenther <guenther@openbsd.org>
Mon, 10 Jul 2023 03:31:57 +0000 (03:31 +0000)
committerguenther <guenther@openbsd.org>
Mon, 10 Jul 2023 03:31:57 +0000 (03:31 +0000)
commita8701c595f11859a59ce61b3bc5be334963a2e65
tree83e95f49117fccb5ef8c007f78471137a002e0a5
parentb77e9104c2fec1a37e7bda199a693c2b238fd8bb
Add PS_NOBTCFI, a per-process flag indicating that Branch Target
Control Flow Integrity has been disabled for the process.  At
exec-time, set that flag iff EXEC_NOBTCFI is passed from the ELF
exec bits (which set it based on presence of a PT_OPENBSD_NOBTCFI
segment).  This will be used by the amd64 code.

kern_exec.c part by kettenis@
ok guenther@ deraadt@
sys/kern/kern_exec.c
sys/sys/proc.h