Lines Matching refs:canary
196 /* This should trip the stack canary, not corrupt the return address. */
206 /* Same as above but will only get a canary with -fstack-protector-strong */
243 unsigned long *canary = (unsigned long *)stack;
246 /* Do our best to find the canary in a 16 word window ... */
248 canary = (unsigned long *)stack + i;
250 if (*canary == current->stack_canary)
252 if (*canary == init_task.stack_canary)
259 * If the canary doesn't match what's in the task_struct,
260 * we're either using a global canary or the stack frame
264 pr_err("FAIL: global stack canary found at offset %ld (canary for pid %d matches init_task's)!\n",
267 pr_warn("FAIL: did not correctly locate stack canary :(\n");
276 canary = (unsigned long *)stack + current_offset;
278 stack_canary = *canary;
281 pr_info("Recorded stack canary for pid %d at offset %ld\n",
287 pr_warn("ERROR: canary offset changed from %ld to %ld!?\n",
292 if (*canary == stack_canary) {
293 pr_warn("FAIL: canary identical for pid %d and pid %d at offset %ld!\n",