git: 5de5f2de6e1d - stable/13 - 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:47:15 UTC
The branch stable/13 has been updated by zlei:
URL: https://cgit.FreeBSD.org/src/commit/?id=5de5f2de6e1d3b40557fea25d14c68135409556d
commit 5de5f2de6e1d3b40557fea25d14c68135409556d
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:45:45 +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)
(cherry picked from commit c878532881d639ff50fded05bca37595d8b9d00d)
---
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 9b13cf28aa59..d196ea6a218b 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 April 13, 2021
+.Dd October 13, 2023
.Dt KASAN 9
.Os
.Sh NAME
@@ -84,6 +84,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.