xref: /linux-6.15/include/linux/stackprotector.h (revision 28321582)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
29b5609fdSIngo Molnar #ifndef _LINUX_STACKPROTECTOR_H
39b5609fdSIngo Molnar #define _LINUX_STACKPROTECTOR_H 1
49b5609fdSIngo Molnar 
542059429SIngo Molnar #include <linux/compiler.h>
642059429SIngo Molnar #include <linux/sched.h>
742059429SIngo Molnar #include <linux/random.h>
842059429SIngo Molnar 
9*28321582SAmit Daniel Kachhap #if defined(CONFIG_STACKPROTECTOR) || defined(CONFIG_ARM64_PTR_AUTH)
109b5609fdSIngo Molnar # include <asm/stackprotector.h>
1118aa8bb1SIngo Molnar #else
1218aa8bb1SIngo Molnar static inline void boot_init_stack_canary(void)
1318aa8bb1SIngo Molnar {
1418aa8bb1SIngo Molnar }
159b5609fdSIngo Molnar #endif
169b5609fdSIngo Molnar 
179b5609fdSIngo Molnar #endif
18