aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/stackprotector.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/include/asm/stackprotector.h')
-rw-r--r--arch/x86/include/asm/stackprotector.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/stackprotector.h b/arch/x86/include/asm/stackprotector.h
index bc5fa2af112e..58505f01962f 100644
--- a/arch/x86/include/asm/stackprotector.h
+++ b/arch/x86/include/asm/stackprotector.h
@@ -72,7 +72,7 @@ static __always_inline void boot_init_stack_canary(void)
72 * on during the bootup the random pool has true entropy too. 72 * on during the bootup the random pool has true entropy too.
73 */ 73 */
74 get_random_bytes(&canary, sizeof(canary)); 74 get_random_bytes(&canary, sizeof(canary));
75 tsc = native_read_tsc(); 75 tsc = rdtsc();
76 canary += tsc + (tsc << 32UL); 76 canary += tsc + (tsc << 32UL);
77 77
78 current->stack_canary = canary; 78 current->stack_canary = canary;