Implement stack protection support

this adds kernel & libroot stack protector hooks. it uses /dev/random in userspace.
A configure option --enable-stack-protector is added to activate -fstack-protector
on selected system components (ATM apps, kits, servers).

Change-Id: If3a2920ba9aa0a85eaff4ba6778947f8c76ade31
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3895
Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
Jérôme Duval
2021-05-03 17:52:31 +00:00
parent 409d65c0d6
commit 04be20a75a
12 changed files with 153 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
/*
* Copyright 2021, Jérôme Duval, [email protected].
* Distributed under the terms of the MIT License.
*/
#ifndef _KERNEL_STACK_PROTECTOR_H
#define _KERNEL_STACK_PROTECTOR_H
void stack_protector_init();
#endif /* _KERNEL_STACK_PROTECTOR_H */