Lines Matching refs:canary
117 /* This should trip the stack canary, not corrupt the return address. */
127 /* Same as above but will only get a canary with -fstack-protector-strong */
164 unsigned long *canary = (unsigned long *)stack;
167 /* Do our best to find the canary in a 16 word window ... */
169 canary = (unsigned long *)stack + i;
171 if (*canary == current->stack_canary)
173 if (*canary == init_task.stack_canary)
180 * If the canary doesn't match what's in the task_struct,
181 * we're either using a global canary or the stack frame
185 pr_err("FAIL: global stack canary found at offset %ld (canary for pid %d matches init_task's)!\n",
188 pr_warn("FAIL: did not correctly locate stack canary :(\n");
197 canary = (unsigned long *)stack + current_offset;
199 stack_canary = *canary;
202 pr_info("Recorded stack canary for pid %d at offset %ld\n",
208 pr_warn("ERROR: canary offset changed from %ld to %ld!?\n",
213 if (*canary == stack_canary) {
214 pr_warn("FAIL: canary identical for pid %d and pid %d at offset %ld!\n",