/kernel/linux/linux-5.10/arch/x86/include/asm/ |
H A D | stackprotector.h | 7 * returning from the function. The pattern is called stack canary 13 * On x86_64, %gs is shared by percpu area and stack canary. All 27 * As gcc requires the stack canary at %gs:20, %gs can't be managed 48 * 24 byte read-only segment initializer for stack canary. Linker 56 * Initialize the stackprotector canary value. 64 * lead to checking a modified canary value. 68 u64 canary; in boot_init_stack_canary() local 80 get_random_bytes(&canary, sizeof(canary)); in boot_init_stack_canary() 82 canary in boot_init_stack_canary() 105 unsigned long canary = (unsigned long)&per_cpu(stack_canary, cpu); setup_stack_canary_segment() local [all...] |
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
H A D | stackprotector.h | 17 * Initialize the stackprotector canary value. 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()
|
/kernel/linux/linux-5.10/arch/csky/include/asm/ |
H A D | stackprotector.h | 11 * Initialize the stackprotector canary value. 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()
|
/kernel/linux/linux-5.10/arch/sh/include/asm/ |
H A D | stackprotector.h | 11 * Initialize the stackprotector canary value. 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()
|
/kernel/linux/linux-5.10/arch/riscv/include/asm/ |
H A D | stackprotector.h | 12 * Initialize the stackprotector canary value. 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()
|
/kernel/linux/linux-5.10/arch/arm64/include/asm/ |
H A D | stackprotector.h | 7 * returning from the function. The pattern is called stack canary 10 * we cannot have a different canary value per task. 23 * Initialize the stackprotector canary value. 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()
|
/kernel/linux/linux-5.10/arch/xtensa/include/asm/ |
H A D | stackprotector.h | 8 * returning from the function. The pattern is called stack canary 11 * we cannot have a different canary value per task. 23 * Initialize the stackprotector canary value. 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()
|
/kernel/linux/linux-5.10/arch/loongarch/include/asm/ |
H A D | stackprotector.h | 7 * returning from the function. The pattern is called stack canary 10 * we cannot have a different canary value per task. 22 * Initialize the stackprotector canary value. 29 unsigned long canary; in boot_init_stack_canary() local 32 get_random_bytes(&canary, sizeof(canary)); in boot_init_stack_canary() 33 canary ^= LINUX_VERSION_CODE; in boot_init_stack_canary() 35 current->stack_canary = canary; in boot_init_stack_canary()
|
/kernel/linux/linux-5.10/arch/mips/include/asm/ |
H A D | stackprotector.h | 9 * returning from the function. The pattern is called stack canary 12 * we cannot have a different canary value per task. 24 * Initialize the stackprotector canary value. 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()
|
/kernel/linux/linux-6.6/arch/loongarch/include/asm/ |
H A D | stackprotector.h | 7 * returning from the function. The pattern is called stack canary and 21 * Initialize the stackprotector canary value. 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()
|
/kernel/linux/linux-5.10/arch/arm/include/asm/ |
H A D | stackprotector.h | 7 * returning from the function. The pattern is called stack canary 26 * Initialize the stackprotector canary value. 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()
|
/kernel/linux/linux-6.6/arch/powerpc/include/asm/ |
H A D | stackprotector.h | 15 * Initialize the stackprotector canary value. 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()
|
/kernel/linux/linux-6.6/arch/x86/include/asm/ |
H A D | stackprotector.h | 7 * returning from the function. The pattern is called stack canary 11 * The same segment is shared by percpu area and stack canary. On 15 * offset. On x86_32, the stack canary is just a regular percpu 40 * Initialize the stackprotector canary value. 48 * lead to checking a modified canary value. 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()
|
/kernel/linux/linux-6.6/arch/mips/include/asm/ |
H A D | stackprotector.h | 9 * returning from the function. The pattern is called stack canary 12 * we cannot have a different canary value per task. 21 * Initialize the stackprotector canary value. 28 unsigned long canary = get_random_canary(); in boot_init_stack_canary() local 30 current->stack_canary = canary; in boot_init_stack_canary()
|
/kernel/linux/linux-6.6/arch/csky/include/asm/ |
H A D | stackprotector.h | 8 * Initialize the stackprotector canary value. 15 unsigned long canary = get_random_canary(); in boot_init_stack_canary() local 17 current->stack_canary = canary; in boot_init_stack_canary()
|
/kernel/linux/linux-6.6/arch/arm/include/asm/ |
H A D | stackprotector.h | 7 * returning from the function. The pattern is called stack canary 23 * Initialize the stackprotector canary value. 30 unsigned long canary = get_random_canary(); in boot_init_stack_canary() local 32 current->stack_canary = canary; in boot_init_stack_canary()
|
/kernel/linux/linux-6.6/arch/sh/include/asm/ |
H A D | stackprotector.h | 8 * Initialize the stackprotector canary value. 15 unsigned long canary = get_random_canary(); in boot_init_stack_canary() local 17 current->stack_canary = canary; in boot_init_stack_canary()
|
/kernel/linux/linux-6.6/arch/riscv/include/asm/ |
H A D | stackprotector.h | 9 * Initialize the stackprotector canary value. 16 unsigned long canary = get_random_canary(); in boot_init_stack_canary() local 18 current->stack_canary = canary; in boot_init_stack_canary()
|
/kernel/linux/linux-6.6/arch/xtensa/include/asm/ |
H A D | stackprotector.h | 8 * returning from the function. The pattern is called stack canary 11 * we cannot have a different canary value per task. 20 * Initialize the stackprotector canary value. 27 unsigned long canary = get_random_canary(); in boot_init_stack_canary() local 29 current->stack_canary = canary; in boot_init_stack_canary()
|
/kernel/linux/linux-6.6/arch/arm64/include/asm/ |
H A D | stackprotector.h | 7 * returning from the function. The pattern is called stack canary 10 * we cannot have a different canary value per task. 21 * Initialize the stackprotector canary value. 29 unsigned long canary = get_random_canary(); in boot_init_stack_canary() local 31 current->stack_canary = canary; in boot_init_stack_canary()
|
/kernel/linux/linux-6.6/drivers/misc/lkdtm/ |
H A D | bugs.c | 117 /* This should trip the stack canary, not corrupt the return address. */ 127 /* Same as above but will only get a canary with -fstack-protector-strong */ 164 unsigned long *canary = (unsigned long *)stack; in __lkdtm_REPORT_STACK_CANARY() local 167 /* Do our best to find the canary in a 16 word window ... */ in __lkdtm_REPORT_STACK_CANARY() 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() 180 * If the canary doesn't match what's in the task_struct, in __lkdtm_REPORT_STACK_CANARY() 181 * we're either using a global canary or the stack frame in __lkdtm_REPORT_STACK_CANARY() 185 pr_err("FAIL: global stack canary foun in __lkdtm_REPORT_STACK_CANARY() [all...] |
/kernel/linux/linux-5.10/arch/x86/platform/pvh/ |
H A D | head.S | 97 /* Set base address in stack canary descriptor. */ 99 mov $_pa(canary), %eax 112 /* Set base address in stack canary descriptor. */ 114 movl $_pa(canary),%ecx 170 SYM_DATA_LOCAL(canary, .fill 48, 1, 0)
|
/kernel/linux/linux-6.6/arch/x86/platform/pvh/ |
H A D | head.S | 97 /* Set base address in stack canary descriptor. */ 99 mov $_pa(canary), %eax 159 SYM_DATA_LOCAL(canary, .fill 48, 1, 0)
|
/kernel/linux/linux-5.10/arch/arm/mach-at91/ |
H A D | pm.c | 81 static int canary = 0xA5A5A5A5; variable 86 phys_addr_t canary; member 686 pm_bu->canary = __pa_symbol(&canary); in at91_pm_backup_init()
|
/kernel/linux/linux-5.10/drivers/soc/qcom/ |
H A D | smem.c | 201 * @canary: magic number, must be SMEM_PRIVATE_CANARY 209 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() 393 dev_err(smem->dev, "Found invalid canary in hosts %hu:%hu partition\n", 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() 560 dev_err(smem->dev, "Found invalid canary in hosts %hu:%hu partition\n", in qcom_smem_get_private()
|