From nobody Wed Jan 29 13:39:29 2025 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 4Yjjtn63p0z5mmBq; Wed, 29 Jan 2025 13:39:29 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Yjjtn5HSrz3DhP; Wed, 29 Jan 2025 13:39:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738157969; 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=yM75isXmysmKvkrkVHW0mwM1axKeSRhcoW95eFLDY+8=; b=y3MVaLdo3yagcbDZ75BidgMBsHWsxAF9WmvhsPNCbiEl8LYyMj/TeMFfwbeSC6mYVY0UmX WiXcuCm/J3U+0rgdziYUvOs+KUZZiSVA2KbJVIwI3DwYnC16KfJp+Pnk4ka9h2Owewkw8D TFEGqyT/bJPkCM7c13z52YRfAP4b9fkG+JsGjej6AFlF7MqhayWQod324uH3tEXnA/habp fmPI+Irio3y8f8JcSIUU4NWL3TkbOfX8/XMiIzPnAQb7/5B1MRh2kUgSS3CENHiY9E/qbZ 45lBm4LcXhJlgyFuXMs54/G4FZ8lo+tcJuaviEu5dKjUYMDGuw0KVTUigKeGTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738157969; 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=yM75isXmysmKvkrkVHW0mwM1axKeSRhcoW95eFLDY+8=; b=E+P1j9FLDaIrPEkf7e+Ppf6p46CUY+WF5C2wDcYj64Be33GU3RbKp5ONF+Rl8g4zn+LwXD zRQJBNwSr+HwRZ997jUZ1Rc9tg45ImKaOOXhAH6y7fgwmIs2/rSlYon6idThYm3oQbZprV WFXknv35rVnjk1TZH+toXf3ytzUgeY2CQD7+QIbViDKu3pwajM2TlCEAvqF2MAj7gXFqop EVUXzOqTjAQaoWcI6MfQ3Dvjt49gDVf0E+T8IWbUUYj+ReGe0gFlHhTG4aag5OIeBfv1pg sqrINg9QRx3eohpkIyeyWAwINxpqM/fKjSBVKtcCeMjSOtz9BnZYsSuYCR+N9g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1738157969; a=rsa-sha256; cv=none; b=Ex/WRAxkQfEN80zccKo6ZNXePQ6FR66EIW7fjnD0UbZHGrQ2RzSl7ITaECg3eg4kpcgk9k Z3ALa34+DHavT/idimgSWlRjuCgHFsfI4vKvTwOLPLePc1FrLFSPhIj8Rckzmm8tpRC5gr OlpmhEWmE98xApkgvX18VwaW4VCMU40bMT2YmjwcndscmeDs3S6uNmwK1SctwF7zNAs5JV fLN4T5Lk5LCRnRGVqNrMB93hfIm6j6zSKhlhhU8sl8VIGuGsqD9r4HZkMM3Y/t6Vfn9oMx gDDPMIyjKY4vnNPSQbYI8q2uCLUcaKJJ0jFOqkYqoo0YrCJOgidT6uCb3wpt/g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4Yjjtn4Fj9z1319; Wed, 29 Jan 2025 13:39:29 +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 50TDdTWn066077; Wed, 29 Jan 2025 13:39:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50TDdTqm066074; Wed, 29 Jan 2025 13:39:29 GMT (envelope-from git) Date: Wed, 29 Jan 2025 13:39:29 GMT Message-Id: <202501291339.50TDdTqm066074@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Alexander Leidinger Subject: git: e91117fa8ed2 - main - Improve the stack clash protection description. 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: netchild X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e91117fa8ed2d00ae520454d6fecfce8abae0664 Auto-Submitted: auto-generated The branch main has been updated by netchild: URL: https://cgit.FreeBSD.org/src/commit/?id=e91117fa8ed2d00ae520454d6fecfce8abae0664 commit e91117fa8ed2d00ae520454d6fecfce8abae0664 Author: Alexander Leidinger AuthorDate: 2025-01-29 08:32:00 +0000 Commit: Alexander Leidinger CommitDate: 2025-01-29 13:39:24 +0000 Improve the stack clash protection description. Despite not being mentioned in the docs of gcc and clang, the stack clash protection is architecture / implementation dependent. Reported by: jrtc27 --- share/man/man7/mitigations.7 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/share/man/man7/mitigations.7 b/share/man/man7/mitigations.7 index 4db6589cdcf1..c3c6ab55c480 100644 --- a/share/man/man7/mitigations.7 +++ b/share/man/man7/mitigations.7 @@ -28,7 +28,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd January 25, 2025 +.Dd January 29, 2025 .Dt MITIGATIONS 7 .Os .Sh NAME @@ -244,8 +244,9 @@ and it is possible that some applications may not function correctly. .Fx supports stack overflow protection using the Stack Smashing Protector .Pq SSP -compiler feature, -and stack clash protection. +compiler feature. +Stack clash protection is also enabled, +if supported by the compiler for the given architecture. In userland, SSP adds a per-process randomized canary at the end of every stack frame which is checked for corruption upon return from the function, and stack probing in