/linux/arch/powerpc/include/asm/ |
A D | stackprotector.h | 24 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()
|
A D | paca.h | 276 unsigned long canary; member
|
/linux/arch/x86/include/asm/ |
A D | stackprotector.h | 53 u64 canary; in boot_init_stack_canary() local 65 get_random_bytes(&canary, sizeof(canary)); in boot_init_stack_canary() 67 canary += tsc + (tsc << 32UL); in boot_init_stack_canary() 68 canary &= CANARY_MASK; in boot_init_stack_canary() 70 current->stack_canary = canary; in boot_init_stack_canary() 72 this_cpu_write(fixed_percpu_data.stack_canary, canary); in boot_init_stack_canary() 74 this_cpu_write(__stack_chk_guard, canary); in boot_init_stack_canary()
|
/linux/arch/sh/include/asm/ |
A D | stackprotector.h | 18 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/arch/csky/include/asm/ |
A D | stackprotector.h | 18 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/arch/riscv/include/asm/ |
A D | stackprotector.h | 19 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/arch/arm64/include/asm/ |
A D | stackprotector.h | 31 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/arch/xtensa/include/asm/ |
A D | stackprotector.h | 30 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/arch/mips/include/asm/ |
A D | stackprotector.h | 31 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/arch/arm/include/asm/ |
A D | stackprotector.h | 33 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/drivers/misc/lkdtm/ |
A D | bugs.c | 162 unsigned long *canary = (unsigned long *)stack; in __lkdtm_REPORT_STACK_CANARY() local 167 canary = (unsigned long *)stack + i; in __lkdtm_REPORT_STACK_CANARY() 169 if (*canary == current->stack_canary) in __lkdtm_REPORT_STACK_CANARY() 171 if (*canary == init_task.stack_canary) in __lkdtm_REPORT_STACK_CANARY() 195 canary = (unsigned long *)stack + current_offset; in __lkdtm_REPORT_STACK_CANARY() 197 stack_canary = *canary; in __lkdtm_REPORT_STACK_CANARY() 211 if (*canary == stack_canary) { in __lkdtm_REPORT_STACK_CANARY()
|
/linux/arch/x86/platform/pvh/ |
A D | head.S | 98 mov $_pa(canary), %eax 158 SYM_DATA_LOCAL(canary, .fill 48, 1, 0)
|
/linux/drivers/soc/qcom/ |
A D | smem.c | 210 u16 canary; /* bytes are the same so no swapping needed */ member 364 if (hdr->canary != SMEM_PRIVATE_CANARY) in qcom_smem_alloc_private() 379 hdr->canary = SMEM_PRIVATE_CANARY; in qcom_smem_alloc_private() 525 if (e->canary != SMEM_PRIVATE_CANARY) in qcom_smem_get_private() 545 if (e->canary != SMEM_PRIVATE_CANARY) in qcom_smem_get_private()
|
/linux/drivers/tty/serial/8250/ |
A D | 8250_core.c | 754 unsigned char canary = 0xa5; in serial8250_suspend_port() local 756 serial_out(up, UART_SCR, canary); in serial8250_suspend_port() 757 if (serial_in(up, UART_SCR) == canary) in serial8250_suspend_port() 758 up->canary = canary; in serial8250_suspend_port() 776 up->canary = 0; in serial8250_resume_port()
|
A D | 8250_port.c | 3364 if (up->canary && (up->canary != serial_port_in(port, UART_SCR))) { in serial8250_console_write() 3366 up->canary = 0; in serial8250_console_write()
|
/linux/drivers/net/ipa/ |
A D | ipa_mem.c | 353 __le32 *canary; in ipa_mem_config() local 359 canary = ipa->mem_virt + ipa->mem_offset + ipa->mem[i].offset; in ipa_mem_config() 361 *--canary = IPA_MEM_CANARY_VAL; in ipa_mem_config()
|
/linux/arch/arm/mach-at91/ |
A D | pm.c | 45 phys_addr_t canary; member 130 static int canary = 0xA5A5A5A5; variable 838 soc_pm.bu->canary = __pa_symbol(&canary); in at91_pm_backup_init()
|
/linux/include/linux/ |
A D | serial_8250.h | 111 unsigned char canary; /* non-zero during system sleep member
|
/linux/Documentation/security/ |
A D | self-protection.rst | 158 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/arch/ |
A D | Kconfig | 551 - it has implemented a stack canary (e.g. __stack_chk_guard) 560 feature puts, at the beginning of functions, a canary value on 564 overwrite the canary, which gets detected and the attack is then 567 Functions will have the stack-protector canary logic added if they 573 On an x86 "defconfig" build, this feature adds canary checks to 583 Functions will have the stack-protector canary logic added in any 595 On an x86 "defconfig" build, this feature adds canary checks to 1156 to the compiler, so it will attempt to add canary checks regardless
|
/linux/arch/arm/ |
A D | Kconfig | 1612 bool "Use a unique stack canary value for each task" 1618 which to load the value of the stack canary, this value can only 1620 kernel's address space are forced to use the same canary value for 1624 different canary value for each task.
|
/linux/arch/powerpc/kernel/ |
A D | asm-offsets.c | 84 OFFSET(PACA_CANARY, paca_struct, canary); in main()
|
/linux/arch/powerpc/xmon/ |
A D | xmon.c | 2696 DUMP(p, canary, "%#-*lx"); in dump_one_paca()
|