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.

Macros

#define __arraycount(__x)   (sizeof(__x) / sizeof(__x[0]))
 

Functions

 __FBSDID ("$BSDSUniX$")
 
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] = {}
 

Macro Definition Documentation

#define __arraycount (   __x)    (sizeof(__x) / sizeof(__x[0]))

Definition at line 20 of file stack_protector.c.

Referenced by __stack_chk_init().

Function Documentation

__FBSDID ( "$BSDSUniX$"  )
void __stack_chk_fail ( void  )

Definition at line 14 of file stack_protector.c.

References panic().

Here is the call graph for this function:

static void __stack_chk_init ( void *dummy  __unused)
static

Definition at line 22 of file stack_protector.c.

References __arraycount, and __stack_chk_guard.

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

Variable Documentation

long __stack_chk_guard[8] = {}

Definition at line 10 of file stack_protector.c.

Referenced by __stack_chk_init().