Fix corner case in Linux stack mappings

We need to make sure no existing mappings exist between the
MAP_GROWSDOWN page and the guard page, since otherwise it's
not going to be able to grow down thus causing difficult to
troubleshoot failures.
This commit is contained in:
Justine Tunney 2022-10-03 13:43:52 -07:00
parent 6ba3b448f3
commit 3b4fcd8575
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
9 changed files with 14 additions and 16 deletions

View file

@ -68,7 +68,7 @@
/* TODO(jart): Remove this in favor of GetStackSize() */
#if defined(COSMO) && (defined(MODE_DBG) || defined(__SANITIZE_ADDRESS__))
#define STACKSIZE 524288 /* 512kb stack */
#define STACKSIZE 262144 /* 256kb stack */
#elif defined(COSMO)
#define STACKSIZE 65536 /* 64kb stack */
#else