From nobody Mon Nov 04 16:16:45 2024 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 4XhxRx6k4tz5cGtb; Mon, 04 Nov 2024 16:16:45 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhxRx51v6z4qYH; Mon, 4 Nov 2024 16:16:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730737005; 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=jsB20fJdFL4TxHtQGVKDBRv+UnpVTnqui0rMxsZ7Gkg=; b=Q3eGTMOACt6Oaz446QApCJqkRViwBB8IDvEPxpSUnBvPMoTDKmfLiyGrNb8cSust6YKT4y 1SsG6qfHbJ53kSxJJl+sGpp6t1by2KBjNNB3BUTX5lbsjgCnnJVFXMUQ+knrmY3N1hehWB nNTpXEDB1x8GYb2D2/48PkSPZf7D4uh5CJlZpSDzAmi5DXe38yJlcxpRQOMgMrdz3CIAc0 Hmx6FrU7ZlGLLfWGBoq6kTbCGFy6mL+2VhJcvswSPVfTnw0KW8RWXmoJ3Ra9M6saFKsX6d h1U8/jslzcZWbFUO96ua0g8yR8D+OhNUhdyWDM00cxi+hvGHv8FEQANl4gn/bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730737005; 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=jsB20fJdFL4TxHtQGVKDBRv+UnpVTnqui0rMxsZ7Gkg=; b=eXG/feD25i0X58dq6CjO5hvDp99Mvn9GAJ0zixlRUzY7N+Xw3M3/lJkYVNhkGv3UdFfYUr T6YOip00OUmdN93vWiOMKGrcafBxpzRpbwvyucJEciJbnmZQTwiLeRZbe8ARGXex5VEj9N 9Wm8NQC8ocWO9ZAGcYMaZAjth8wH55c2dsi7xsj8F+hp+TA2WXlU5Pv6T/J/SabHo0vYJH vSdeZzPKvRb+OHcrNa8D1vAT9JDdeJCGAfVgdzcdgqIAYVe8VKF/pExcrnS0bLo/Mhb6LY rJ3Mp4qjh+hfiFy8CMtmyFRO8rhVLxKvBkV6I3lR4Ie+FvbcibQjP+vp0Up4ig== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730737005; a=rsa-sha256; cv=none; b=TOBTab4bagK9t9bXOhb1PzTcMKP3EZ7uxnaFA2/dMdoMjfku+7IMdvrN0kZI4zqBTf12QK /9cx8b/CnQleMi9yhJp7d05ILPS7OBm9mYOf/TJxbN0kTJ+IGFZ2iTD81CfHzBd/cw9PAw wUPalyNT6i4lCBe0wTFgTGnOrAGI8CKnuXc6ocnv/Kb78+Em4p05AN/3uQiRP8Ioo6B+qP q09LOpBW0EXD2H4HGcOuItnTvzd650Mvr3fYAr/Qki4QAR4Qty8kWfOCI/NUO/ce0npHWj XJMAghKj6b8m3LToj58ZIWiY/Y4SopANL1qqVtwHAbJnIixw/THoDWYfwOsDzg== 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 4XhxRx4SNlzfpM; Mon, 4 Nov 2024 16:16:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4GGj32010590; Mon, 4 Nov 2024 16:16:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4GGjGB010587; Mon, 4 Nov 2024 16:16:45 GMT (envelope-from git) Date: Mon, 4 Nov 2024 16:16:45 GMT Message-Id: <202411041616.4A4GGjGB010587@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: 64e8a9679ead - stable/14 - mitigations.7: markup functions with Fn macro 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 64e8a9679ead6f7e2ab3617b50d5edc99f410e52 Auto-Submitted: auto-generated The branch stable/14 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=64e8a9679ead6f7e2ab3617b50d5edc99f410e52 commit 64e8a9679ead6f7e2ab3617b50d5edc99f410e52 Author: Alexander Ziaee AuthorDate: 2024-09-21 17:47:53 +0000 Commit: Mitchell Horne CommitDate: 2024-11-04 16:08:38 +0000 mitigations.7: markup functions with Fn macro + include this page in `apropos Fn=memcpy` Reviewed by: emaste MFC after: 3 days Pull Request: https://github.com/freebsd/freebsd-src/pull/1428 (cherry picked from commit 22fb46af90d62d8177bfa0f1a8e4d89efa0b1905) --- share/man/man7/mitigations.7 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/share/man/man7/mitigations.7 b/share/man/man7/mitigations.7 index 7156327a7795..0667d58c309b 100644 --- a/share/man/man7/mitigations.7 +++ b/share/man/man7/mitigations.7 @@ -288,11 +288,11 @@ When enabled, enables extra bounds checking in various functions that accept buffers to be written into. These functions currently have extra bounds checking support: -.Bl -column -offset indent "snprintf" "memmove" "strncpy" "vsnprintf" "readlink" -.It bcopy Ta bzero Ta fgets Ta getcwd Ta gets -.It memcpy Ta memmove Ta memset Ta read Ta readlink -.It snprintf Ta sprintf Ta stpcpy Ta stpncpy Ta strcat -.It strcpy Ta strncat Ta strncpy Ta vsnprintf Ta vsprintf +.Bl -column -offset indent "snprintf()" "memmove()" "strncpy()" "vsnprintf()" "readlink()" +.It Fn bcopy Ta Fn bzero Ta Fn fgets Ta Fn getcwd Ta Fn gets +.It Fn memcpy Ta Fn memmove Ta Fn memset Ta Fn read Ta Fn readlink +.It Fn snprintf Ta Fn sprintf Ta Fn stpcpy Ta Fn stpncpy Ta Fn strcat +.It Fn strcpy Ta Fn strncat Ta Fn strncpy Ta Fn vsnprintf Ta Fn vsprintf .El .Pp .Dq FORTIFY_SOURCE