subr_asan.c (35eb9b10c265a27ce1f80a6eb74887240c7f4305) | subr_asan.c (756bc3adc578077d530e7f64683d4fc8383030ce) |
---|---|
1/* $NetBSD: subr_asan.c,v 1.26 2020/09/10 14:10:46 maxv Exp $ */ 2 3/* 4 * Copyright (c) 2018-2020 Maxime Villard, m00nbsd.net 5 * All rights reserved. 6 * 7 * This code is part of the KASAN subsystem of the NetBSD kernel. 8 * --- 125 unchanged lines hidden (view full) --- 134 135 /* MD initialization. */ 136 kasan_md_init(); 137 138 /* Now officially enabled. */ 139 kasan_enabled = true; 140} 141 | 1/* $NetBSD: subr_asan.c,v 1.26 2020/09/10 14:10:46 maxv Exp $ */ 2 3/* 4 * Copyright (c) 2018-2020 Maxime Villard, m00nbsd.net 5 * All rights reserved. 6 * 7 * This code is part of the KASAN subsystem of the NetBSD kernel. 8 * --- 125 unchanged lines hidden (view full) --- 134 135 /* MD initialization. */ 136 kasan_md_init(); 137 138 /* Now officially enabled. */ 139 kasan_enabled = true; 140} 141 |
142void 143kasan_init_early(vm_offset_t stack, size_t size) 144{ 145 kasan_md_init_early(stack, size); 146} 147 |
|
142static inline const char * 143kasan_code_name(uint8_t code) 144{ 145 switch (code) { 146 case KASAN_GENERIC_REDZONE: 147 return "GenericRedZone"; 148 case KASAN_MALLOC_REDZONE: 149 return "MallocRedZone"; --- 1031 unchanged lines hidden --- | 148static inline const char * 149kasan_code_name(uint8_t code) 150{ 151 switch (code) { 152 case KASAN_GENERIC_REDZONE: 153 return "GenericRedZone"; 154 case KASAN_MALLOC_REDZONE: 155 return "MallocRedZone"; --- 1031 unchanged lines hidden --- |