Message ID | 20240423-arm32-cfi-v8-9-08f10f5d9297@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 312E8C1746D for <linux-arm-kernel@archiver.kernel.org>; Tue, 23 Apr 2024 07:20:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=n+0zN0e0a8ckeH2vrPftA52N0sGhE0Y+to19wuSm1bQ=; b=KvFO0lRYj+wRed dk4DON9AtEMWvIJoxGek0VZE++eVHLSFegPoTxP5ITPEZHZu7nYR1yTkVCJI4bmdSusSwKWgq1Ddt tqL6jFA22xC6lpbH83VVhfXjzG3UmUyOhnipOeSVabQXr40+xXEOaNlSfnYwyYP4YjUfaSZpd121A 9kx8jPtAaVR1Qp7QYrwtbCFaHz0zi2ihQmTKRGpL2jyCGpNEpDGfDAThn23xxLE4TWRp5banAzuLU Me6nKl6A0HNtV40mlbZpFY7RsLvT4o72Tawq0xaSQFA0OL2uhS0C0UmUMH71kjvN46K/vgKh5M+yY U5m45aPxQr7w8TMGFf8Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzARu-0000000GFEV-0Eck; Tue, 23 Apr 2024 07:20:18 +0000 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzARh-0000000GF99-117l for linux-arm-kernel@lists.infradead.org; Tue, 23 Apr 2024 07:20:08 +0000 Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2de233961caso1892311fa.3 for <linux-arm-kernel@lists.infradead.org>; Tue, 23 Apr 2024 00:20:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713856802; x=1714461602; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=e2+fP+WCYTyDxKS3W+3hZz5PIukWlL21rabu7CTA5No=; b=rAv5mEb5S33ZtXPBZAK9rEDL2HMMwSGZOytNc0Dydf9LZYkCQhuMGCvx6Ao5Qn1LA/ YGqE5rEhZNDsNS+hjaW0sPVDeTqq5XYZc0K41L0bhsft7RTlhNc0yqboh8YRceyRUZoF eWnh9yTfYUqSNrL9kpO1U4I1Qz/FUxe4PXoG9lka8YhRxRS3p/eZtLXEh6Fh8lEgL8uO NbBO+NCUBO0W8JJWOShwVqstUufQY9wf3gPGGsJInYerhISu2ZpeeToSrzWxolc1Dqhm BGwo+VSPVCWzCmasoPhXgdDArm4DKBB705lA/vJ42ps/otEyb3uN7yQpOZiGk2/sCSwO XgmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713856802; x=1714461602; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=e2+fP+WCYTyDxKS3W+3hZz5PIukWlL21rabu7CTA5No=; b=d7qZkXrYHvZRb0kH6XNFJow+qXAnSLo8JByQxHERTd0vf206RTrC+K63Ureh2NGJTC 716KmVL0VCk/7NBj4UGgQj5c+NxP+vnzsinhz3wlgP5FHjVk31BMVNVinQgSXaret7J6 rQhZJT7YJDDc7OZ1PlZHzdd434LrwTg8ycqz3XkGVrvXwyuwGyC8XXFqSijpdRt7CZRp wvCmSIVztvgngg5k8qSBc6RebPOPO8f8bvGXBkxo7HLnXQPWCPnJVTvai+h2PooeUWcV e/bA4vHbrU+AkICnt49y30zj9N8hPLXjtzIT5qfiCNIh1VSsnSOUw/A0XPX5tjDMmMYt ++pg== X-Gm-Message-State: AOJu0YxQudEoM1aXGWZ7dccrCMT+lI/r+HZoMXSnAWyKOUKdE/tiKOZ9 UOrypaCuTZOZPvnXmvsKO7SEZ7WlRaS216U2Ozob98BikqS1AHJqVYVtvTkhPK0= X-Google-Smtp-Source: AGHT+IGYz0O62y4kgrI0kWzdSwgcaeiQ4LZsRCR58iHsSexVvxjWUgtSPaI4/EwWyEIORXWgiQ0WFg== X-Received: by 2002:a05:6512:2203:b0:518:9183:864f with SMTP id h3-20020a056512220300b005189183864fmr12028932lfu.34.1713856802326; Tue, 23 Apr 2024 00:20:02 -0700 (PDT) Received: from [192.168.1.140] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id f13-20020a056512360d00b0051ad4552454sm1307588lfs.148.2024.04.23.00.20.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 00:20:01 -0700 (PDT) From: Linus Walleij <linus.walleij@linaro.org> Date: Tue, 23 Apr 2024 09:19:55 +0200 Subject: [PATCH v8 9/9] ARM: Support CLANG CFI MIME-Version: 1.0 Message-Id: <20240423-arm32-cfi-v8-9-08f10f5d9297@linaro.org> References: <20240423-arm32-cfi-v8-0-08f10f5d9297@linaro.org> In-Reply-To: <20240423-arm32-cfi-v8-0-08f10f5d9297@linaro.org> To: Russell King <linux@armlinux.org.uk>, Sami Tolvanen <samitolvanen@google.com>, Kees Cook <keescook@chromium.org>, Nathan Chancellor <nathan@kernel.org>, Nick Desaulniers <ndesaulniers@google.com>, Ard Biesheuvel <ardb@kernel.org>, Arnd Bergmann <arnd@arndb.de> Cc: linux-arm-kernel@lists.infradead.org, llvm@lists.linux.dev, Linus Walleij <linus.walleij@linaro.org> X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240423_002005_426707_FF6F2C7A X-CRM114-Status: GOOD ( 11.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
CFI for ARM32 using LLVM
|
expand
|
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index b14aed3a17ab..df7bd07ad0d4 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -35,6 +35,7 @@ config ARM select ARCH_OPTIONAL_KERNEL_RWX if ARCH_HAS_STRICT_KERNEL_RWX select ARCH_OPTIONAL_KERNEL_RWX_DEFAULT if CPU_V7 select ARCH_SUPPORTS_ATOMIC_RMW + select ARCH_SUPPORTS_CFI_CLANG select ARCH_SUPPORTS_HUGETLBFS if ARM_LPAE select ARCH_SUPPORTS_PER_VMA_LOCK select ARCH_USE_BUILTIN_BSWAP