Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/subr_asan.c
Show First 20 Lines • Show All 133 Lines • ▼ Show 20 Lines | kasan_init(void) | ||||
/* MD initialization. */ | /* MD initialization. */ | ||||
kasan_md_init(); | kasan_md_init(); | ||||
/* Now officially enabled. */ | /* Now officially enabled. */ | ||||
kasan_enabled = true; | kasan_enabled = true; | ||||
} | } | ||||
void | |||||
kasan_init_early(vm_offset_t stack, size_t size) | |||||
{ | |||||
kasan_md_init_early(stack, size); | |||||
} | |||||
static inline const char * | static inline const char * | ||||
kasan_code_name(uint8_t code) | kasan_code_name(uint8_t code) | ||||
{ | { | ||||
switch (code) { | switch (code) { | ||||
case KASAN_GENERIC_REDZONE: | case KASAN_GENERIC_REDZONE: | ||||
return "GenericRedZone"; | return "GenericRedZone"; | ||||
case KASAN_MALLOC_REDZONE: | case KASAN_MALLOC_REDZONE: | ||||
return "MallocRedZone"; | return "MallocRedZone"; | ||||
▲ Show 20 Lines • Show All 1,031 Lines • Show Last 20 Lines |