Message ID | 20240328-arm32-cfi-v4-8-a11046139125@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 48D87C54E64 for <linux-arm-kernel@archiver.kernel.org>; Thu, 28 Mar 2024 08:20:15 +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=+syLDRFcOK+RK+95gPftTOyXzzkKHZVJFRYBAbggkC8=; b=bh7lgieLeArN3m 5Gu6WUjN9uMUjkOX6IcJ3aftFP1brgOSXAsmfviKlXhTDJdj2ptasYTDZBLjWIw5+KIlaeoGGJC/e MxqhB30jgQ7x32BUvjIPrV/phjzCaNRiGA3oB7px7T286PWyue/dZst8i2/wnpFI20ms2/66WwsON lyiFhtbtOwW9Dmya7vcgJl9l5jURWeRGuZNhrL52OdoPAj+wJGM/umUdXP6LL1mKh5kNodBucDbK3 R3muP03p40diMHz1G9ktc/2VCVKEHF2LZ6KHWo+VgWEV8dVNsOzXZFHypqWnciuJmcxhvuQb79IHW 8bs2x6LJu9ejwqqLP/jA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpkzP-0000000D4GJ-3uG6; Thu, 28 Mar 2024 08:19:59 +0000 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpkzC-0000000D47J-3Hyt for linux-arm-kernel@lists.infradead.org; Thu, 28 Mar 2024 08:19:48 +0000 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-56c0bd07e7bso763531a12.1 for <linux-arm-kernel@lists.infradead.org>; Thu, 28 Mar 2024 01:19:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711613978; x=1712218778; 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=mMzFUnRtX62zU/R/bgMwI29QqVpyfZ4QmTH5fvJSYIA=; b=ULdDFCgjZfN03UGmJ8MB8mCFdNp9jQaRJtF0TMXkDnmod+PacC3fRwiPu2xw2vbhj6 VDlMtSlG5j6iGqcWoGYwtVs7zrFvP0/5OtgQX92mDpbzg/a6/eSSYqducO9ubMt6EF+J PDeiIovmYbd85wO4ciufWq0qo0rV/IxPR1Js4xDHGzcAOy3Lm2PDEfm1V0Wf4akerDCl yRh6d+H+o251K1duzMsJb4Gh1xnzx//NmpEM8j1LIP4lslriQJJZ+GJx+t91grI/oqPS peuWENFF60MQPKiZUF0Vjl9s7j1T8UzIv2VAomEKT4UZbL3IJ1uM4hfeXWQaRSFviIzU Y0LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711613978; x=1712218778; 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=mMzFUnRtX62zU/R/bgMwI29QqVpyfZ4QmTH5fvJSYIA=; b=b5zLanfpyyKcGUzo6fQlZmO2HZ5d7IoLAZB2hSCLCC24laUxdnF1nJy4KJR+GKgdgJ RR86GLwXVNtTiPRUL0SbLAXtZRLe8mMYpLNxSKBzBsa62j5ecbuAYSbEMcwTkbQSkL4D pRLRgbTWVgJhgqVSw3Z4p3Zx9276yVv3zbDQzE96sQ6pdqpiOush9rj1YCkciumycYyo IoApH0Vl/jIDDnHBZ8RgomxcfFYMtvEOGBXNeoG0cD/xBusStOIcsjliHsyDhL9Qhi2l mBss/6us6yxw/ZEtWavP1wjQO8WgD0WzCkmxb0fRZADN5jkbEPl5EeU60bOZvc+Z2FfF weog== X-Gm-Message-State: AOJu0YzJJi+WY+l4shY54TtS65akITXfGqjlXVxs65NnBJODHyOytNqk hOALv5zNf1mCbGgcwPNiGaFShh1m4Gpj1/9JSnS2+E1LHZLlILitAFF2hAAZOykPfw9eHxfJwbW W X-Google-Smtp-Source: AGHT+IEaiIm6wNHKHpd3YTFQrmxmooI0QpqE73ocyWy1xx61czg4HwW1mF+BVa+YpTRRA1p6sr/YZQ== X-Received: by 2002:a50:bac4:0:b0:568:180a:284b with SMTP id x62-20020a50bac4000000b00568180a284bmr1458006ede.37.1711613978491; Thu, 28 Mar 2024 01:19:38 -0700 (PDT) Received: from [192.168.1.140] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id n7-20020a509347000000b0056c24df7a78sm566397eda.5.2024.03.28.01.19.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 01:19:38 -0700 (PDT) From: Linus Walleij <linus.walleij@linaro.org> Date: Thu, 28 Mar 2024 09:19:31 +0100 Subject: [PATCH v4 8/8] ARM: Support CLANG CFI MIME-Version: 1.0 Message-Id: <20240328-arm32-cfi-v4-8-a11046139125@linaro.org> References: <20240328-arm32-cfi-v4-0-a11046139125@linaro.org> In-Reply-To: <20240328-arm32-cfi-v4-0-a11046139125@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-20240328_011946_994225_1454F9BC X-CRM114-Status: GOOD ( 11.54 ) 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
Support Control Flow Integrity (CFI) when compiling with CLANG. In the as-of-writing LLVM CLANG implementation (v17) the 32-bit ARM platform is supported by the generic CFI implementation, which isn't tailored specifically for ARM32 but works well enough to enable the feature. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+)