diff options
Diffstat (limited to 'support/support_stack_alloc.c')
-rw-r--r-- | support/support_stack_alloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/support/support_stack_alloc.c b/support/support_stack_alloc.c index edf3dbf..5e576be 100644 --- a/support/support_stack_alloc.c +++ b/support/support_stack_alloc.c @@ -1,5 +1,5 @@ /* Allocate a stack suitable to be used with xclone or xsigaltstack. - Copyright (C) 2021-2024 Free Software Foundation, Inc. + Copyright (C) 2021-2025 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -58,7 +58,7 @@ support_stack_alloc (size_t size) /* Use MAP_NORESERVE so that RAM will not be wasted on the guard bands; touch all the pages of the actual stack before returning, so we know they are allocated. */ - void *alloc_base = xmmap (0, + void *alloc_base = xmmap (NULL, alloc_size, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE|MAP_STACK, |