coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <console/console.h>
#include <symbols.h>
#include <assert.h>
#include <arch/symbols.h>
#include <asan.h>
Go to the source code of this file.
Macros | |
#define | DEFINE_ASAN_LOAD_STORE(size) |
#define | DEFINE_ASAN_SET_SHADOW(byte) |
#define | DEFINE_ASAN_REPORT_LOAD(size) |
#define | DEFINE_ASAN_REPORT_STORE(size) |
#define DEFINE_ASAN_LOAD_STORE | ( | size | ) |
#define DEFINE_ASAN_REPORT_LOAD | ( | size | ) |
#define DEFINE_ASAN_REPORT_STORE | ( | size | ) |
#define DEFINE_ASAN_SET_SHADOW | ( | byte | ) |
Definition at line 371 of file asan.c.
References _RET_IP_, addr, and check_memory_region().
Definition at line 381 of file asan.c.
References _RET_IP_, addr, and check_memory_region().
Definition at line 336 of file asan.c.
References addr, ALIGN_UP, asan_poison_shadow(), ASAN_SHADOW_SCALE_SIZE, and ASAN_USE_AFTER_SCOPE.
void __asan_register_globals | ( | struct asan_global * | globals, |
size_t | size | ||
) |
Definition at line 292 of file asan.c.
References register_global().
Definition at line 431 of file asan.c.
References _RET_IP_, addr, and asan_report().
Definition at line 436 of file asan.c.
References _RET_IP_, addr, and asan_report().
Definition at line 270 of file asan.c.
References _car_region_start, and ASAN_SHADOW_SCALE_SHIFT.
Definition at line 376 of file asan.c.
References _RET_IP_, addr, and check_memory_region().
Definition at line 386 of file asan.c.
References _RET_IP_, addr, and check_memory_region().
Definition at line 342 of file asan.c.
References addr, and asan_unpoison_shadow().
void __asan_unregister_globals | ( | struct asan_global * | globals, |
size_t | size | ||
) |
Definition at line 324 of file asan.c.
References _car_region_start, _eheap, and asan_unpoison_shadow().
Definition at line 17 of file asan.c.
References _car_region_start, addr, and ASAN_SHADOW_SCALE_SHIFT.
Referenced by asan_poison_shadow(), asan_unpoison_shadow(), find_first_bad_addr(), get_shadow_bug_type(), memory_is_poisoned_1(), memory_is_poisoned_16(), memory_is_poisoned_2_4_8(), and memory_is_poisoned_n().
Definition at line 39 of file asan.c.
References address, asan_mem_to_shadow(), and value.
Referenced by __asan_poison_stack_memory(), asan_unpoison_shadow(), and register_global().
Definition at line 224 of file asan.c.
References addr, BIOS_ERR, get_shadow_bug_type(), and printk.
Referenced by __asan_report_load_n_noabort(), __asan_report_store_n_noabort(), and check_memory_region_inline().
Definition at line 28 of file asan.c.
References _car_region_start, and ASAN_SHADOW_SCALE_SHIFT.
Referenced by check_memory_region_inline(), and get_shadow_bug_type().
Definition at line 49 of file asan.c.
References address, asan_mem_to_shadow(), asan_poison_shadow(), and ASAN_SHADOW_MASK.
Referenced by __asan_unpoison_stack_memory(), asan_init(), and register_global().
|
static |
Definition at line 92 of file asan.c.
References unlikely.
Referenced by memory_is_nonzero().
Definition at line 264 of file asan.c.
References addr, and check_memory_region_inline().
Referenced by __asan_loadN(), __asan_loadN_noabort(), __asan_storeN(), __asan_storeN_noabort(), memcpy(), memmove(), and memset().
|
static |
Definition at line 236 of file asan.c.
References _car_region_start, _eheap, addr, asan_report(), asan_shadow_to_mem(), likely, memory_is_poisoned(), and unlikely.
Referenced by check_memory_region().
DEFINE_ASAN_LOAD_STORE | ( | 1 | ) |
DEFINE_ASAN_LOAD_STORE | ( | 16 | ) |
DEFINE_ASAN_LOAD_STORE | ( | 2 | ) |
DEFINE_ASAN_LOAD_STORE | ( | 4 | ) |
DEFINE_ASAN_LOAD_STORE | ( | 8 | ) |
DEFINE_ASAN_REPORT_LOAD | ( | 1 | ) |
DEFINE_ASAN_REPORT_LOAD | ( | 16 | ) |
DEFINE_ASAN_REPORT_LOAD | ( | 2 | ) |
DEFINE_ASAN_REPORT_LOAD | ( | 4 | ) |
DEFINE_ASAN_REPORT_LOAD | ( | 8 | ) |
DEFINE_ASAN_REPORT_STORE | ( | 1 | ) |
DEFINE_ASAN_REPORT_STORE | ( | 16 | ) |
DEFINE_ASAN_REPORT_STORE | ( | 2 | ) |
DEFINE_ASAN_REPORT_STORE | ( | 4 | ) |
DEFINE_ASAN_REPORT_STORE | ( | 8 | ) |
DEFINE_ASAN_SET_SHADOW | ( | 00 | ) |
DEFINE_ASAN_SET_SHADOW | ( | f1 | ) |
DEFINE_ASAN_SET_SHADOW | ( | f2 | ) |
DEFINE_ASAN_SET_SHADOW | ( | f3 | ) |
DEFINE_ASAN_SET_SHADOW | ( | f5 | ) |
DEFINE_ASAN_SET_SHADOW | ( | f8 | ) |
Definition at line 173 of file asan.c.
References addr, asan_mem_to_shadow(), and ASAN_SHADOW_SCALE_SIZE.
Referenced by get_shadow_bug_type().
Definition at line 185 of file asan.c.
References addr, ASAN_GLOBAL_REDZONE, asan_mem_to_shadow(), ASAN_SHADOW_SCALE_SIZE, asan_shadow_to_mem(), ASAN_STACK_LEFT, ASAN_STACK_MID, ASAN_STACK_PARTIAL, ASAN_STACK_RIGHT, ASAN_USE_AFTER_SCOPE, and find_first_bad_addr().
Referenced by asan_report().
|
static |
Definition at line 105 of file asan.c.
References bytes_is_nonzero(), and unlikely.
Referenced by memory_is_poisoned_n().
|
static |
Definition at line 153 of file asan.c.
References addr, assert, memory_is_poisoned_1(), memory_is_poisoned_16(), memory_is_poisoned_2_4_8(), and memory_is_poisoned_n().
Referenced by check_memory_region_inline().
|
static |
Definition at line 59 of file asan.c.
References addr, asan_mem_to_shadow(), ASAN_SHADOW_MASK, and unlikely.
Referenced by memory_is_poisoned(), memory_is_poisoned_16(), and memory_is_poisoned_2_4_8().
|
static |
Definition at line 82 of file asan.c.
References addr, asan_mem_to_shadow(), ASAN_SHADOW_SCALE_SIZE, IS_ALIGNED, memory_is_poisoned_1(), and unlikely.
Referenced by memory_is_poisoned().
|
static |
Definition at line 71 of file asan.c.
References addr, asan_mem_to_shadow(), ASAN_SHADOW_MASK, memory_is_poisoned_1(), and unlikely.
Referenced by memory_is_poisoned().
|
static |
Definition at line 134 of file asan.c.
References addr, asan_mem_to_shadow(), ASAN_SHADOW_MASK, memory_is_nonzero(), and unlikely.
Referenced by memory_is_poisoned().
|
static |
Definition at line 281 of file asan.c.
References ALIGN_UP, ASAN_GLOBAL_REDZONE, asan_poison_shadow(), ASAN_SHADOW_SCALE_SIZE, asan_unpoison_shadow(), asan_global::beg, asan_global::size, and asan_global::size_with_redzone.
Referenced by __asan_register_globals().