kasan.9: A couple of fixups

- Mention GENERIC-KASAN.
- Note that the runtime was ported from NetBSD.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mark Johnston 2021-04-29 12:26:03 -04:00
parent 20e3b9d8bd
commit 420d30f5bd

View File

@ -27,15 +27,22 @@
.\" .\"
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd April 13, 2021 .Dd April 29, 2021
.Dt KASAN 9 .Dt KASAN 9
.Os .Os
.Sh NAME .Sh NAME
.Nm kasan .Nm KASAN
.Nd kernel address sanitizer .Nd Kernel Address SANitizer
.Sh SYNOPSIS .Sh SYNOPSIS
To compile KASAN into the kernel, place the following line in your kernel The
configuration file: .Pa GENERIC-KASAN
kernel configuration can be used to compile a KASAN-enabled kernel using
.Pa GENERIC
as a base configuration.
Alternately, to compile
.Nm
into the kernel, place the following line in your
kernel configuration file:
.Bd -ragged -offset indent .Bd -ragged -offset indent
.Cd "options KASAN" .Cd "options KASAN"
.Ed .Ed
@ -142,13 +149,16 @@ are equal,
.Fa code .Fa code
should be 0. should be 0.
.Sh SEE ALSO .Sh SEE ALSO
.Xr build 7 ,
.Xr malloc 9 , .Xr malloc 9 ,
.Xr memguard 9 , .Xr memguard 9 ,
.Xr redzone 9 , .Xr redzone 9 ,
.Xr uma 9 .Xr uma 9
.Sh HISTORY .Sh HISTORY
.Nm .Nm
first appeared in was ported from
.Nx
and first appeared in
.Fx 14.0 . .Fx 14.0 .
.Sh BUGS .Sh BUGS
Accesses to kernel memory outside of the kernel map are ignored by the Accesses to kernel memory outside of the kernel map are ignored by the