/third_party/ltp/lib/ |
D | tst_get_bad_addr.c | 24 void *bad_addr; in tst_get_bad_addr() local 26 bad_addr = mmap(0, 1, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, 0, 0); in tst_get_bad_addr() 27 if (bad_addr == MAP_FAILED) in tst_get_bad_addr() 30 return bad_addr; in tst_get_bad_addr()
|
/third_party/ltp/testcases/kernel/syscalls/rename/ |
D | rename08.c | 80 char *bad_addr = 0; variable 169 bad_addr = mmap(0, 1, PROT_NONE, in setup() 171 if (bad_addr == MAP_FAILED) { in setup() 174 TC[0].fd2 = bad_addr; in setup() 175 TC[1].fd = bad_addr; in setup()
|
/third_party/ltp/testcases/kernel/syscalls/writev/ |
D | writev06.c | 60 char *bad_addr[2] = { NULL, NULL }; variable 164 bad_addr[0] = mmap(NULL, page_size * 3, PROT_NONE, in setup() 166 if (bad_addr[0] == MAP_FAILED) in setup() 174 bad_addr[1] = mmap(NULL, page_size * 3, PROT_NONE, in setup() 176 if (bad_addr[1] == MAP_FAILED) in setup()
|
D | writev02.c | 71 char *bad_addr = 0; variable 182 bad_addr = mmap(0, 1, PROT_NONE, in setup() 184 if (bad_addr == MAP_FAILED) in setup() 186 wr_iovec[0].iov_base = bad_addr; in setup() 195 if (munmap(bad_addr, 1) == -1) in cleanup()
|
D | writev05.c | 67 char *bad_addr = 0; variable 213 bad_addr = mmap(0, 1, PROT_NONE, in setup() 215 if (bad_addr == MAP_FAILED) { in setup() 218 wr_iovec[0].iov_base = bad_addr; in setup()
|
D | writev07.c | 36 static void *bad_addr; variable 45 { bad_addr, CHUNK }, in test_partially_valid_iovec() 133 bad_addr = SAFE_MMAP(0, 1, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, in setup()
|
/third_party/ltp/testcases/kernel/syscalls/write/ |
D | write05.c | 31 static char *bad_addr; variable 41 {&fd, &bad_addr, sizeof(buf), EFAULT}, 85 bad_addr = SAFE_MMAP(0, 1, PROT_NONE, in setup() 99 SAFE_MUNMAP(bad_addr, 1); in cleanup()
|
D | write03.c | 24 static char *bad_addr; variable 34 if (write(fd, bad_addr, 100) != -1) { in verify_write() 58 bad_addr = SAFE_MMAP(0, 1, PROT_NONE, in setup()
|
/third_party/ltp/testcases/kernel/syscalls/uname/ |
D | uname02.c | 15 static void *bad_addr; variable 19 TST_EXP_FAIL(uname(bad_addr), EFAULT); in verify_uname() 24 bad_addr = tst_get_bad_addr(NULL); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/capset/ |
D | capset02.c | 34 static void *bad_addr; variable 65 TST_EXP_FAIL(tst_syscall(__NR_capset, tc->flag - 1 ? header : bad_addr, in verify_capset() 66 tc->flag - 2 ? data : bad_addr), in verify_capset() 93 bad_addr = tst_get_bad_addr(NULL); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/setrlimit/ |
D | setrlimit05.c | 20 static void *bad_addr; variable 29 TEST(setrlimit(RLIMIT_NOFILE, bad_addr)); in verify_setrlimit() 65 bad_addr = tst_get_bad_addr(NULL); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/epoll_pwait/ |
D | epoll_pwait04.c | 21 static void *bad_addr; variable 25 TST_EXP_FAIL(do_epoll_pwait(efd, &e, 1, -1, bad_addr), in run() 44 bad_addr = tst_get_bad_addr(NULL); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/recvmmsg/ |
D | recvmmsg01.c | 24 static void *bad_addr; variable 50 .msg_vec = (void*)&bad_addr, 88 timeout = bad_addr; in do_test() 124 bad_addr = tst_get_bad_addr(NULL); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/mremap/ |
D | mremap03.c | 86 static char *bad_addr; variable 113 addr = mremap(bad_addr, memsize, newsize, MREMAP_MAYMOVE); in main() 175 bad_addr = tst_get_bad_addr(cleanup); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/sysfs/ |
D | sysfs05.c | 46 char *bad_addr; in setup() local 48 bad_addr = tst_get_bad_addr(NULL); in setup() 52 tcases[i].fsname = bad_addr; in setup()
|
/third_party/ltp/testcases/kernel/syscalls/io_pgetevents/ |
D | io_pgetevents02.c | 20 static void *bad_addr; variable 58 bad_addr = tst_get_bad_addr(NULL); in setup() 96 void *const to = tc->timeout ? tst_ts_get(tc->timeout) : bad_addr; in run() 97 sigset_t *const sigmask = tc->sigmask ? tc->sigmask : bad_addr; in run()
|
/third_party/ltp/testcases/kernel/syscalls/prctl/ |
D | prctl02.c | 65 static unsigned long bad_addr; variable 86 {PR_SET_NAME, &bad_addr, &num_0, EFAULT, "PR_SET_NAME"}, 87 {PR_SET_SECCOMP, &num_2, &bad_addr, EFAULT, "PR_SET_SECCOMP"}, 163 bad_addr = (unsigned long)tst_get_bad_addr(NULL); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/timerfd/ |
D | timerfd_gettime01.c | 24 static void *bad_addr; variable 49 bad_addr = tst_get_bad_addr(NULL); in setup() 76 its = bad_addr; in run()
|
D | timerfd_settime01.c | 23 static void *bad_addr; variable 54 bad_addr = tst_get_bad_addr(NULL); in setup() 82 its = bad_addr; in run()
|
/third_party/ltp/testcases/kernel/syscalls/sched_getaffinity/ |
D | sched_getaffinity01.c | 19 static void *bad_addr; variable 78 errno_test(0, len, bad_addr, EFAULT); in do_test() 90 bad_addr = tst_get_bad_addr(NULL); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/sched_rr_get_interval/ |
D | sched_rr_get_interval03.c | 24 static void *bad_addr; variable 55 bad_addr = tst_get_bad_addr(NULL); in setup() 77 ts = bad_addr; in run()
|
/third_party/ltp/testcases/kernel/syscalls/clock_nanosleep/ |
D | clock_nanosleep01.c | 38 static void *bad_addr; variable 126 bad_addr = tst_get_bad_addr(NULL); in setup() 155 request = bad_addr; in do_test() 160 remain = bad_addr; in do_test()
|
/third_party/ltp/testcases/kernel/syscalls/clock_gettime/ |
D | clock_gettime02.c | 26 static void *bad_addr; variable 104 bad_addr = tst_get_bad_addr(NULL); in setup() 114 ts = bad_addr; in verify_clock_gettime()
|
/third_party/ltp/testcases/kernel/syscalls/chmod/ |
D | chmod06.c | 68 static char *bad_addr; variable 112 bad_addr = SAFE_MMAP(0, 1, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0); in setup() 116 tc[i].pathname = bad_addr; in setup()
|
/third_party/ltp/testcases/kernel/syscalls/mq_timedsend/ |
D | mq_timedsend01.c | 20 static void *bad_addr; variable 156 bad_addr = tst_get_bad_addr(cleanup_common); in setup() 190 msg_ptr = bad_addr; in do_test() 195 abs_timeout = bad_addr; in do_test()
|