Blame view

include/linux/stackprotector.h 361 Bytes
b24413180   Greg Kroah-Hartman   License cleanup: ...
1
  /* SPDX-License-Identifier: GPL-2.0 */
9b5609fd7   Ingo Molnar   stackprotector: i...
2
3
  #ifndef _LINUX_STACKPROTECTOR_H
  #define _LINUX_STACKPROTECTOR_H 1
420594296   Ingo Molnar   x86: fix the stac...
4
5
6
  #include <linux/compiler.h>
  #include <linux/sched.h>
  #include <linux/random.h>
283215823   Amit Daniel Kachhap   arm64: initialize...
7
  #if defined(CONFIG_STACKPROTECTOR) || defined(CONFIG_ARM64_PTR_AUTH)
9b5609fd7   Ingo Molnar   stackprotector: i...
8
  # include <asm/stackprotector.h>
18aa8bb12   Ingo Molnar   stackprotector: a...
9
10
11
12
  #else
  static inline void boot_init_stack_canary(void)
  {
  }
9b5609fd7   Ingo Molnar   stackprotector: i...
13
14
15
  #endif
  
  #endif