Lines Matching refs:guard
164 setup_stack_prot (char *mem, size_t size, char *guard, size_t guardsize, in setup_stack_prot() argument
167 char *guardend = guard + guardsize; in setup_stack_prot()
174 size_t mprots1 = (uintptr_t) guard - (uintptr_t) mem; in setup_stack_prot()
395 char *guard = guard_position (mem, size, guardsize, pd, in allocate_stack() local
397 if (setup_stack_prot (mem, size, guard, guardsize, prot) != 0) in allocate_stack()
480 char *guard = guard_position (mem, size, guardsize, pd, in allocate_stack() local
482 if (__mprotect (guard, guardsize, PROT_NONE) != 0) in allocate_stack()
513 char *guard = mem + (((size - guardsize) / 2) & ~pagesize_m1); in allocate_stack() local
516 if (oldguard < guard in allocate_stack()
517 && __mprotect (oldguard, guard - oldguard, prot) != 0) in allocate_stack()
520 if (__mprotect (guard + guardsize, in allocate_stack()
521 oldguard + pd->guardsize - guard - guardsize, in allocate_stack()