Home
last modified time | relevance | path

Searched refs:stack_canary (Results 1 - 25 of 52) sorted by relevance

123

/kernel/linux/linux-5.10/arch/x86/include/asm/
H A Dstackprotector.h16 * fixed_percpu_data which contains stack_canary at offset 40. Userland
72 BUILD_BUG_ON(offsetof(struct fixed_percpu_data, stack_canary) != 40); 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()
96 per_cpu(fixed_percpu_data.stack_canary, cpu) = idle->stack_canary; in cpu_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, cp in setup_stack_canary_segment()
[all...]
H A Dprocessor.h446 unsigned long stack_canary; member
470 struct stack_canary { struct
474 DECLARE_PER_CPU_ALIGNED(struct stack_canary, stack_canary);
/kernel/linux/linux-6.6/arch/x86/include/asm/
H A Dstackprotector.h14 * fixed_percpu_data which contains stack_canary at the appropriate
55 BUILD_BUG_ON(offsetof(struct fixed_percpu_data, stack_canary) != 40); in boot_init_stack_canary()
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()
69 per_cpu(fixed_percpu_data.stack_canary, cpu) = idle->stack_canary; in cpu_init_stack_canary()
71 per_cpu(__stack_chk_guard, cpu) = idle->stack_canary; in cpu_init_stack_canary()
/kernel/linux/linux-5.10/arch/arm/include/asm/
H A Dstackprotector.h39 current->stack_canary = canary; in boot_init_stack_canary()
41 __stack_chk_guard = current->stack_canary; in boot_init_stack_canary()
43 current_thread_info()->stack_canary = current->stack_canary; in boot_init_stack_canary()
/kernel/linux/linux-6.6/arch/mips/include/asm/
H A Dstackprotector.h30 current->stack_canary = canary; in boot_init_stack_canary()
31 __stack_chk_guard = current->stack_canary; in boot_init_stack_canary()
/kernel/linux/linux-6.6/arch/csky/include/asm/
H A Dstackprotector.h17 current->stack_canary = canary; in boot_init_stack_canary()
18 __stack_chk_guard = current->stack_canary; in boot_init_stack_canary()
/kernel/linux/linux-6.6/arch/arm/include/asm/
H A Dstackprotector.h32 current->stack_canary = canary; in boot_init_stack_canary()
34 __stack_chk_guard = current->stack_canary; in boot_init_stack_canary()
/kernel/linux/linux-6.6/arch/sh/include/asm/
H A Dstackprotector.h17 current->stack_canary = canary; in boot_init_stack_canary()
18 __stack_chk_guard = current->stack_canary; in boot_init_stack_canary()
/kernel/linux/linux-6.6/arch/riscv/include/asm/
H A Dstackprotector.h18 current->stack_canary = canary; in boot_init_stack_canary()
20 __stack_chk_guard = current->stack_canary; in boot_init_stack_canary()
/kernel/linux/linux-6.6/arch/xtensa/include/asm/
H A Dstackprotector.h29 current->stack_canary = canary; in boot_init_stack_canary()
30 __stack_chk_guard = current->stack_canary; in boot_init_stack_canary()
/kernel/linux/linux-5.10/arch/xtensa/include/asm/
H A Dstackprotector.h36 current->stack_canary = canary; in boot_init_stack_canary()
37 __stack_chk_guard = current->stack_canary; in boot_init_stack_canary()
/kernel/linux/linux-5.10/arch/csky/include/asm/
H A Dstackprotector.h25 current->stack_canary = canary; in boot_init_stack_canary()
26 __stack_chk_guard = current->stack_canary; in boot_init_stack_canary()
/kernel/linux/linux-5.10/arch/loongarch/include/asm/
H A Dstackprotector.h35 current->stack_canary = canary; in boot_init_stack_canary()
36 __stack_chk_guard = current->stack_canary; in boot_init_stack_canary()
/kernel/linux/linux-5.10/arch/mips/include/asm/
H A Dstackprotector.h37 current->stack_canary = canary; in boot_init_stack_canary()
38 __stack_chk_guard = current->stack_canary; in boot_init_stack_canary()
/kernel/linux/linux-5.10/arch/sh/include/asm/
H A Dstackprotector.h25 current->stack_canary = canary; in boot_init_stack_canary()
26 __stack_chk_guard = current->stack_canary; in boot_init_stack_canary()
/kernel/linux/linux-5.10/arch/riscv/include/asm/
H A Dstackprotector.h26 current->stack_canary = canary; in boot_init_stack_canary()
27 __stack_chk_guard = current->stack_canary; in boot_init_stack_canary()
/kernel/linux/linux-6.6/arch/loongarch/include/asm/
H A Dstackprotector.h34 current->stack_canary = canary; in boot_init_stack_canary()
35 __stack_chk_guard = current->stack_canary; in boot_init_stack_canary()
/kernel/linux/linux-6.6/arch/arm64/include/asm/
H A Dstackprotector.h31 current->stack_canary = canary; in boot_init_stack_canary()
33 __stack_chk_guard = current->stack_canary; in boot_init_stack_canary()
/kernel/linux/linux-5.10/arch/arm64/include/asm/
H A Dstackprotector.h38 current->stack_canary = canary; in boot_init_stack_canary()
40 __stack_chk_guard = current->stack_canary; in boot_init_stack_canary()
/kernel/linux/linux-6.6/drivers/misc/lkdtm/
H A Dbugs.c157 static unsigned long stack_canary; variable
171 if (*canary == current->stack_canary) in __lkdtm_REPORT_STACK_CANARY()
173 if (*canary == init_task.stack_canary) in __lkdtm_REPORT_STACK_CANARY()
199 stack_canary = *canary; in __lkdtm_REPORT_STACK_CANARY()
213 if (*canary == stack_canary) { in __lkdtm_REPORT_STACK_CANARY()
/kernel/linux/linux-6.6/arch/powerpc/include/asm/
H A Dstackprotector.h24 current->stack_canary = canary; in boot_init_stack_canary()
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
H A Dstackprotector.h32 current->stack_canary = canary; in boot_init_stack_canary()
/kernel/linux/linux-5.10/arch/x86/kernel/
H A Dasm-offsets_64.c62 DEFINE(stack_canary_offset, offsetof(struct fixed_percpu_data, stack_canary)); in main()
H A Dasm-offsets_32.c58 OFFSET(stack_canary_offset, stack_canary, canary); in foo()
/kernel/linux/linux-6.6/arch/x86/kernel/
H A Dasm-offsets_64.c60 OFFSET(FIXED_stack_canary, fixed_percpu_data, stack_canary); in main()

Completed in 8 milliseconds

123