/linux-6.6.21/arch/loongarch/include/asm/ |
D | stackprotector.h | 28 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-6.6.21/arch/powerpc/include/asm/ |
D | stackprotector.h | 22 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()
|
D | paca.h | 276 unsigned long canary; member
|
/linux-6.6.21/arch/x86/include/asm/ |
D | stackprotector.h | 52 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-6.6.21/drivers/misc/lkdtm/ |
D | bugs.c | 164 unsigned long *canary = (unsigned long *)stack; in __lkdtm_REPORT_STACK_CANARY() local 169 canary = (unsigned long *)stack + i; in __lkdtm_REPORT_STACK_CANARY() 171 if (*canary == current->stack_canary) in __lkdtm_REPORT_STACK_CANARY() 173 if (*canary == init_task.stack_canary) in __lkdtm_REPORT_STACK_CANARY() 197 canary = (unsigned long *)stack + current_offset; in __lkdtm_REPORT_STACK_CANARY() 199 stack_canary = *canary; in __lkdtm_REPORT_STACK_CANARY() 213 if (*canary == stack_canary) { in __lkdtm_REPORT_STACK_CANARY()
|
/linux-6.6.21/arch/xtensa/include/asm/ |
D | stackprotector.h | 27 unsigned long canary = get_random_canary(); in boot_init_stack_canary() local 29 current->stack_canary = canary; in boot_init_stack_canary()
|
/linux-6.6.21/arch/sh/include/asm/ |
D | stackprotector.h | 15 unsigned long canary = get_random_canary(); in boot_init_stack_canary() local 17 current->stack_canary = canary; in boot_init_stack_canary()
|
/linux-6.6.21/arch/csky/include/asm/ |
D | stackprotector.h | 15 unsigned long canary = get_random_canary(); in boot_init_stack_canary() local 17 current->stack_canary = canary; in boot_init_stack_canary()
|
/linux-6.6.21/arch/mips/include/asm/ |
D | stackprotector.h | 28 unsigned long canary = get_random_canary(); in boot_init_stack_canary() local 30 current->stack_canary = canary; in boot_init_stack_canary()
|
/linux-6.6.21/arch/arm/include/asm/ |
D | stackprotector.h | 30 unsigned long canary = get_random_canary(); in boot_init_stack_canary() local 32 current->stack_canary = canary; in boot_init_stack_canary()
|
/linux-6.6.21/arch/riscv/include/asm/ |
D | stackprotector.h | 16 unsigned long canary = get_random_canary(); in boot_init_stack_canary() local 18 current->stack_canary = canary; in boot_init_stack_canary()
|
/linux-6.6.21/arch/arm64/include/asm/ |
D | stackprotector.h | 29 unsigned long canary = get_random_canary(); in boot_init_stack_canary() local 31 current->stack_canary = canary; in boot_init_stack_canary()
|
/linux-6.6.21/arch/x86/platform/pvh/ |
D | head.S | 99 mov $_pa(canary), %eax 159 SYM_DATA_LOCAL(canary, .fill 48, 1, 0)
|
/linux-6.6.21/drivers/net/ipa/ |
D | ipa_mem.c | 366 __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-6.6.21/drivers/soc/qcom/ |
D | smem.c | 225 u16 canary; /* bytes are the same so no swapping needed */ member 395 if (hdr->canary != SMEM_PRIVATE_CANARY) in qcom_smem_alloc_private() 413 hdr->canary = SMEM_PRIVATE_CANARY; in qcom_smem_alloc_private() 574 if (e->canary != SMEM_PRIVATE_CANARY) in qcom_smem_get_private() 610 if (e->canary != SMEM_PRIVATE_CANARY) in qcom_smem_get_private()
|
/linux-6.6.21/drivers/tty/serial/8250/ |
D | 8250_core.c | 791 unsigned char canary = 0xa5; in serial8250_suspend_port() local 793 serial_out(up, UART_SCR, canary); in serial8250_suspend_port() 794 if (serial_in(up, UART_SCR) == canary) in serial8250_suspend_port() 795 up->canary = canary; in serial8250_suspend_port() 813 up->canary = 0; in serial8250_resume_port()
|
D | 8250_port.c | 3420 if (up->canary && (up->canary != serial_port_in(port, UART_SCR))) { in serial8250_console_write() 3422 up->canary = 0; in serial8250_console_write()
|
/linux-6.6.21/include/linux/ |
D | serial_8250.h | 138 unsigned char canary; /* non-zero during system sleep member
|
/linux-6.6.21/Documentation/security/ |
D | self-protection.rst | 157 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-6.6.21/arch/arm/mach-at91/ |
D | pm.c | 46 phys_addr_t canary; member 185 static int canary = 0xA5A5A5A5; variable 1079 soc_pm.bu->canary = __pa_symbol(&canary); in at91_pm_backup_init()
|
/linux-6.6.21/arch/ |
D | Kconfig | 625 - it has implemented a stack canary (e.g. __stack_chk_guard) 634 feature puts, at the beginning of functions, a canary value on 638 overwrite the canary, which gets detected and the attack is then 641 Functions will have the stack-protector canary logic added if they 647 On an x86 "defconfig" build, this feature adds canary checks to 657 Functions will have the stack-protector canary logic added in any 669 On an x86 "defconfig" build, this feature adds canary checks to 1262 to the compiler, so it will attempt to add canary checks regardless
|
/linux-6.6.21/arch/powerpc/kernel/ |
D | asm-offsets.c | 84 OFFSET(PACA_CANARY, paca_struct, canary); in main()
|
/linux-6.6.21/arch/arm/ |
D | Kconfig | 1440 bool "Use a unique stack canary value for each task" 1447 which to load the value of the stack canary, this value can only 1449 kernel's address space are forced to use the same canary value for 1453 different canary value for each task.
|
/linux-6.6.21/arch/powerpc/xmon/ |
D | xmon.c | 2701 DUMP(p, canary, "%#-*lx"); in dump_one_paca()
|