From nobody Sat Oct 21 14:47:15 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SCPS34fYqz4y6Fw; Sat, 21 Oct 2023 14:47:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SCPS33tMmz4Mbk; Sat, 21 Oct 2023 14:47:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697899635; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xckaHLn/jdLBO5NKs3FQkdTAnDbZcT5OB0mO1ZmYEyc=; b=ZtdkjjDGJZRjlQ7ifrSbT+1UzglxdMIFWdodY3hxQfhFJ//966AXQ/3jvMGYiSXbKT0NrE ygeMm/AX5zuXdO8iOg0yYxcuOpKbuiEj7WJNZmHrv00k/rz6reAF8QneGmg2f3R51Ulc96 9mvknYW2XojiYai3kaCDqTlfKKwRrWisCVsIz2YuMcu6KfW/oYMPAtQVPznHnWVzWsI/Mi BdGiKu4QXVyAte6Vl1kgrJXvG0/28ZvdXCE9r7R6Fd52ra7KY0bE+YJw4J0Raemk2w3qEU lk8FfGKMnz9sy7j/Ge00nPrGx1Z8StdtcELw34ETPyyZzlnZikwYQgzXAMOEew== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697899635; a=rsa-sha256; cv=none; b=JSjcQNVW3f3c9o5XXEOwvdOkWlNCANKk890jzrR1hrAM/6TyU7XQcMZIz2CAa0kLXzjdu1 gZKVXm7A4ukbtPOb27brJH7JLJ+VHIjcJ8THIu5ashrCO1k3t2b2bWUvMunH8ZG6wlSHLo nkneL6lguh1Ba6rnJl6wP541YGC4545sz0/MuxRL4uQ5mGra89SJa7SDAW121qYnbxIYzv 9SRTHtpK/nwtAW4wjNQaBv4oLhG8+ZzFMhfTjnXtwSeh8MsxcW4eORdcyVTX2vrAr3JooK +KxxcJdDPOP+PrPeevFvyUIjjcQ19HQJHt3AQv7NfqqWc2kWMc8kdDFyBFRVfA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697899635; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xckaHLn/jdLBO5NKs3FQkdTAnDbZcT5OB0mO1ZmYEyc=; b=W2Tk/mKT6as6ZvM7ki04yUiMSb4rpXF+BHiRh5nnyVnGJNVQ43MvZ+HFGBK/mGL60Dtrmz sS98bmdtZB/SEJAQASevi1v3NPUupQFGqaCdD8b+z1qRxOKxaOXmkP+QMMaWhEXgV7/snA /grjrlp6p5qSveQ84e2nvjxXeLgGr/pZ+dQvjNUaR92IoplEJ68IKPZOESULsRvkhWhtNa HCk2lvKR+ehsbQU2FICvEnmPUfySz8jsNc9iAJLBAB6obCRqgvqQ4RKpcHJjUXZL2xuCi/ ELncLhwx4NLC4tA66csb2CvuxODOeNYzGXGlOpcZPpbbroHfWYgGHsF7qpNqGQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SCPS32rGPz4XW; Sat, 21 Oct 2023 14:47:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39LElF5V006025; Sat, 21 Oct 2023 14:47:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39LElF1b006022; Sat, 21 Oct 2023 14:47:15 GMT (envelope-from git) Date: Sat, 21 Oct 2023 14:47:15 GMT Message-Id: <202310211447.39LElF1b006022@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Zhenlei Huang Subject: git: 5de5f2de6e1d - stable/13 - kasan.9: Mention the loader tunable 'debug.kasan.disable' List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zlei X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 5de5f2de6e1d3b40557fea25d14c68135409556d Auto-Submitted: auto-generated The branch stable/13 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=5de5f2de6e1d3b40557fea25d14c68135409556d commit 5de5f2de6e1d3b40557fea25d14c68135409556d Author: Zhenlei Huang AuthorDate: 2023-10-13 14:42:34 +0000 Commit: Zhenlei Huang 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.