1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #include <xen/init.h>
3 #include <xen/lib.h>
4 #include <xen/random.h>
5 #include <xen/time.h>
6 
7 /*
8  * Initial value is chosen by a fair dice roll.
9  * It will be updated during boot process.
10  */
11 #if BITS_PER_LONG == 32
12 unsigned long __ro_after_init __stack_chk_guard = 0xdd2cc927UL;
13 #else
14 unsigned long __ro_after_init __stack_chk_guard = 0x2d853605a4d9a09cUL;
15 #endif
16 
17 /* SAF-13-safe compiler-called function */
__stack_chk_fail(void)18 void noreturn __stack_chk_fail(void)
19 {
20     dump_execution_state();
21     panic("Stack Protector integrity violation identified\n");
22 }
23