| /linux/arch/loongarch/include/asm/ |
| H A 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/tools/testing/selftests/ftrace/test.d/00basic/ |
| H A D | test_ownership.tc | 25 canary="events/timer events/timer/timer_cancel events/timer/timer_cancel/format" 59 … "events" "events/sched" "events/sched/sched_switch" "events/sched/sched_switch/enable" $canary; do 65 …for d in "." "events/sched" "events/sched/sched_switch" "events/sched/sched_switch/enable" $canary… 71 for d in "." "events/sched/sched_switch" "events/sched/sched_switch/enable" $canary; do 77 for d in "." "events/sched/sched_switch/enable" $canary; do 83 for d in "." $canary; do 99 … "events" "events/sched" "events/sched/sched_switch" "events/sched/sched_switch/enable" $canary; do
|
| /linux/arch/powerpc/include/asm/ |
| H A 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()
|
| H A D | paca.h | 272 unsigned long canary; member
|
| /linux/arch/mips/include/asm/ |
| H A 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/arch/sh/include/asm/ |
| H A 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/arch/csky/include/asm/ |
| H A 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/arch/xtensa/include/asm/ |
| H A 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/arch/arm/include/asm/ |
| H A 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/arch/riscv/include/asm/ |
| H A 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/arch/arm64/include/asm/ |
| H A 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/drivers/misc/lkdtm/ |
| H A D | bugs.c | 242 unsigned long *canary = (unsigned long *)stack; in __lkdtm_REPORT_STACK_CANARY() local 247 canary = (unsigned long *)stack + i; in __lkdtm_REPORT_STACK_CANARY() 249 if (*canary == current->stack_canary) in __lkdtm_REPORT_STACK_CANARY() 251 if (*canary == init_task.stack_canary) in __lkdtm_REPORT_STACK_CANARY() 275 canary = (unsigned long *)stack + current_offset; in __lkdtm_REPORT_STACK_CANARY() 277 stack_canary = *canary; in __lkdtm_REPORT_STACK_CANARY() 291 if (*canary == stack_canary) { in __lkdtm_REPORT_STACK_CANARY()
|
| /linux/drivers/tty/serial/8250/ |
| H A D | 8250_core.c | 589 unsigned char canary = 0xa5; in serial8250_suspend_port() local 591 serial_out(up, UART_SCR, canary); in serial8250_suspend_port() 592 if (serial_in(up, UART_SCR) == canary) in serial8250_suspend_port() 593 up->canary = canary; in serial8250_suspend_port() 611 up->canary = 0; in serial8250_resume_port()
|
| /linux/Documentation/translations/zh_CN/security/ |
| H A D | self-protection.rst | 137 (CONFIG_STACKPROTECTOR),它在函数返回前会验证栈上的“stack canary”。
|
| /linux/drivers/soc/qcom/ |
| H A D | smem.c | 225 u16 canary; /* bytes are the same so no swapping needed */ member 425 if (hdr->canary != SMEM_PRIVATE_CANARY) in qcom_smem_alloc_private() 443 hdr->canary = SMEM_PRIVATE_CANARY; in qcom_smem_alloc_private() 606 if (e->canary != SMEM_PRIVATE_CANARY) in qcom_smem_get_private() 642 if (e->canary != SMEM_PRIVATE_CANARY) in qcom_smem_get_private()
|
| /linux/include/linux/ |
| H A D | serial_8250.h | 138 unsigned char canary; /* non-zero during system sleep member
|
| /linux/Documentation/security/ |
| H A 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/arch/ |
| H A D | Kconfig | 695 - it has implemented a stack canary (e.g. __stack_chk_guard) 704 feature puts, at the beginning of functions, a canary value on 708 overwrite the canary, which gets detected and the attack is then 711 Functions will have the stack-protector canary logic added if they 717 On an x86 "defconfig" build, this feature adds canary checks to 727 Functions will have the stack-protector canary logic added in any 739 On an x86 "defconfig" build, this feature adds canary checks to 1524 to the compiler, so it will attempt to add canary checks regardless
|
| /linux/arch/powerpc/kernel/ |
| H A D | asm-offsets.c | 85 OFFSET(PACA_CANARY, paca_struct, canary); in main()
|
| /linux/arch/arm/ |
| H A D | Kconfig | 1361 bool "Use a unique stack canary value for each task" 1367 which to load the value of the stack canary, this value can only 1369 kernel's address space are forced to use the same canary value for 1373 different canary value for each task.
|