View | Details | Raw Unified | Return to bug 249149
Collapse All | Expand All

(-)sys/amd64/conf/GENERIC (-1 / +1 lines)
Lines 108-114 Link Here
108
#options 	KCOV			# Kernel Coverage Sanitizer
108
#options 	KCOV			# Kernel Coverage Sanitizer
109
# Warning: KUBSAN can result in a kernel too large for loader to load
109
# Warning: KUBSAN can result in a kernel too large for loader to load
110
#options 	KUBSAN			# Kernel Undefined Behavior Sanitizer
110
#options 	KUBSAN			# Kernel Undefined Behavior Sanitizer
111
#options 	KCSAN			# Kernel Concurrency Sanitizer
111
options 	KCSAN			# Kernel Concurrency Sanitizer
112
112
113
# Kernel dump features.
113
# Kernel dump features.
114
options 	EKCD			# Support for encrypted kernel dumps
114
options 	EKCD			# Support for encrypted kernel dumps
(-)sys/sys/cdefs.h (+2 lines)
Lines 880-887 Link Here
880
 */
880
 */
881
#if __has_attribute(no_sanitize) && defined(__clang__)
881
#if __has_attribute(no_sanitize) && defined(__clang__)
882
#define __nosanitizeaddress	__attribute__((no_sanitize("address")))
882
#define __nosanitizeaddress	__attribute__((no_sanitize("address")))
883
#define __nosanitizethread	__attribute__((no_sanitize("thread")))
883
#else
884
#else
884
#define __nosanitizeaddress
885
#define __nosanitizeaddress
886
#define __nosanitizethread
885
#endif
887
#endif
886
888
887
/* Guard variables and structure members by lock. */
889
/* Guard variables and structure members by lock. */
(-)sys/x86/x86/local_apic.c (-3 / +3 lines)
Lines 215-221 Link Here
215
static void lapic_calibrate_initcount(struct lapic *la);
215
static void lapic_calibrate_initcount(struct lapic *la);
216
static void lapic_calibrate_deadline(struct lapic *la);
216
static void lapic_calibrate_deadline(struct lapic *la);
217
217
218
static uint32_t
218
static uint32_t __nosanitizethread
219
lapic_read32(enum LAPIC_REGISTERS reg)
219
lapic_read32(enum LAPIC_REGISTERS reg)
220
{
220
{
221
	uint32_t res;
221
	uint32_t res;
Lines 228-234 Link Here
228
	return (res);
228
	return (res);
229
}
229
}
230
230
231
static void
231
static void __nosanitizethread
232
lapic_write32(enum LAPIC_REGISTERS reg, uint32_t val)
232
lapic_write32(enum LAPIC_REGISTERS reg, uint32_t val)
233
{
233
{
234
234
Lines 241-247 Link Here
241
	}
241
	}
242
}
242
}
243
243
244
static void
244
static void __nosanitizethread
245
lapic_write32_nofence(enum LAPIC_REGISTERS reg, uint32_t val)
245
lapic_write32_nofence(enum LAPIC_REGISTERS reg, uint32_t val)
246
{
246
{
247
247

Return to bug 249149