Home
last modified time | relevance | path

Searched refs:bad_addr (Results 1 – 25 of 27) sorted by relevance

12

/external/ltp/lib/
Dtst_get_bad_addr.c24 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/
Drename08.c80 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/ltp/testcases/kernel/syscalls/chdir/
Dchdir04.c102 char *bad_addr = 0; variable
150 bad_addr = mmap(0, 1, PROT_NONE, in setup()
152 if (bad_addr == MAP_FAILED) in setup()
154 TC[2].dname = bad_addr; in setup()
/external/ltp/testcases/kernel/syscalls/sysfs/
Dsysfs06.c98 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/strace/tests/
Dfcntl-common.c75 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-m32/
Dfcntl-common.c75 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/
Dfcntl-common.c75 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/chroot/
Dchroot03.c95 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/
Dwrite05.c31 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()
Dwrite03.c24 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()
/external/ltp/testcases/kernel/syscalls/writev/
Dwritev06.c60 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()
Dwritev02.c71 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()
Dwritev05.c67 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()
Dwritev07.c36 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()
/external/ltp/testcases/kernel/syscalls/setrlimit/
Dsetrlimit05.c20 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()
/external/ltp/testcases/kernel/syscalls/capset/
Dcapset02.c34 static void *bad_addr; variable
67 TEST(tst_syscall(__NR_capset, tc->flag - 1 ? header : bad_addr, in verify_capset()
68 tc->flag - 2 ? data : bad_addr)); in verify_capset()
103 bad_addr = tst_get_bad_addr(NULL); in setup()
/external/ltp/testcases/kernel/syscalls/mremap/
Dmremap03.c86 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()
/external/ltp/testcases/kernel/syscalls/chown/
Dchown04.c91 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/prctl/
Dprctl02.c64 static unsigned long bad_addr; variable
85 {PR_SET_NAME, &bad_addr, &num_0, EFAULT, "PR_SET_NAME"},
86 {PR_SET_SECCOMP, &num_2, &bad_addr, EFAULT, "PR_SET_SECCOMP"},
162 bad_addr = (unsigned long)tst_get_bad_addr(NULL); in setup()
/external/ltp/testcases/kernel/syscalls/sched_getaffinity/
Dsched_getaffinity01.c19 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()
/external/ltp/testcases/kernel/syscalls/readv/
Dreadv02.c93 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/
Dlink04.c156 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/bcc/src/lua/bpf/spec/
Delf_spec.lua17 local bad_addr = sh:resolve('thisnotexists')
18 assert.falsy(bad_addr)
/external/ltp/testcases/kernel/syscalls/chmod/
Dchmod06.c68 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()
/external/crosvm/sys_util/src/
Dguest_memory.rs681 let bad_addr = GuestAddress(0x123456); in guest_to_host() localVariable
682 assert!(mem.get_host_address(bad_addr).is_err()); in guest_to_host()

12