Home
last modified time | relevance | path

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

/linux/arch/loongarch/include/asm/
H A Dstackprotector.h28 unsigned long canary; in boot_init_stack_canary() local
31 get_random_bytes(&canary, sizeof(canary)); in boot_init_stack_canary()
32 canary ^= LINUX_VERSION_CODE; in boot_init_stack_canary()
34 current->stack_canary = canary; in boot_init_stack_canary()
/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 … "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
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 … "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/x86/include/asm/
H A Dstackprotector.h52 unsigned long canary = get_random_canary(); in boot_init_stack_canary() local
58 current->stack_canary = canary; in boot_init_stack_canary()
60 this_cpu_write(fixed_percpu_data.stack_canary, canary); in boot_init_stack_canary()
62 this_cpu_write(__stack_chk_guard, canary); in boot_init_stack_canary()
/linux/drivers/misc/lkdtm/
H A Dbugs.c191 unsigned long *canary = (unsigned long *)stack; in __lkdtm_REPORT_STACK_CANARY() local
196 canary = (unsigned long *)stack + i; in __lkdtm_REPORT_STACK_CANARY()
198 if (*canary == current->stack_canary) in __lkdtm_REPORT_STACK_CANARY()
200 if (*canary == init_task.stack_canary) in __lkdtm_REPORT_STACK_CANARY()
224 canary = (unsigned long *)stack + current_offset; in __lkdtm_REPORT_STACK_CANARY()
226 stack_canary = *canary; in __lkdtm_REPORT_STACK_CANARY()
240 if (*canary == stack_canary) { in __lkdtm_REPORT_STACK_CANARY()
/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/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/tty/serial/8250/
H A D8250_core.c587 unsigned char canary = 0xa5; in serial8250_suspend_port() local
589 serial_out(up, UART_SCR, canary); in serial8250_suspend_port()
590 if (serial_in(up, UART_SCR) == canary) in serial8250_suspend_port()
591 up->canary = canary; in serial8250_suspend_port()
609 up->canary = 0; in serial8250_resume_port()
/linux/arch/x86/platform/pvh/
H A Dhead.S178 leal canary(%rip), %eax
241 SYM_DATA_LOCAL(canary, .fill 48, 1, 0)
/linux/drivers/net/ipa/
H A Dipa_mem.c366 __le32 *canary; in ipa_mem_config() local
372 canary = ipa->mem_virt + ipa->mem_offset + ipa->mem[i].offset; in ipa_mem_config()
374 *--canary = IPA_MEM_CANARY_VAL; in ipa_mem_config()
/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).