aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/proc.h
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2019-09-03 18:56:25 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2019-09-03 18:56:25 +0000
commitfe69291ff4eba3692489bee077bd4f1182e68371 (patch)
treedaada07f22116fe9051d62578dfec51cf3e4f58d /sys/sys/proc.h
parent14113f123e464c54345d0af2fd9ee60f3b38c196 (diff)
downloadsrc-fe69291ff4eba3692489bee077bd4f1182e68371.tar.gz
src-fe69291ff4eba3692489bee077bd4f1182e68371.zip
Add procctl(PROC_STACKGAP_CTL)
It allows a process to request that stack gap was not applied to its stacks, retroactively. Also it is possible to control the gaps in the process after exec. PR: 239894 Reviewed by: alc Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D21352
Notes
Notes: svn path=/head/; revision=351773
Diffstat (limited to 'sys/sys/proc.h')
-rw-r--r--sys/sys/proc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index 8cecf950ebe4..ae605a1266dd 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -762,6 +762,8 @@ struct proc {
#define P2_ASLR_IGNSTART 0x00000100 /* Enable ASLR to consume sbrk area. */
#define P2_PROTMAX_ENABLE 0x00000200 /* Force enable implied PROT_MAX. */
#define P2_PROTMAX_DISABLE 0x00000400 /* Force disable implied PROT_MAX. */
+#define P2_STKGAP_DISABLE 0x00000800 /* Disable stack gap for MAP_STACK */
+#define P2_STKGAP_DISABLE_EXEC 0x00001000 /* Stack gap disabled after exec */
/* Flags protected by proctree_lock, kept in p_treeflags. */
#define P_TREE_ORPHANED 0x00000001 /* Reparented, on orphan list */