Lines Matching +full:0 +full:x1234

22 #define PAC_MASK (~0xff80ffffffffffff)
23 #define ARBITRARY_VALUE (0x1234)
28 ASSERT_NE(0, hwcaps & HWCAP_PACA) TH_LOG("PAUTH not enabled"); \
29 } while (0)
34 ASSERT_NE(0, hwcaps & HWCAP_PACG) TH_LOG("Generic PAUTH not enabled"); \
35 } while (0)
56 int res = 0; in n_same()
71 int same = 0; in n_same_single_set()
73 vals[0] = sign->keyia & PAC_MASK; in n_same_single_set()
81 for (int i = 0; i < nkeys - 1; i++) { in n_same_single_set()
116 sched_getaffinity(0, sizeof(mask), &mask); in exec_sign_all()
118 for (i = 0; i < sizeof(cpu_set_t); i++) in exec_sign_all()
124 sched_setaffinity(0, sizeof(mask), &mask); in exec_sign_all()
128 if (pid == 0) { in exec_sign_all()
129 dup2(new_stdin[0], STDIN_FILENO); in exec_sign_all()
141 close(new_stdin[0]); in exec_sign_all()
143 close(new_stdout[0]); in exec_sign_all()
153 close(new_stdin[0]); in exec_sign_all()
167 waitpid(pid, &status, 0); in exec_sign_all()
168 if (WIFEXITED(status) == 0) { in exec_sign_all()
172 if (WEXITSTATUS(status) != 0) { in exec_sign_all()
177 ret = read(new_stdout[0], signed_vals, sizeof(struct signatures)); in exec_sign_all()
183 return 0; in exec_sign_all()
199 if (sigsetjmp(jmpbuf, 1) == 0) { in TEST()
208 ASSERT_TRUE(0) TH_LOG("SIGSEGV/SIGILL signal did not occur"); in TEST()
218 size_t keyia = 0; in TEST()
219 size_t keyib = 0; in TEST()
220 size_t keyda = 0; in TEST()
221 size_t keydb = 0; in TEST()
225 for (int i = 0; i < PAC_COLLISION_ATTEMPTS; i++) { in TEST()
232 ASSERT_NE(0, keyia) TH_LOG("keyia instructions did nothing"); in TEST()
233 ASSERT_NE(0, keyib) TH_LOG("keyib instructions did nothing"); in TEST()
234 ASSERT_NE(0, keyda) TH_LOG("keyda instructions did nothing"); in TEST()
235 ASSERT_NE(0, keydb) TH_LOG("keydb instructions did nothing"); in TEST()
240 size_t keyg = 0; in TEST()
244 for (int i = 0; i < PAC_COLLISION_ATTEMPTS; i++) in TEST()
247 ASSERT_NE(0, keyg) TH_LOG("keyg instructions did nothing"); in TEST()
259 ASSERT_NE(0, hwcaps & HWCAP_PACA) TH_LOG("PAUTH not enabled"); in TEST()
274 for (int i = 0; i < PAC_COLLISION_ATTEMPTS; i++) { in TEST()
285 ASSERT_EQ(0, same) TH_LOG("%d keys clashed every time", same); in TEST()
302 ASSERT_NE(0, hwcaps & HWCAP_PACA) TH_LOG("PAUTH not enabled"); in TEST()
308 for (int i = 0; i < PAC_COLLISION_ATTEMPTS; i++) { in TEST()
310 ASSERT_EQ(0, ret) TH_LOG("failed to run worker"); in TEST()
322 ASSERT_EQ(0, same) TH_LOG("exec() did not change %d keys", same); in TEST()
338 ASSERT_EQ(0, ret) TH_LOG("failed to run worker"); in TEST()
361 ASSERT_EQ(0, ret) TH_LOG("failed to run worker"); in TEST()