FreeBSD kernel kern code
stack_protector.c File Reference
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/systm.h>
#include <sys/libkern.h>
Include dependency graph for stack_protector.c:

Go to the source code of this file.

Functions

 __FBSDID ("$FreeBSD$")
 
void __stack_chk_fail (void)
 
static void __stack_chk_init (void *dummy __unused)
 
 SYSINIT (stack_chk, SI_SUB_RANDOM, SI_ORDER_ANY, __stack_chk_init, NULL)
 

Variables

long __stack_chk_guard [8] = {}
 

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ __stack_chk_fail()

void __stack_chk_fail ( void  )

Definition at line 14 of file stack_protector.c.

References panic().

Here is the call graph for this function:

◆ __stack_chk_init()

static void __stack_chk_init ( void *dummy  __unused)
static

Definition at line 21 of file stack_protector.c.

References __stack_chk_guard.

◆ SYSINIT()

SYSINIT ( stack_chk  ,
SI_SUB_RANDOM  ,
SI_ORDER_ANY  ,
__stack_chk_init  ,
NULL   
)

Variable Documentation

◆ __stack_chk_guard

long __stack_chk_guard[8] = {}

Definition at line 10 of file stack_protector.c.

Referenced by __stack_chk_init().