diff options
author | Patrick Mooney <pmooney@pfmooney.com> | 2017-08-03 18:19:56 +0000 |
---|---|---|
committer | Patrick Mooney <pmooney@pfmooney.com> | 2017-09-28 15:02:34 +0000 |
commit | dd35f9f41aba6f51178986d36ec29206d6025757 (patch) | |
tree | c4fb07b811c268cd15e87093cf51597a64f8a460 /usr/src/uts/common/sys/proc.h | |
parent | 5ae84a5233b723c890288b775cb5317db2e54d61 (diff) | |
download | illumos-joyent-dd35f9f41aba6f51178986d36ec29206d6025757.tar.gz |
OS-6323 want stack-clash mitigation
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Alex Wilson <alex.wilson@joyent.com>
Approved by: Alex Wilson <alex.wilson@joyent.com>
Diffstat (limited to 'usr/src/uts/common/sys/proc.h')
-rw-r--r-- | usr/src/uts/common/sys/proc.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/usr/src/uts/common/sys/proc.h b/usr/src/uts/common/sys/proc.h index d5be7943ef..a7fff4e5ab 100644 --- a/usr/src/uts/common/sys/proc.h +++ b/usr/src/uts/common/sys/proc.h @@ -251,8 +251,15 @@ typedef struct proc { kmutex_t p_maplock; /* lock for pr_mappage() */ struct proc *p_rlink; /* linked list for server */ kcondvar_t p_srwchan_cv; - size_t p_stksize; /* process stack size in bytes */ - uint_t p_stkpageszc; /* preferred stack max page size code */ + + /* + * Stack sizing and guard information. + * Generally protected by as_rangelock() + */ + size_t p_stksize; /* process stack size in bytes */ + uint_t p_stkpageszc; /* preferred stack max page size code */ + uintptr_t p_stkg_start; /* start of stack guard */ + uintptr_t p_stkg_end; /* end of stack guard */ /* * Microstate accounting, resource usage, and real-time profiling |