2017-11-01 15:07:57 +01:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2008-02-14 09:41:09 +01:00
|
|
|
#ifndef _LINUX_STACKPROTECTOR_H
|
|
|
|
|
#define _LINUX_STACKPROTECTOR_H 1
|
|
|
|
|
|
2008-02-14 09:44:08 +01:00
|
|
|
#include <linux/compiler.h>
|
|
|
|
|
#include <linux/sched.h>
|
|
|
|
|
#include <linux/random.h>
|
|
|
|
|
|
2020-03-13 14:34:57 +05:30
|
|
|
#if defined(CONFIG_STACKPROTECTOR) || defined(CONFIG_ARM64_PTR_AUTH)
|
2008-02-14 09:41:09 +01:00
|
|
|
# include <asm/stackprotector.h>
|
2008-02-14 09:42:02 +01:00
|
|
|
#else
|
|
|
|
|
static inline void boot_init_stack_canary(void)
|
|
|
|
|
{
|
|
|
|
|
}
|
2008-02-14 09:41:09 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif
|