diff options
Diffstat (limited to 'arch/x86/include/asm/stackprotector.h')
-rw-r--r-- | arch/x86/include/asm/stackprotector.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/stackprotector.h b/arch/x86/include/asm/stackprotector.h index dcbd9bcce714..8abedf1d650e 100644 --- a/arch/x86/include/asm/stackprotector.h +++ b/arch/x86/include/asm/stackprotector.h | |||
@@ -74,6 +74,7 @@ static __always_inline void boot_init_stack_canary(void) | |||
74 | get_random_bytes(&canary, sizeof(canary)); | 74 | get_random_bytes(&canary, sizeof(canary)); |
75 | tsc = rdtsc(); | 75 | tsc = rdtsc(); |
76 | canary += tsc + (tsc << 32UL); | 76 | canary += tsc + (tsc << 32UL); |
77 | canary &= CANARY_MASK; | ||
77 | 78 | ||
78 | current->stack_canary = canary; | 79 | current->stack_canary = canary; |
79 | #ifdef CONFIG_X86_64 | 80 | #ifdef CONFIG_X86_64 |