A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add comment to inform that stack protection is broken when PTH_STACKGROWTH == 1.
[simgrid.git]
/
src
/
simix
/
smx_context.c
diff --git
a/src/simix/smx_context.c
b/src/simix/smx_context.c
index
186b123
..
b0d7af6
100644
(file)
--- a/
src/simix/smx_context.c
+++ b/
src/simix/smx_context.c
@@
-124,6
+124,10
@@
void *SIMIX_context_stack_new(void)
{
void *stack;
+ /* FIXME: current code for stack protection assumes that stacks are growing
+ * downward (PTH_STACKGROWTH == -1). Protected pages need to be but after the
+ * stack when PTH_STACKGROWTH == 1. */
+
if (smx_context_guard_size > 0 && !MC_is_active()) {
size_t size = smx_context_stack_size + smx_context_guard_size;
#ifdef HAVE_MC