From nobody Tue Aug 20 09:02:11 2024 X-Original-To: dev-commits-src-main@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 4Wp3Pc0tN5z5Sj66; Tue, 20 Aug 2024 09:02:12 +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 4Wp3Pc06RYz4vMQ; Tue, 20 Aug 2024 09:02:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724144532; 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=1xtxGfvbv1v2TOfro+NGN9VR+nIyc9uZb3nbmv3eh3Y=; b=Ge6j4BEk3Acuu4kNpGr5p2pYRJwpjACgpnYDr3Vm7UtBY3gziegtob9ZP9V4NdguJba0RC EF5d8vU0iw/b8nu7CAh9T7H4DtBtRKS0Gl6VDS2RU4cs2HIinyrJ9j3rbfhtnJRq9qFJN0 43ry9sB7lvQwuaDbqIdBvVCIl3qrNpVMhyhUkwPVfbttv9a/yhIY76PdCauOPdmEEc6E7v SbbRIhTlITVTEM1p6VZiNYooRslGoWGc/3ZcI2HhhjRC1afxUIk/oFT+UU6W51YG/XwAEn bEMOg5dAdnMkJSeQ6NeULqeRfX4rf680BrTjeFRjUOv9ZxhYckbw7PYUy5HG4Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724144532; a=rsa-sha256; cv=none; b=f71/bzlEsQU54j/LEpDM/SiXSpNUQb9IG390Lv0YcRlQGLDHD8W0ciAgnCfv1deoPp3+bv 1G/bEOCoRNxcNSzuYX8HoJGOgEHsd8atnhHTZr56DN3+pDCbodlK84osLrHcuJkbKzOOUc nd/Ko9/ufTYnpAwU/OykBDMFVhURqKAt2UoPBMBvo5ID8K1/x/LWtTE0k3mulGV3rMP5AO UpNwmgSJ7s2H/vQY0d0YaWWw6PIC4N7xHcvXfwySAEVRPGhnSQmuyKxBCEsEtD6W1pbQqH fhwVlYJXVgfUTDfsQHdWG3IVg6UYwDvffMqf0Te3BN8CdC7yXo9X+bRZncfzVw== 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=1724144532; 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=1xtxGfvbv1v2TOfro+NGN9VR+nIyc9uZb3nbmv3eh3Y=; b=QYCDLLEtN8BVdgLPq71lrkc1+mwxTeCGe4z6RZPjn5a135BbjtRoIXeVA+ANQTEnC/OMFj VpCkAbRC7GQ0GfnQeG3Gxgoll9L6aej9tcxkPXCpODE4+jsqlmvsewIWciYGBUVAXSQKr6 K6UgQZqxSbhoGicgYCZKqOD+1jMDa4npr+k69IxPO6JVFZaVOHZOvAkeGqUoiFZt6yfJyo XYMOW4eVkedCR0LvxFTM3eQ9ukbQZyI292eddUsHQGfcZHV527uXxMvgtQs8+3ADXhXRSa 1oLUgdMLFRPxggBOQa3vtZnPo6vJqhT6PJN0S2ZuO9KJms33TkRy1fdf5n862g== 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 4Wp3Pb6r5pztfm; Tue, 20 Aug 2024 09:02:11 +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 47K92BJI078099; Tue, 20 Aug 2024 09:02:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47K92BsJ078096; Tue, 20 Aug 2024 09:02:11 GMT (envelope-from git) Date: Tue, 20 Aug 2024 09:02:11 GMT Message-Id: <202408200902.47K92BsJ078096@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: 43e8849bc294 - main - conf: Enable BTI checking in the arm64 kernel List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 43e8849bc29414036ccaef7788de95a07ad32ab5 Auto-Submitted: auto-generated The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=43e8849bc29414036ccaef7788de95a07ad32ab5 commit 43e8849bc29414036ccaef7788de95a07ad32ab5 Author: Andrew Turner AuthorDate: 2024-08-19 12:59:49 +0000 Commit: Andrew Turner CommitDate: 2024-08-20 08:49:15 +0000 conf: Enable BTI checking in the arm64 kernel To ensure new code has BTI support make it an error to not have the BTI ELF note when linking the kernel and kernel modules. Reviewed by: kib, emaste Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D45469 --- sys/conf/kern.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index 93187d93ac63..079bd1173fad 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -143,6 +143,9 @@ CFLAGS += -mgeneral-regs-only CFLAGS += -ffixed-x18 # Build with BTI+PAC CFLAGS += -mbranch-protection=standard +.if ${LINKER_TYPE} == "lld" +LDFLAGS += -Wl,-zbti-report=error +.endif # TODO: support outline atomics CFLAGS += -mno-outline-atomics INLINE_LIMIT?= 8000