Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1/* SPDX-License-Identifier: GPL-2.0 */
2
3#ifndef _ASM_S390_ARCH_STACKPROTECTOR_H
4#define _ASM_S390_ARCH_STACKPROTECTOR_H
5
6extern unsigned long __stack_chk_guard;
7extern int stack_protector_debug;
8
9void __stack_protector_apply_early(unsigned long kernel_start);
10int __stack_protector_apply(unsigned long *start, unsigned long *end, unsigned long kernel_start);
11
12static inline void stack_protector_apply_early(unsigned long kernel_start)
13{
14 if (IS_ENABLED(CONFIG_STACKPROTECTOR))
15 __stack_protector_apply_early(kernel_start);
16}
17
18static inline int stack_protector_apply(unsigned long *start, unsigned long *end)
19{
20 if (IS_ENABLED(CONFIG_STACKPROTECTOR))
21 return __stack_protector_apply(start, end, 0);
22 return 0;
23}
24
25#endif /* _ASM_S390_ARCH_STACKPROTECTOR_H */