1 /* SPDX-License-Identifier: GPL-2.0 */ 1 2 #ifndef __ASM_SH_STACKPROTECTOR_H 3 #define __ASM_SH_STACKPROTECTOR_H 4 5 extern unsigned long __stack_chk_guard; 6 7 /* 8 * Initialize the stackprotector canary value. 9 * 10 * NOTE: this must only be called from functio 11 * and it must always be inlined. 12 */ 13 static __always_inline void boot_init_stack_ca 14 { 15 unsigned long canary = get_random_cana 16 17 current->stack_canary = canary; 18 __stack_chk_guard = current->stack_can 19 } 20 21 #endif /* __ASM_SH_STACKPROTECTOR_H */ 22
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.