/external/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()
|
/external/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()
|
/external/strace/tests-m32/ |
D | fcntl-common.c | 75 void *const bad_addr = (void *) fl + 1; in test_flock_einval() local 76 invoke_test_syscall(0, cmd, bad_addr); in test_flock_einval() 78 TEST_SYSCALL_STR, name, bad_addr, errstr); in test_flock_einval() 99 void *const bad_addr = (void *) fl + 1; in test_flock64_einval() local 100 invoke_test_syscall(0, cmd, bad_addr); in test_flock64_einval() 102 TEST_SYSCALL_STR, name, bad_addr, errstr); in test_flock64_einval() 200 void *bad_addr = (void *) fo + 1; in test_f_owner_ex_type_pid() local 201 invoke_test_syscall(0, cmd, bad_addr); in test_f_owner_ex_type_pid() 203 TEST_SYSCALL_STR, cmd_name, bad_addr, errstr); in test_f_owner_ex_type_pid()
|
/external/strace/tests-mx32/ |
D | fcntl-common.c | 75 void *const bad_addr = (void *) fl + 1; in test_flock_einval() local 76 invoke_test_syscall(0, cmd, bad_addr); in test_flock_einval() 78 TEST_SYSCALL_STR, name, bad_addr, errstr); in test_flock_einval() 99 void *const bad_addr = (void *) fl + 1; in test_flock64_einval() local 100 invoke_test_syscall(0, cmd, bad_addr); in test_flock64_einval() 102 TEST_SYSCALL_STR, name, bad_addr, errstr); in test_flock64_einval() 200 void *bad_addr = (void *) fo + 1; in test_f_owner_ex_type_pid() local 201 invoke_test_syscall(0, cmd, bad_addr); in test_f_owner_ex_type_pid() 203 TEST_SYSCALL_STR, cmd_name, bad_addr, errstr); in test_f_owner_ex_type_pid()
|
/external/strace/tests/ |
D | fcntl-common.c | 75 void *const bad_addr = (void *) fl + 1; in test_flock_einval() local 76 invoke_test_syscall(0, cmd, bad_addr); in test_flock_einval() 78 TEST_SYSCALL_STR, name, bad_addr, errstr); in test_flock_einval() 99 void *const bad_addr = (void *) fl + 1; in test_flock64_einval() local 100 invoke_test_syscall(0, cmd, bad_addr); in test_flock64_einval() 102 TEST_SYSCALL_STR, name, bad_addr, errstr); in test_flock64_einval() 200 void *bad_addr = (void *) fo + 1; in test_f_owner_ex_type_pid() local 201 invoke_test_syscall(0, cmd, bad_addr); in test_f_owner_ex_type_pid() 203 TEST_SYSCALL_STR, cmd_name, bad_addr, errstr); in test_f_owner_ex_type_pid()
|
/external/ltp/testcases/kernel/syscalls/sysfs/ |
D | sysfs06.c | 98 char *bad_addr = 0; variable 114 (__NR_sysfs, option[i], fsindex[i], bad_addr)); in main() 148 bad_addr = in setup() 151 if (bad_addr == MAP_FAILED) in setup()
|
/external/ltp/testcases/kernel/syscalls/chdir/ |
D | chdir04.c | 104 char *bad_addr = 0; variable 152 bad_addr = mmap(0, 1, PROT_NONE, in setup() 154 if (bad_addr == MAP_FAILED) in setup() 156 TC[2].dname = bad_addr; in setup()
|
/external/ltp/testcases/kernel/syscalls/writev/ |
D | writev06.c | 60 char *bad_addr[2] = { NULL, NULL }; variable 178 bad_addr[0] = mmap(NULL, page_size * 3, PROT_NONE, in setup() 180 if (bad_addr[0] == MAP_FAILED) in setup() 188 bad_addr[1] = mmap(NULL, page_size * 3, PROT_NONE, in setup() 190 if (bad_addr[1] == MAP_FAILED) in setup()
|
D | writev02.c | 71 char *bad_addr = 0; variable 187 bad_addr = mmap(0, 1, PROT_NONE, in setup() 189 if (bad_addr == MAP_FAILED) in setup() 191 wr_iovec[0].iov_base = bad_addr; in setup() 200 if (munmap(bad_addr, 1) == -1) in cleanup()
|
D | writev05.c | 67 char *bad_addr = 0; variable 227 bad_addr = mmap(0, 1, PROT_NONE, in setup() 229 if (bad_addr == MAP_FAILED) { in setup() 232 wr_iovec[0].iov_base = bad_addr; in setup()
|
D | writev07.c | 45 static void *bad_addr; variable 54 { bad_addr, CHUNK }, in test_partially_valid_iovec() 142 bad_addr = SAFE_MMAP(0, 1, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, in setup()
|
/external/ltp/testcases/kernel/syscalls/chroot/ |
D | chroot03.c | 95 static char *bad_addr; variable 149 bad_addr = mmap(0, 1, PROT_NONE, in setup() 151 if (bad_addr == MAP_FAILED) in setup() 154 TC[3].dir = bad_addr; in setup()
|
/external/ltp/testcases/kernel/syscalls/write/ |
D | write05.c | 44 static char *bad_addr; variable 54 {&fd, &bad_addr, sizeof(buf), EFAULT}, 98 bad_addr = SAFE_MMAP(0, 1, PROT_NONE, in setup() 112 SAFE_MUNMAP(bad_addr, 1); in cleanup()
|
D | write03.c | 37 static char *bad_addr; variable 47 if (write(fd, bad_addr, 100) != -1) { in verify_write() 71 bad_addr = SAFE_MMAP(0, 1, PROT_NONE, in setup()
|
/external/ltp/testcases/kernel/syscalls/setrlimit/ |
D | setrlimit05.c | 29 static void *bad_addr; variable 38 TEST(setrlimit(RLIMIT_NOFILE, bad_addr)); in verify_setrlimit() 74 bad_addr = tst_get_bad_addr(NULL); in setup()
|
/external/ltp/testcases/kernel/syscalls/mremap/ |
D | mremap03.c | 87 static char *bad_addr; variable 114 addr = mremap(bad_addr, memsize, newsize, MREMAP_MAYMOVE); in main() 176 bad_addr = tst_get_bad_addr(cleanup); in setup()
|
/external/ltp/testcases/kernel/syscalls/chown/ |
D | chown04.c | 91 static char *bad_addr; variable 158 bad_addr = mmap(0, 1, PROT_NONE, in setup() 160 if (bad_addr == MAP_FAILED) in setup() 163 tc[2].pathname = bad_addr; in setup()
|
/external/ltp/testcases/kernel/syscalls/stat/ |
D | stat06.c | 130 char *bad_addr = 0; variable 272 bad_addr = mmap(0, 1, PROT_NONE, in setup() 274 if (bad_addr == MAP_FAILED) { in setup() 277 Test_cases[6].pathname = bad_addr; in setup()
|
/external/ltp/testcases/kernel/syscalls/readv/ |
D | readv02.c | 93 char *bad_addr = 0; variable 225 bad_addr = mmap(0, 1, PROT_NONE, in setup() 227 if (bad_addr == MAP_FAILED) { in setup() 230 rd_iovec[6].iov_base = bad_addr; in setup()
|
/external/ltp/testcases/kernel/syscalls/link/ |
D | link04.c | 156 void *bad_addr = tst_get_bad_addr(cleanup); in setup() local 160 test_cases[n].file1 = bad_addr; in setup() 163 test_cases[n].file2 = bad_addr; in setup()
|
/external/ltp/testcases/kernel/syscalls/chmod/ |
D | chmod06.c | 81 static char *bad_addr; variable 125 bad_addr = SAFE_MMAP(0, 1, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0); in setup() 129 tc[i].pathname = bad_addr; in setup()
|
/external/bcc/src/lua/bpf/spec/ |
D | elf_spec.lua | 17 local bad_addr = sh:resolve('thisnotexists') 18 assert.falsy(bad_addr)
|
/external/python/cpython3/Lib/test/ |
D | test_ipaddress.py | 2060 bad_addr = '2000::4136:e378:8000:63bf:3fff:fdd2' 2061 self.assertFalse(ipaddress.ip_address(bad_addr).teredo) 2062 bad_addr = '2001:0001:4136:e378:8000:63bf:3fff:fdd2' 2063 self.assertFalse(ipaddress.ip_address(bad_addr).teredo) 2073 bad_addr = ipaddress.ip_address('2000:ac1d:2d64::1') 2076 self.assertFalse(bad_addr.sixtofour)
|