From nobody Fri Nov 13 21:19:16 2026 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 4jR99x10Dlz6y6Yr for ; Fri, 13 Nov 2026 21:19:17 +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) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jR99w5NQPz4tvF for ; Fri, 13 Nov 2026 21:19:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794604756; 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=iCWojehUfexYaJNW1AxnIYy9BxAN8qx5Bu95mEMWIJg=; b=Afx36J9IH0Whv94CGoLf7wrLwdlAn9KGuOMZB2vw8CqRZDzknI90rprIAgLRigsbDPBWNp DN1qBB5lKML6Jgf+XQ2s03kNunL9sdllylMZpvxUT5p5mnSEeD1kIy01yl9Mt+HVFNDXwg 58dEp0a1rAAEdBtSTATmiBnWa3N76W2JoMV7jivPJMQhUYyILmXYZIo7TOKyv+sImB6ip8 QgyGFEUG3ZP+jjBL1VQ2lJmwTL7nQFqXiMNSIULOQLt9UqBgf4iL6nBiyd+4fsJ0/hdoCk ADq3HSjWNR7iLi1846fGL+SXX7iayipBLHBwx/y3MJEQg/RZo0Dx2SDZJpJ9/g== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1794604756; b=xd1r6xH6iN+ydbjeR7aQOMOavuJ3d6Dp3i6B6F1sWdeN4Jjrrklytm7EdUEZ7z9zf6TB8h 1eKkO9k6L1am5KqQohlcHNh4fOJw4FiRCEbrbAD/Jva8yimtYeJdyaEEQHhXsgtNBTu5cZ LafW6Z/tgTfMiKYlF0AJrWpgYHVUcu6qOsxXDwK88ejch0rvsmpm7hHAjmyVFzxCrLvMdd DOlz938wK9mD6UM+EDGywb4mBcVSxu8kdtVWeUHiHltwOuWX6+sfJGjtR+AYkyFx6dIC4S 4C0iThl8mccX7G0Kf5PId0M+6lRsO3htr0CRdwHyPlOSRUI3+RsSxrITEehniQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794604756; 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=iCWojehUfexYaJNW1AxnIYy9BxAN8qx5Bu95mEMWIJg=; b=dVNag63Wo9rb3ZPWBeFZZc5sO+JoLWr2wb1wrcvVe/noIaJzxC5w/6EmX/4qQxexdp3Dr1 M79fy9/QLHUoyHqdyLYLpUv3ILK1yEEsTY7J4/n6Ztr+gjMeXuZUYY3Ge1t/QAAml7bQlo qumrFWdSackxaBXj6CO5UKnOaDJs2jznECVmAHDR9GVxS/PAOnIkzXN6bkqZ8BPstAcpo0 mEUER66gG6oWWX9dR02fie4D5pkBZq9IV+lJggSYdfbmYJe6LaZtTgi8k+Em/QVc1TfaVN RjIVmgBjCvyAmDlFIiFhHrbJchQKbAREqMJQh452t0pZxsf2KGIc1npIwEpHPw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jR99w4WGFzsWq for ; Fri, 13 Nov 2026 21:19:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 9d33 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 13 Nov 2026 21:19:16 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: cb1627e40d5c - main - kernel: Add -mindirect-branch-cs-prefix for WITH_KERNEL_RETPOLINE List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org List-Id: Commit messages for all branches of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cb1627e40d5c0c21f2f7d13e848cf6495390e777 Auto-Submitted: auto-generated Date: Fri, 13 Nov 2026 21:19:16 +0000 Message-Id: <6af77ed4.9d33.19f5aedd@gitrepo.freebsd.org> The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=cb1627e40d5c0c21f2f7d13e848cf6495390e777 commit cb1627e40d5c0c21f2f7d13e848cf6495390e777 Author: Ed Maste AuthorDate: 2026-10-22 18:21:45 +0000 Commit: Ed Maste CommitDate: 2026-11-13 21:18:58 +0000 kernel: Add -mindirect-branch-cs-prefix for WITH_KERNEL_RETPOLINE -mindirect-branch-cs-prefix adds a CS segment-override prefix (0x2e) to each call or jmp to a retpoline thunk. The CPU ignores the prefix, but it extends the instruction to six bytes instead of five. This leaves enough room for a future kernel change to patch all of the call sites at boot time to disable retpoline if not required. Support for this option arrived in GCC 12 and Clang/LLVM 16. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D61514 --- sys/conf/kern.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index 35b7a66bab49..9fb02ec78eea 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -246,7 +246,7 @@ CFLAGS+= -fstack-protector-strong # .if defined(COMPILER_FEATURES) && ${COMPILER_FEATURES:Mretpoline} != "" && \ ${MK_KERNEL_RETPOLINE} != "no" -CFLAGS+= -mretpoline-external-thunk +CFLAGS+= -mretpoline-external-thunk -mindirect-branch-cs-prefix .endif #