Home
last modified time | relevance | path

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

/Linux-v5.10/arch/x86/include/asm/
Dstackprotector.h68 u64 canary; in boot_init_stack_canary() local
80 get_random_bytes(&canary, sizeof(canary)); in boot_init_stack_canary()
82 canary += tsc + (tsc << 32UL); in boot_init_stack_canary()
83 canary &= CANARY_MASK; in boot_init_stack_canary()
85 current->stack_canary = canary; in boot_init_stack_canary()
87 this_cpu_write(fixed_percpu_data.stack_canary, canary); in boot_init_stack_canary()
89 this_cpu_write(stack_canary.canary, canary); in boot_init_stack_canary()
98 per_cpu(stack_canary.canary, cpu) = idle->stack_canary; in cpu_init_stack_canary()
105 unsigned long canary = (unsigned long)&per_cpu(stack_canary, cpu); in setup_stack_canary_segment() local
110 set_desc_base(&desc, canary); in setup_stack_canary_segment()
Dprocessor.h472 unsigned long canary; member
/Linux-v5.10/arch/powerpc/include/asm/
Dstackprotector.h24 unsigned long canary; in boot_init_stack_canary() local
27 canary = get_random_canary(); in boot_init_stack_canary()
28 canary ^= mftb(); in boot_init_stack_canary()
29 canary ^= LINUX_VERSION_CODE; in boot_init_stack_canary()
30 canary &= CANARY_MASK; in boot_init_stack_canary()
32 current->stack_canary = canary; in boot_init_stack_canary()
34 get_paca()->canary = canary; in boot_init_stack_canary()
Dpaca.h271 unsigned long canary; member
/Linux-v5.10/arch/csky/include/asm/
Dstackprotector.h18 unsigned long canary; in boot_init_stack_canary() local
21 get_random_bytes(&canary, sizeof(canary)); in boot_init_stack_canary()
22 canary ^= LINUX_VERSION_CODE; in boot_init_stack_canary()
23 canary &= CANARY_MASK; in boot_init_stack_canary()
25 current->stack_canary = canary; in boot_init_stack_canary()
/Linux-v5.10/arch/riscv/include/asm/
Dstackprotector.h19 unsigned long canary; in boot_init_stack_canary() local
22 get_random_bytes(&canary, sizeof(canary)); in boot_init_stack_canary()
23 canary ^= LINUX_VERSION_CODE; in boot_init_stack_canary()
24 canary &= CANARY_MASK; in boot_init_stack_canary()
26 current->stack_canary = canary; in boot_init_stack_canary()
/Linux-v5.10/arch/sh/include/asm/
Dstackprotector.h18 unsigned long canary; in boot_init_stack_canary() local
21 get_random_bytes(&canary, sizeof(canary)); in boot_init_stack_canary()
22 canary ^= LINUX_VERSION_CODE; in boot_init_stack_canary()
23 canary &= CANARY_MASK; in boot_init_stack_canary()
25 current->stack_canary = canary; in boot_init_stack_canary()
/Linux-v5.10/arch/arm64/include/asm/
Dstackprotector.h31 unsigned long canary; in boot_init_stack_canary() local
34 get_random_bytes(&canary, sizeof(canary)); in boot_init_stack_canary()
35 canary ^= LINUX_VERSION_CODE; in boot_init_stack_canary()
36 canary &= CANARY_MASK; in boot_init_stack_canary()
38 current->stack_canary = canary; in boot_init_stack_canary()
/Linux-v5.10/arch/mips/include/asm/
Dstackprotector.h31 unsigned long canary; in boot_init_stack_canary() local
34 get_random_bytes(&canary, sizeof(canary)); in boot_init_stack_canary()
35 canary ^= LINUX_VERSION_CODE; in boot_init_stack_canary()
37 current->stack_canary = canary; in boot_init_stack_canary()
/Linux-v5.10/arch/xtensa/include/asm/
Dstackprotector.h30 unsigned long canary; in boot_init_stack_canary() local
33 get_random_bytes(&canary, sizeof(canary)); in boot_init_stack_canary()
34 canary ^= LINUX_VERSION_CODE; in boot_init_stack_canary()
36 current->stack_canary = canary; in boot_init_stack_canary()
/Linux-v5.10/arch/arm/include/asm/
Dstackprotector.h33 unsigned long canary; in boot_init_stack_canary() local
36 get_random_bytes(&canary, sizeof(canary)); in boot_init_stack_canary()
37 canary ^= LINUX_VERSION_CODE; in boot_init_stack_canary()
39 current->stack_canary = canary; in boot_init_stack_canary()
/Linux-v5.10/arch/x86/platform/pvh/
Dhead.S99 mov $_pa(canary), %eax
114 movl $_pa(canary),%ecx
170 SYM_DATA_LOCAL(canary, .fill 48, 1, 0)
/Linux-v5.10/drivers/net/ipa/
Dipa_mem.c187 __le32 *canary; in ipa_mem_config() local
202 canary = ipa->mem_virt + ipa->mem_offset + mem->offset; in ipa_mem_config()
204 *--canary = IPA_MEM_CANARY_VAL; in ipa_mem_config()
/Linux-v5.10/drivers/soc/qcom/
Dsmem.c209 u16 canary; /* bytes are the same so no swapping needed */ member
362 if (hdr->canary != SMEM_PRIVATE_CANARY) in qcom_smem_alloc_private()
377 hdr->canary = SMEM_PRIVATE_CANARY; in qcom_smem_alloc_private()
523 if (e->canary != SMEM_PRIVATE_CANARY) in qcom_smem_get_private()
543 if (e->canary != SMEM_PRIVATE_CANARY) in qcom_smem_get_private()
/Linux-v5.10/arch/x86/kernel/
Dasm-offsets_32.c58 OFFSET(stack_canary_offset, stack_canary, canary); in foo()
Dhead_32.S345 * relocation. Manually set base address in stack canary
/Linux-v5.10/arch/arm/mach-at91/
Dpm.c81 static int canary = 0xA5A5A5A5; variable
86 phys_addr_t canary; member
671 pm_bu->canary = __pa_symbol(&canary); in at91_pm_backup_init()
/Linux-v5.10/drivers/tty/serial/8250/
D8250_core.c764 unsigned char canary = 0xa5; in serial8250_suspend_port() local
765 serial_out(up, UART_SCR, canary); in serial8250_suspend_port()
766 if (serial_in(up, UART_SCR) == canary) in serial8250_suspend_port()
767 up->canary = canary; in serial8250_suspend_port()
785 up->canary = 0; in serial8250_resume_port()
D8250_port.c3305 if (up->canary && (up->canary != serial_port_in(port, UART_SCR))) { in serial8250_console_write()
3307 up->canary = 0; in serial8250_console_write()
/Linux-v5.10/include/linux/
Dserial_8250.h111 unsigned char canary; /* non-zero during system sleep member
/Linux-v5.10/Documentation/security/
Dself-protection.rst158 is the presence of a stack canary between the stack variables and the
208 It should be noted that things like the stack canary discussed earlier
218 different canary per stack) and high entropy (e.g. is the RNG actually
271 addresses or other sensitive things like canary values).
/Linux-v5.10/arch/
DKconfig528 - it has implemented a stack canary (e.g. __stack_chk_guard)
537 feature puts, at the beginning of functions, a canary value on
541 overwrite the canary, which gets detected and the attack is then
544 Functions will have the stack-protector canary logic added if they
550 On an x86 "defconfig" build, this feature adds canary checks to
560 Functions will have the stack-protector canary logic added in any
572 On an x86 "defconfig" build, this feature adds canary checks to
/Linux-v5.10/arch/arm/
DKconfig1657 bool "Use a unique stack canary value for each task"
1663 which to load the value of the stack canary, this value can only
1665 kernel's address space are forced to use the same canary value for
1669 different canary value for each task.
/Linux-v5.10/arch/powerpc/kernel/
Dasm-offsets.c86 OFFSET(PACA_CANARY, paca_struct, canary); in main()
/Linux-v5.10/arch/powerpc/xmon/
Dxmon.c2607 DUMP(p, canary, "%#-*lx"); in dump_one_paca()