Message ID | 20240417-arm32-cfi-v6-11-6486385eb136@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 47D73C04FF9 for <linux-arm-kernel@archiver.kernel.org>; Wed, 17 Apr 2024 08:32:07 +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=0TbLH7wKKbrcYnx9DbMBx4XVWZuvFXrho3TkRkJPtqQ=; b=wvVlkcymKRXeHW HWGkLQJByC/xmRcHS8M8dUJe3W18ATzAgub+z6K5oAOY4Hsux14Lo4k3TD5JTdwjzv28LG/UFmc2M kJqPK9f7xE10eeCRHxEEFNe0bATZE0R6kzFhEGGmnXJlkHgJ4RdERUy/1pDFlx+9YLz89EO1fY4J7 C5uw+RgibKQYmNZwzRh5QqxdlxfIsepVvxEV4AIeVe6pHn16m1KmhzXhqLVV0e8Yg64J1BuajcIGX ARygyZgJQNaTY5KLdKYQ7n6T4m1bOt+wRGthPUUopvd1kDkD7q4fdNSZ+hA1J7BuzXYL86yvSXhtZ JyoWCZ7dOivc6VO9cgGw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rx0hm-0000000FDgL-1uOt; Wed, 17 Apr 2024 08:31:46 +0000 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rx0hI-0000000FDPf-2fAL for linux-arm-kernel@lists.infradead.org; Wed, 17 Apr 2024 08:31:23 +0000 Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-518a3e0d2e4so506385e87.0 for <linux-arm-kernel@lists.infradead.org>; Wed, 17 Apr 2024 01:31:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713342673; x=1713947473; 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=Y70OTHVL5ivIan0b4DqgD01dRiya5SKhfRNunxoXdLs=; b=ounRAVMncSnvZBqYx8Z/Raw9q/DMECgYIAWg4fZ7Nm9ir37dKSqXwBgiGlvIbjh9Wq MPSN1kG+MBmm+X1W+ZMkanhSVY1Hx6XFmejHrXVYuwBLc5bPey/48shNmFXUVG0vTXH+ sapv0YkHrpSdaHz7IrtbjdMt6TwKleKBBfWH/kiDFEQbJrjhHeW/Nfu7Zdn8ap+G13A2 +h0P/Qf4prCTQgoFeybFO23EqgnCvCi5N8Pa3cqS25GI3aDoADEQ5YdkW77DwCn+ZI7e Y2vcwqxtQ7Nsh6ejQLEToqsneB6HKkiO/08UmpxkcK3iLEGJNvtCITlDgIINpPC853so 7U7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713342673; x=1713947473; 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=Y70OTHVL5ivIan0b4DqgD01dRiya5SKhfRNunxoXdLs=; b=sumouo0fNnSOP/b+66UKtYdVtCgbt11PcHCAJX9MX8GjHR72ju6xK9dXT+Z41v2UnX lSrpYAgx/kHG2w5V21bbQoJxIvOZNBy4t//bHEjVe1hHIXJHkAu+5f58HMs70jy+/DmV nBw2b//FhwPZ8dszMAImjdQdPpBP7YMCi1dowwTDobLVRoVTn4zj1+yo+QUZITICYKxP cILwU2gA/TkR28XcbjZhkS/eNweffH7bKLGGM48bo8wMX9CQ14pUQAE9eDWbRGErXFdH eOKB/X6xcMm4eU8d7VyBlFoAPmEZLl3Vpf3rUBsTG1mD/8UQk1UUT/odkvafEF2AqUyH GINQ== X-Gm-Message-State: AOJu0YzgGiaHF0fMh+OaQ0gX4oT56MunglsB4UKVjCVaPQUYMqfsZ6D4 oyCT6MUB88z7/czNdtyPDy5W/v+MGuqvVVslmGB7Wn4XnoOMkU5qozOUsQZ2gbQ= X-Google-Smtp-Source: AGHT+IGN7KshMjL76IO2W7gDdx8lXhyK3hvTNv94FJbHVjszon/A15j/oB2hQ+dAApW8hZTk3vdPCQ== X-Received: by 2002:a19:e005:0:b0:519:1ff0:27 with SMTP id x5-20020a19e005000000b005191ff00027mr1281203lfg.22.1713342673217; Wed, 17 Apr 2024 01:31:13 -0700 (PDT) Received: from [192.168.1.140] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id d10-20020ac24c8a000000b00516d2489f16sm1873151lfl.260.2024.04.17.01.31.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 01:31:12 -0700 (PDT) From: Linus Walleij <linus.walleij@linaro.org> Date: Wed, 17 Apr 2024 10:31:00 +0200 Subject: [PATCH v6 11/11] ARM: Support CLANG CFI MIME-Version: 1.0 Message-Id: <20240417-arm32-cfi-v6-11-6486385eb136@linaro.org> References: <20240417-arm32-cfi-v6-0-6486385eb136@linaro.org> In-Reply-To: <20240417-arm32-cfi-v6-0-6486385eb136@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-20240417_013116_882262_786BD5CB X-CRM114-Status: GOOD ( 10.77 ) 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