arch/s390/include/asm/stackprotector.h

Source file repositories/reference/linux-study-clean/arch/s390/include/asm/stackprotector.h

File Facts

System
Linux kernel
Corpus path
arch/s390/include/asm/stackprotector.h
Extension
.h
Size
389 bytes
Lines
17
Domain
Architecture Layer
Bucket
arch/s390
Inferred role
Architecture Layer: implementation source
Status
source implementation candidate

Why This File Exists

CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef _ASM_S390_STACKPROTECTOR_H
#define _ASM_S390_STACKPROTECTOR_H

#include <linux/sched.h>
#include <asm/current.h>
#include <asm/lowcore.h>

static __always_inline void boot_init_stack_canary(void)
{
	current->stack_canary = get_random_canary();
	get_lowcore()->stack_canary = current->stack_canary;
}

#endif /* _ASM_S390_STACKPROTECTOR_H */

Annotation

Implementation Notes