Home
last modified time | relevance | path

Searched refs:canary (Results 1 – 18 of 18) sorted by relevance

/linux/tools/testing/selftests/ftrace/test.d/00basic/
H A Dtest_ownership.tc25 canary="events/timer events/timer/timer_cancel events/timer/timer_cancel/format"
59 for d in "." "events" "events/sched" "events/sched/sched_switch" "events/sched/sched_switch/enable" $canary; do
65 for d in "." "events/sched" "events/sched/sched_switch" "events/sched/sched_switch/enable" $canary; do
71 for d in "." "events/sched/sched_switch" "events/sched/sched_switch/enable" $canary; do
77 for d in "." "events/sched/sched_switch/enable" $canary; do
83 for d in "." $canary; do
99 for d in "." "events" "events/sched" "events/sched/sched_switch" "events/sched/sched_switch/enable" $canary; do
/linux/arch/powerpc/include/asm/
H A Dstackprotector.h22 unsigned long canary = get_random_canary(); in boot_init_stack_canary() local
24 current->stack_canary = canary; in boot_init_stack_canary()
26 get_paca()->canary = canary; in boot_init_stack_canary()
H A Dpaca.h272 unsigned long canary; member
/linux/arch/mips/include/asm/
H A Dstackprotector.h28 unsigned long canary = get_random_canary(); in boot_init_stack_canary() local
30 current->stack_canary = canary; in boot_init_stack_canary()
/linux/arch/sh/include/asm/
H A Dstackprotector.h15 unsigned long canary = get_random_canary(); in boot_init_stack_canary() local
17 current->stack_canary = canary; in boot_init_stack_canary()
/linux/arch/csky/include/asm/
H A Dstackprotector.h15 unsigned long canary = get_random_canary(); in boot_init_stack_canary() local
17 current->stack_canary = canary; in boot_init_stack_canary()
/linux/arch/xtensa/include/asm/
H A Dstackprotector.h27 unsigned long canary = get_random_canary(); in boot_init_stack_canary() local
29 current->stack_canary = canary; in boot_init_stack_canary()
/linux/arch/loongarch/include/asm/
H A Dstackprotector.h25 unsigned long canary = get_random_canary(); in boot_init_stack_canary() local
27 current->stack_canary = canary; in boot_init_stack_canary()
/linux/arch/arm/include/asm/
H A Dstackprotector.h30 unsigned long canary = get_random_canary(); in boot_init_stack_canary() local
32 current->stack_canary = canary; in boot_init_stack_canary()
/linux/arch/riscv/include/asm/
H A Dstackprotector.h16 unsigned long canary = get_random_canary(); in boot_init_stack_canary() local
18 current->stack_canary = canary; in boot_init_stack_canary()
/linux/arch/arm64/include/asm/
H A Dstackprotector.h29 unsigned long canary = get_random_canary(); in boot_init_stack_canary() local
31 current->stack_canary = canary; in boot_init_stack_canary()
/linux/drivers/misc/lkdtm/
H A Dbugs.c196 /* This should trip the stack canary, not corrupt the return address. */ in lkdtm_CORRUPT_STACK()
206 /* Same as above but will only get a canary with -fstack-protector-strong */ in lkdtm_CORRUPT_STACK_STRONG()
243 unsigned long *canary = (unsigned long *)stack; in __lkdtm_REPORT_STACK_CANARY()
246 /* Do our best to find the canary in a 16 word window ... */ in __lkdtm_REPORT_STACK_CANARY()
248 canary = (unsigned long *)stack + i; in __lkdtm_REPORT_STACK_CANARY()
250 if (*canary == current->stack_canary) in __lkdtm_REPORT_STACK_CANARY()
252 if (*canary == init_task.stack_canary) in __lkdtm_REPORT_STACK_CANARY()
259 * If the canary doesn't match what's in the task_struct, in __lkdtm_REPORT_STACK_CANARY()
260 * we're either using a global canary or the stack frame in __lkdtm_REPORT_STACK_CANARY()
264 pr_err("FAIL: global stack canary foun in __lkdtm_REPORT_STACK_CANARY()
242 unsigned long *canary = (unsigned long *)stack; __lkdtm_REPORT_STACK_CANARY() local
[all...]
/linux/Documentation/translations/zh_CN/security/
H A Dself-protection.rst137 (CONFIG_STACKPROTECTOR),它在函数返回前会验证栈上的“stack canary”。
/linux/drivers/soc/qcom/
H A Dsmem.c214 * @canary: magic number, must be SMEM_PRIVATE_CANARY
222 u16 canary; /* bytes are the same so no swapping needed */
422 if (hdr->canary != SMEM_PRIVATE_CANARY) in qcom_smem_alloc_private()
440 hdr->canary = SMEM_PRIVATE_CANARY; in qcom_smem_alloc_private()
456 dev_err(smem->dev, "Found invalid canary in hosts %hu:%hu partition\n", in qcom_smem_alloc_private()
603 if (e->canary != SMEM_PRIVATE_CANARY) in qcom_smem_get_private()
639 if (e->canary != SMEM_PRIVATE_CANARY) in qcom_smem_get_private()
669 dev_err(smem->dev, "Found invalid canary in hosts %hu:%hu partition\n", in qcom_smem_get_private()
225 u16 canary; /* bytes are the same so no swapping needed */ global() member
/linux/include/linux/
H A Dserial_8250.h138 unsigned char canary; /* non-zero during system sleep member
/linux/Documentation/security/
H A Dself-protection.rst157 is the presence of a stack canary between the stack variables and the
207 It should be noted that things like the stack canary discussed earlier
217 different canary per stack) and high entropy (e.g. is the RNG actually
270 addresses or other sensitive things like canary values).
/linux/drivers/tty/serial/8250/
H A D8250_port.c3347 if (up->canary && (up->canary != serial_port_in(port, UART_SCR))) { in serial8250_console_write()
3349 up->canary = 0; in serial8250_console_write()
/linux/arch/arm/
H A DKconfig1366 bool "Use a unique stack canary value for each task"
1372 which to load the value of the stack canary, this value can only
1374 kernel's address space are forced to use the same canary value for
1378 different canary value for each task.