git: c878532881d6 - stable/14 - kasan.9: Mention the loader tunable 'debug.kasan.disable'
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 21 Oct 2023 14:42:55 UTC
The branch stable/14 has been updated by zlei:
URL: https://cgit.FreeBSD.org/src/commit/?id=c878532881d639ff50fded05bca37595d8b9d00d
commit c878532881d639ff50fded05bca37595d8b9d00d
Author: Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2023-10-13 14:42:34 +0000
Commit: Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2023-10-21 14:41:09 +0000
kasan.9: Mention the loader tunable 'debug.kasan.disable'
Reviewed by: markj
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D42165
(cherry picked from commit 2df97575088d2efe71d6ee136a677cf50249f96d)
---
share/man/man9/kasan.9 | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/share/man/man9/kasan.9 b/share/man/man9/kasan.9
index 1db6e187da46..209fbb06506c 100644
--- a/share/man/man9/kasan.9
+++ b/share/man/man9/kasan.9
@@ -25,7 +25,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd March 23, 2023
+.Dd October 13, 2023
.Dt KASAN 9
.Os
.Sh NAME
@@ -90,6 +90,12 @@ sysctl/tunable.
.Pp
The
.Nm
+runtime in a KASAN-configured kernel can be disabled by
+setting the loader tunable
+.Sy debug.kasan.disable=1 .
+.Pp
+The
+.Nm
runtime works by maintaining a shadow map for the kernel map.
There exists a linear mapping between addresses in the kernel map and addresses
in the shadow map.