Home
last modified time | relevance | path

Searched refs:page_to_copy (Results 1 - 1 of 1) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/mprotect/
H A Dmprotect04.c187 void *func_copy_start, *page_to_copy; in get_func() local
194 page_to_copy = (void *)((uintptr_t)opd->entry & page_mask); in get_func()
198 page_to_copy = (void *)((uintptr_t)&exec_func & page_mask); in get_func()
200 tst_resm(TINFO, "exec_func: %p, page_to_copy: %p", in get_func()
201 &exec_func, page_to_copy); in get_func()
207 if (!page_present(page_to_copy)) { in get_func()
208 TEST(mprotect(page_to_copy, page_sz, PROT_READ | PROT_EXEC)); in get_func()
216 if (!page_present(page_to_copy)) in get_func()
217 tst_brkm(TBROK, cleanup, "page_to_copy not present"); in get_func()
219 memcpy(mem, page_to_copy, page_s in get_func()
[all...]

Completed in 1 milliseconds