Lines Matching refs:gap
12 * that there is at least 256 PAGE_SIZE of stack guard gap which is considered
28 * guard gap. This part of the test works by forcing a bottom up search. The
29 * assumptions are that the stack grows down (start gap) and either:
190 static void do_mmap_placement_test(unsigned long stack_addr, unsigned long gap)
198 * path should fail, and search up might take a look at the guard gap
200 * uses it, the allocation will be in the gap and the test should fail.
205 if (stack_addr - gap <= (unsigned long)map_test_gap &&
207 tst_res(TFAIL, "New mmap was placed in the guard gap.");
218 unsigned long gap = GAP_PAGES * page_size;
233 mapped_addr = stack_addr - gap - MAPPED_LEN;
235 mapped_addr = stack_addr + gap;
262 do_mmap_placement_test(stack_addr, gap);