Path: blob/master/arch/s390/include/asm/arch-stackprotector.h
38226 views
/* SPDX-License-Identifier: GPL-2.0 */12#ifndef _ASM_S390_ARCH_STACKPROTECTOR_H3#define _ASM_S390_ARCH_STACKPROTECTOR_H45extern unsigned long __stack_chk_guard;6extern int stack_protector_debug;78void __stack_protector_apply_early(unsigned long kernel_start);9int __stack_protector_apply(unsigned long *start, unsigned long *end, unsigned long kernel_start);1011static inline void stack_protector_apply_early(unsigned long kernel_start)12{13if (IS_ENABLED(CONFIG_STACKPROTECTOR))14__stack_protector_apply_early(kernel_start);15}1617static inline int stack_protector_apply(unsigned long *start, unsigned long *end)18{19if (IS_ENABLED(CONFIG_STACKPROTECTOR))20return __stack_protector_apply(start, end, 0);21return 0;22}2324#endif /* _ASM_S390_ARCH_STACKPROTECTOR_H */252627