File Index
Files and directories
Sign in
FILE

stackprotector.h

File preview with syntax highlighting.

linux-6.19.14/arch/s390/include/asm/stackprotector.h C
 1/* SPDX-License-Identifier: GPL-2.0 */
 2
 3#ifndef _ASM_S390_STACKPROTECTOR_H
 4#define _ASM_S390_STACKPROTECTOR_H
 5
 6#include <linux/sched.h>
 7#include <asm/current.h>
 8#include <asm/lowcore.h>
 9
10static __always_inline void boot_init_stack_canary(void)
11{
12	current->stack_canary = get_random_canary();
13	get_lowcore()->stack_canary = current->stack_canary;
14}
15
16#endif /* _ASM_S390_STACKPROTECTOR_H */
~/ Read-only file preview.