From patchwork Mon Feb 26 08:38:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qingfang Deng X-Patchwork-Id: 1904169 X-Patchwork-Delegate: hauke@hauke-m.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=HZtIE0WJ; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=JygNOtwz; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TjvFl5N9pz23qD for ; Mon, 26 Feb 2024 19:40:27 +1100 (AEDT) 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:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=CDFRRPuVrjjKQADVOSoFy55B9SXIK6Yy+3TtX6Xo+LQ=; b=HZtIE0WJ02uE/B HEJuXa/2wwuBxi1/1DryE+S2BVLm8bBLcbsxxqfm6zl64SzgUi1w/yqJ3HmdBOQwTYAtiSmJVRznS KO0xzJxFIhFFUMf/cDWTFEfFj7mNtVWkJFiHaxEmfXODHqU2DKUkyDvP4JOvrUqyoHcf1rW+Ca9Eh VcWNa+NdP4oiPKUpC9b3680xd50bke8LliCWZu7fBY52qcgvNb5UyRkQKSj4nAmPDRxhyP+uGH9gr J56xoCOm6M6UFmxRUBqHOtFidc2HxdmjyQOla9NGVU0Qv+WKGuH8LEPwfUFXPx0uIP9MEGQdegwRC yVWb6cPyC6JzEtngqaAg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1reWW0-0000000H2yD-11RU; Mon, 26 Feb 2024 08:39:12 +0000 Received: from mail-ot1-x331.google.com ([2607:f8b0:4864:20::331]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1reWVv-0000000H2wk-3ZBl for openwrt-devel@lists.openwrt.org; Mon, 26 Feb 2024 08:39:10 +0000 Received: by mail-ot1-x331.google.com with SMTP id 46e09a7af769-6e480d8fb5eso1079534a34.1 for ; Mon, 26 Feb 2024 00:39:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708936746; x=1709541546; darn=lists.openwrt.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=/prS/MyNaHVXvLSfGpLJqYnCV4V4zoLXkX3KZCDm8Dk=; b=JygNOtwzjVAaVa2NHlvBtEN8eo41MblgK3aqvtgmY1A7LTFbFQI0divZaXZzmGfT1K /ouLu47QFSGKHuKBBYYlpKC/9gNgFBHpOpFzTvzeo6NwzFBNRQvCyDqUhtGHqzFOUBwc qipL9eiwP8BId8CxWcBGzR3jZIECLQtFgImN4HXMYbHiba+cfYSOYPNAMHijAW5sy/pf GctgkBPMXFsH7EDoJt8CQRohNcq6WdWi8rwmX4n9JanWHCA+kGqEfFunvRZXfUbP/YUV zNU6SUyc6Yp9jyehTdEVTY5fGnZ5XSbg89Qsen0QGHZuT5wC2UyMGIZYSZsjGHNFohip 9GVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708936746; x=1709541546; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/prS/MyNaHVXvLSfGpLJqYnCV4V4zoLXkX3KZCDm8Dk=; b=jHUN0RFU+AnIECmx4erFdbOwni1riLzzg53fUrSZ3aIeYATCxZ5/hi4YM9cRS7zrzm h4IvPAYHE9Er0J+UAvzkCjnY4kVPCcXYtE4MpLBSovMIBSXhHmCc2Cealxjawkifrigv +t08HvlyXELZEeOOoVQcrNLeXfMBWswrYbhsxjiKRxInx1x5Dbcyo1CUBEgSDE05pA8v 2xCxYw6PCr6ID8p7XpNY+9BFK0CKR2fnNFW3Y83EeUo5UjArna1q5P8brO3U4av5pZtu +nkOHVYVxLL5QB5cl10TDs7Rq2siRBgQjhaVtMEIM+6TZpfy+g/98dPRCVXe9dENpWNf MV5w== X-Gm-Message-State: AOJu0YwMaSEQEutl4I+S/5pzJIGIsafC+PZtyf246kDAQdOnO3spW/BJ dTgFuUJKuO6rwB/8j6+ZlT8CSYqjQny5x6Lm6qpgxoJhGiKPSF+HsLt5gpl6TRhgRUWo X-Google-Smtp-Source: AGHT+IFQt7wAuTt8Do7NoJrFJm9qv+iUFEZjKv1f02VgIskKf6em27Azjv6GBWmoT0FBb02YQJQzAA== X-Received: by 2002:a05:6830:22f8:b0:6e4:8a89:6da5 with SMTP id t24-20020a05683022f800b006e48a896da5mr6973632otc.24.1708936746262; Mon, 26 Feb 2024 00:39:06 -0800 (PST) Received: from DESKTOP-4R0U3NR.siflower.com ([2a09:bac5:6249:183c::26a:36]) by smtp.gmail.com with ESMTPSA id i5-20020a635845000000b005e4666261besm2268421pgm.50.2024.02.26.00.39.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 00:39:05 -0800 (PST) From: Qingfang Deng To: openwrt-devel@lists.openwrt.org Subject: [PATCH 1/2] treewide: disable spectre mitigation on unaffected Arm32 targets Date: Mon, 26 Feb 2024 16:38:52 +0800 Message-Id: <20240226083853.210581-1-dqfext@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240226_003908_191142_F4473CC4 X-CRM114-Status: UNSURE ( 7.72 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Cortex-A5 and Cortex-A7 are not vulnerable to any Spectre variants. Ref: https://developer.arm.com/Arm%20Security%20Center/Speculative%20Processor%20Vulnerability Signed-off-by: Qingfang Deng --- target/linux/airoha/config-5.15 | 3 ++- target/linux/at91/sama5/config [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:331 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [dqfext(at)gmail.com] -0.0 T_SCC_BODY_TEXT_LINE No description available. X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Cortex-A5 and Cortex-A7 are not vulnerable to any Spectre variants. Ref: https://developer.arm.com/Arm%20Security%20Center/Speculative%20Processor%20Vulnerability Signed-off-by: Qingfang Deng --- target/linux/airoha/config-5.15 | 3 ++- target/linux/at91/sama5/config-5.15 | 3 ++- target/linux/at91/sama7/config-5.15 | 3 ++- target/linux/bcm27xx/bcm2709/config-6.1 | 3 ++- target/linux/imx/cortexa7/config-default | 2 ++ target/linux/ipq40xx/config-6.1 | 3 ++- target/linux/layerscape/armv7/config-5.15 | 3 ++- target/linux/layerscape/armv7/config-6.1 | 3 ++- target/linux/mediatek/mt7623/config-6.1 | 3 ++- target/linux/mediatek/mt7629/config-6.1 | 3 ++- target/linux/sunxi/cortexa7/config-6.1 | 2 ++ 11 files changed, 22 insertions(+), 9 deletions(-) diff --git a/target/linux/airoha/config-5.15 b/target/linux/airoha/config-5.15 index ae6c1d5089..259ab03521 100644 --- a/target/linux/airoha/config-5.15 +++ b/target/linux/airoha/config-5.15 @@ -122,7 +122,8 @@ CONFIG_GPIO_CDEV=y CONFIG_GPIO_EN7523=y CONFIG_GPIO_GENERIC=y CONFIG_HANDLE_DOMAIN_IRQ=y -CONFIG_HARDEN_BRANCH_PREDICTOR=y +# CONFIG_HARDEN_BRANCH_HISTORY is not set +# CONFIG_HARDEN_BRANCH_PREDICTOR is not set CONFIG_HARDIRQS_SW_RESEND=y CONFIG_HAS_DMA=y CONFIG_HAS_IOMEM=y diff --git a/target/linux/at91/sama5/config-5.15 b/target/linux/at91/sama5/config-5.15 index 3e51deb98e..47596039c8 100644 --- a/target/linux/at91/sama5/config-5.15 +++ b/target/linux/at91/sama5/config-5.15 @@ -192,7 +192,8 @@ CONFIG_GLOB=y CONFIG_GPIOLIB_IRQCHIP=y CONFIG_GPIO_CDEV=y CONFIG_HANDLE_DOMAIN_IRQ=y -CONFIG_HARDEN_BRANCH_PREDICTOR=y +# CONFIG_HARDEN_BRANCH_HISTORY is not set +# CONFIG_HARDEN_BRANCH_PREDICTOR is not set CONFIG_HARDIRQS_SW_RESEND=y CONFIG_HAS_DMA=y CONFIG_HAS_IOMEM=y diff --git a/target/linux/at91/sama7/config-5.15 b/target/linux/at91/sama7/config-5.15 index 150059bf50..228007b8c3 100644 --- a/target/linux/at91/sama7/config-5.15 +++ b/target/linux/at91/sama7/config-5.15 @@ -181,7 +181,8 @@ CONFIG_GPIOLIB_IRQCHIP=y CONFIG_GPIO_CDEV=y CONFIG_GRACE_PERIOD=y CONFIG_HANDLE_DOMAIN_IRQ=y -CONFIG_HARDEN_BRANCH_PREDICTOR=y +# CONFIG_HARDEN_BRANCH_HISTORY is not set +# CONFIG_HARDEN_BRANCH_PREDICTOR is not set CONFIG_HARDIRQS_SW_RESEND=y CONFIG_HAS_DMA=y CONFIG_HAS_IOMEM=y diff --git a/target/linux/bcm27xx/bcm2709/config-6.1 b/target/linux/bcm27xx/bcm2709/config-6.1 index 4d307add54..58d695cff3 100644 --- a/target/linux/bcm27xx/bcm2709/config-6.1 +++ b/target/linux/bcm27xx/bcm2709/config-6.1 @@ -241,7 +241,8 @@ CONFIG_GPIO_BCM_VIRT=y CONFIG_GPIO_CDEV=y # CONFIG_GPIO_FSM is not set CONFIG_GPIO_RASPBERRYPI_EXP=y -CONFIG_HARDEN_BRANCH_PREDICTOR=y +# CONFIG_HARDEN_BRANCH_HISTORY is not set +# CONFIG_HARDEN_BRANCH_PREDICTOR is not set CONFIG_HARDIRQS_SW_RESEND=y CONFIG_HAS_DMA=y CONFIG_HAS_IOMEM=y diff --git a/target/linux/imx/cortexa7/config-default b/target/linux/imx/cortexa7/config-default index 10f23be435..9fd67a79bb 100644 --- a/target/linux/imx/cortexa7/config-default +++ b/target/linux/imx/cortexa7/config-default @@ -53,6 +53,8 @@ CONFIG_FRAMEBUFFER_CONSOLE=y CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y CONFIG_GENERIC_IRQ_EFFECTIVE_AFF_MASK=y +# CONFIG_HARDEN_BRANCH_HISTORY is not set +# CONFIG_HARDEN_BRANCH_PREDICTOR is not set CONFIG_HDMI=y CONFIG_HW_CONSOLE=y CONFIG_HW_RANDOM_IMX_RNGC=y diff --git a/target/linux/ipq40xx/config-6.1 b/target/linux/ipq40xx/config-6.1 index f14dd0a474..866d49c66f 100644 --- a/target/linux/ipq40xx/config-6.1 +++ b/target/linux/ipq40xx/config-6.1 @@ -199,7 +199,8 @@ CONFIG_GPIO_CDEV=y CONFIG_GPIO_WATCHDOG=y CONFIG_GPIO_WATCHDOG_ARCH_INITCALL=y CONFIG_GRO_CELLS=y -CONFIG_HARDEN_BRANCH_PREDICTOR=y +# CONFIG_HARDEN_BRANCH_HISTORY is not set +# CONFIG_HARDEN_BRANCH_PREDICTOR is not set CONFIG_HARDIRQS_SW_RESEND=y CONFIG_HAS_DMA=y CONFIG_HAS_IOMEM=y diff --git a/target/linux/layerscape/armv7/config-5.15 b/target/linux/layerscape/armv7/config-5.15 index 121151f58f..13f66ef0f7 100644 --- a/target/linux/layerscape/armv7/config-5.15 +++ b/target/linux/layerscape/armv7/config-5.15 @@ -261,7 +261,8 @@ CONFIG_GPIO_GENERIC_PLATFORM=y CONFIG_GPIO_MPC8XXX=y CONFIG_GPIO_MXC=y CONFIG_HANDLE_DOMAIN_IRQ=y -CONFIG_HARDEN_BRANCH_PREDICTOR=y +# CONFIG_HARDEN_BRANCH_HISTORY is not set +# CONFIG_HARDEN_BRANCH_PREDICTOR is not set CONFIG_HARDIRQS_SW_RESEND=y CONFIG_HAS_DMA=y CONFIG_HAS_IOMEM=y diff --git a/target/linux/layerscape/armv7/config-6.1 b/target/linux/layerscape/armv7/config-6.1 index d60e5824db..a4744623e4 100644 --- a/target/linux/layerscape/armv7/config-6.1 +++ b/target/linux/layerscape/armv7/config-6.1 @@ -274,7 +274,8 @@ CONFIG_GPIO_GENERIC_PLATFORM=y CONFIG_GPIO_MPC8XXX=y CONFIG_GPIO_MXC=y CONFIG_GPIO_VF610=y -CONFIG_HARDEN_BRANCH_PREDICTOR=y +# CONFIG_HARDEN_BRANCH_HISTORY is not set +# CONFIG_HARDEN_BRANCH_PREDICTOR is not set CONFIG_HARDIRQS_SW_RESEND=y CONFIG_HAS_DMA=y CONFIG_HAS_IOMEM=y diff --git a/target/linux/mediatek/mt7623/config-6.1 b/target/linux/mediatek/mt7623/config-6.1 index a083809e34..3f7c1bee16 100644 --- a/target/linux/mediatek/mt7623/config-6.1 +++ b/target/linux/mediatek/mt7623/config-6.1 @@ -262,7 +262,8 @@ CONFIG_GENERIC_TIME_VSYSCALL=y CONFIG_GENERIC_VDSO_32=y CONFIG_GPIO_CDEV=y CONFIG_GRO_CELLS=y -CONFIG_HARDEN_BRANCH_PREDICTOR=y +# CONFIG_HARDEN_BRANCH_HISTORY is not set +# CONFIG_HARDEN_BRANCH_PREDICTOR is not set CONFIG_HARDIRQS_SW_RESEND=y CONFIG_HAS_DMA=y CONFIG_HAS_IOMEM=y diff --git a/target/linux/mediatek/mt7629/config-6.1 b/target/linux/mediatek/mt7629/config-6.1 index d8dc50a67a..91d54d595e 100644 --- a/target/linux/mediatek/mt7629/config-6.1 +++ b/target/linux/mediatek/mt7629/config-6.1 @@ -146,7 +146,8 @@ CONFIG_GENERIC_TIME_VSYSCALL=y CONFIG_GENERIC_VDSO_32=y CONFIG_GPIO_CDEV=y CONFIG_GRO_CELLS=y -CONFIG_HARDEN_BRANCH_PREDICTOR=y +# CONFIG_HARDEN_BRANCH_HISTORY is not set +# CONFIG_HARDEN_BRANCH_PREDICTOR is not set CONFIG_HARDIRQS_SW_RESEND=y CONFIG_HAS_DMA=y CONFIG_HAS_IOMEM=y diff --git a/target/linux/sunxi/cortexa7/config-6.1 b/target/linux/sunxi/cortexa7/config-6.1 index e911da4c3d..eaa6b037be 100644 --- a/target/linux/sunxi/cortexa7/config-6.1 +++ b/target/linux/sunxi/cortexa7/config-6.1 @@ -4,6 +4,8 @@ CONFIG_CRYPTO_BLAKE2S_ARM=y CONFIG_CRYPTO_LIB_BLAKE2S_GENERIC=y CONFIG_DWMAC_SUN8I=y CONFIG_GRO_CELLS=y +# CONFIG_HARDEN_BRANCH_HISTORY is not set +# CONFIG_HARDEN_BRANCH_PREDICTOR is not set # CONFIG_MACH_SUN4I is not set # CONFIG_MACH_SUN5I is not set CONFIG_MDIO_BUS_MUX=y From patchwork Mon Feb 26 08:38:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qingfang Deng X-Patchwork-Id: 1904168 X-Patchwork-Delegate: hauke@hauke-m.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=hK8orH1G; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=Atn+ReGi; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TjvFd0t0tz23qD for ; Mon, 26 Feb 2024 19:40:21 +1100 (AEDT) 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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=4eh9qIxUjUUKeeR7+UPIJavL6rJNos7+gi4O6EsZUYI=; b=hK8orH1GXA8edV Fs4dzNUGWimlrWcgnM5B7WTC2B7EJ3EgAdP+EKFakl3i9uHmr3vcGcIC1kbp83CDvv+S3SfCdEf93 VZNafVtRBdraqf03ZNb1lvaMVEhqGqDKEbwViAvUnTdqXY7EVJDFnYsg026Bl6toWmC0UjPeuaGvW dCMV16/ES6TO8hmWDQ9p5ZZBQmAl/HcFdKu7eJOIiIHDZPNMS/d/QuOgxqkKLR28Qy5LTYsES3LqU 7THYCSBwPZb5mBehglcsPd/9WNM5SIAqRfJCMR1+iDrJtuuq+aERFap2wA5sgO2AhKfE0UjC/DzjG UCW0c7ZUegrNG3hVQ6LQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1reWW5-0000000H31b-1UPM; Mon, 26 Feb 2024 08:39:17 +0000 Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1reWVx-0000000H2xF-11sg for openwrt-devel@lists.openwrt.org; Mon, 26 Feb 2024 08:39:11 +0000 Received: by mail-ot1-x32b.google.com with SMTP id 46e09a7af769-6e47a2edc05so1096956a34.3 for ; Mon, 26 Feb 2024 00:39:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708936748; x=1709541548; darn=lists.openwrt.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=/0c6zRXOsvQax8LLFTnVDmh3sQlAGNnVR6GKd5LNYpc=; b=Atn+ReGivIo3in2L0/nu1th95f4VGofIKJtwyX4X9Vo8egd87PlYM907W3vXbmVmEu pejeNP0mtVOopv6UZJSTyCW9EevEFZMDfpAZlGUVJTwwAkwFn3fjkTlkjqKL6bVWS1nP /kXXZGLn5UU7waDwmHPmYO0gNGulEHFospD4SSB3Pu9tnv75yWbzqcEfss4UPxEX27OJ BIypFtIGJgnxZ3mxW1Y37kxFJCmmfGMaC4CROnX1HNlB48tkv+WYHBu+jLgPPNKf2Tzk Jt/vBmfUugdKHsaSfX4twbiM5iljO/QN5m7WyOAm+3uu07FJ+XCISUScFtFS1yi3MF7j 0y9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708936748; x=1709541548; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/0c6zRXOsvQax8LLFTnVDmh3sQlAGNnVR6GKd5LNYpc=; b=elP5/sGOC9X17tXlW/j4XqBBwBaJy0iJCZywSW07IjbjRiWoHUgTd9ksp2v93weY5Z NAu/24W3u9Zw4JF278UGyuTKdgqJ1dcXp2aTTSD3STEBWKuBn5ijliQ9G6feJfk3UUks AQIi/X10j8fmrGpR+vxRFSTA0NdCOwNDbMB4NxzyQCeCVGQB9kT9cLpHCInMu1MwHASy KPpkdKiS1Ugqoh6J9/mQAr6zfl4OoZjX2hwn5eX2EDlqxJ6F0v0X111Td8utOffydAwu bxUoWdhqpuAiy1rPX3X1F5iwEjOUbqDuQ6RTjXgpUZnTq08+E12nyhg5wuWT+MKfNX+z YuOA== X-Gm-Message-State: AOJu0Yzl0VBo+eoSigrRXJORR+ccUKRKM/S6M9XlOm795C+CsfRn+ugR 17EFqEvzME3Gr32t4ceWDvY/Y3kAojfy1hugd7nXoQ9IluXS+pihLrrDNpvOyV9Sj4sP X-Google-Smtp-Source: AGHT+IEhmAF8Aa8XEOSWK87RqN3xiWuKRRYwyi7EROXO+cXEuOFyiScbR6gMNlKNsRqPBPqeu945aw== X-Received: by 2002:a05:6830:1292:b0:6e2:d9a0:b2b0 with SMTP id z18-20020a056830129200b006e2d9a0b2b0mr6786207otp.0.1708936747858; Mon, 26 Feb 2024 00:39:07 -0800 (PST) Received: from DESKTOP-4R0U3NR.siflower.com ([2a09:bac5:6249:183c::26a:36]) by smtp.gmail.com with ESMTPSA id i5-20020a635845000000b005e4666261besm2268421pgm.50.2024.02.26.00.39.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 00:39:07 -0800 (PST) From: Qingfang Deng To: openwrt-devel@lists.openwrt.org Subject: [PATCH 2/2] treewide: disable spectre mitigation on unaffected Arm64 targets Date: Mon, 26 Feb 2024 16:38:53 +0800 Message-Id: <20240226083853.210581-2-dqfext@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240226083853.210581-1-dqfext@gmail.com> References: <20240226083853.210581-1-dqfext@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240226_003910_262687_5548911A X-CRM114-Status: UNSURE ( 7.78 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Cortex-A53 is not vulnerable to any Spectre variants. Ref: https://developer.arm.com/Arm%20Security%20Center/Speculative%20Processor%20Vulnerability Signed-off-by: Qingfang Deng --- target/linux/bcm27xx/bcm2710/config-6.1 | 1 + target/linux/bcm4908/con [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:32b listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [dqfext(at)gmail.com] -0.0 T_SCC_BODY_TEXT_LINE No description available. X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Cortex-A53 is not vulnerable to any Spectre variants. Ref: https://developer.arm.com/Arm%20Security%20Center/Speculative%20Processor%20Vulnerability Signed-off-by: Qingfang Deng --- target/linux/bcm27xx/bcm2710/config-6.1 | 1 + target/linux/bcm4908/config-5.15 | 1 + target/linux/bcm4908/config-6.1 | 1 + target/linux/mediatek/filogic/config-6.1 | 1 + target/linux/mediatek/mt7622/config-6.1 | 1 + target/linux/mvebu/cortexa53/config-6.1 | 1 + target/linux/qualcommax/config-6.1 | 1 + target/linux/sunxi/cortexa53/config-6.1 | 1 + 8 files changed, 8 insertions(+) diff --git a/target/linux/bcm27xx/bcm2710/config-6.1 b/target/linux/bcm27xx/bcm2710/config-6.1 index f29d8483f8..e5b357f2fa 100644 --- a/target/linux/bcm27xx/bcm2710/config-6.1 +++ b/target/linux/bcm27xx/bcm2710/config-6.1 @@ -303,6 +303,7 @@ CONFIG_MFD_CORE=y CONFIG_MFD_SYSCON=y CONFIG_MICROCHIP_PHY=y CONFIG_MIGRATION=y +# CONFIG_MITIGATE_SPECTRE_BRANCH_HISTORY is not set CONFIG_MMC=y # CONFIG_MMC_BCM2835 is not set CONFIG_MMC_BCM2835_DMA=y diff --git a/target/linux/bcm4908/config-5.15 b/target/linux/bcm4908/config-5.15 index 892985f7f4..b1594ea8d8 100644 --- a/target/linux/bcm4908/config-5.15 +++ b/target/linux/bcm4908/config-5.15 @@ -135,6 +135,7 @@ CONFIG_MDIO_DEVRES=y CONFIG_MEMFD_CREATE=y CONFIG_MFD_SYSCON=y CONFIG_MIGRATION=y +# CONFIG_MITIGATE_SPECTRE_BRANCH_HISTORY is not set CONFIG_MODULES_USE_ELF_RELA=y CONFIG_MTD_BRCM_U_BOOT=y CONFIG_MTD_CMDLINE_PARTS=y diff --git a/target/linux/bcm4908/config-6.1 b/target/linux/bcm4908/config-6.1 index 8311277237..086d387bc7 100644 --- a/target/linux/bcm4908/config-6.1 +++ b/target/linux/bcm4908/config-6.1 @@ -136,6 +136,7 @@ CONFIG_MDIO_DEVRES=y CONFIG_MEMFD_CREATE=y CONFIG_MFD_SYSCON=y CONFIG_MIGRATION=y +# CONFIG_MITIGATE_SPECTRE_BRANCH_HISTORY is not set CONFIG_MODULES_USE_ELF_RELA=y CONFIG_MTD_BRCM_U_BOOT=y CONFIG_MTD_CMDLINE_PARTS=y diff --git a/target/linux/mediatek/filogic/config-6.1 b/target/linux/mediatek/filogic/config-6.1 index 34aa2e76b6..276c6fe6c4 100644 --- a/target/linux/mediatek/filogic/config-6.1 +++ b/target/linux/mediatek/filogic/config-6.1 @@ -232,6 +232,7 @@ CONFIG_MEMFD_CREATE=y CONFIG_MESSAGE_LOGLEVEL_DEFAULT=7 CONFIG_MFD_SYSCON=y CONFIG_MIGRATION=y +# CONFIG_MITIGATE_SPECTRE_BRANCH_HISTORY is not set CONFIG_MMC=y CONFIG_MMC_BLOCK=y CONFIG_MMC_CQHCI=y diff --git a/target/linux/mediatek/mt7622/config-6.1 b/target/linux/mediatek/mt7622/config-6.1 index 84af474e52..f10f1f7204 100644 --- a/target/linux/mediatek/mt7622/config-6.1 +++ b/target/linux/mediatek/mt7622/config-6.1 @@ -234,6 +234,7 @@ CONFIG_MEMFD_CREATE=y CONFIG_MESSAGE_LOGLEVEL_DEFAULT=7 CONFIG_MFD_SYSCON=y CONFIG_MIGRATION=y +# CONFIG_MITIGATE_SPECTRE_BRANCH_HISTORY is not set CONFIG_MMC=y CONFIG_MMC_BLOCK=y CONFIG_MMC_CQHCI=y diff --git a/target/linux/mvebu/cortexa53/config-6.1 b/target/linux/mvebu/cortexa53/config-6.1 index 3534537b54..d8dd985365 100644 --- a/target/linux/mvebu/cortexa53/config-6.1 +++ b/target/linux/mvebu/cortexa53/config-6.1 @@ -52,6 +52,7 @@ CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000 CONFIG_MAILBOX=y # CONFIG_MAILBOX_TEST is not set CONFIG_MFD_SYSCON=y +# CONFIG_MITIGATE_SPECTRE_BRANCH_HISTORY is not set CONFIG_MMC_SDHCI_XENON=y CONFIG_MODULES_USE_ELF_RELA=y CONFIG_MVEBU_GICP=y diff --git a/target/linux/qualcommax/config-6.1 b/target/linux/qualcommax/config-6.1 index 35275ff0ce..eb46ae7cd0 100644 --- a/target/linux/qualcommax/config-6.1 +++ b/target/linux/qualcommax/config-6.1 @@ -225,6 +225,7 @@ CONFIG_MEMFD_CREATE=y # CONFIG_MFD_QCOM_RPM is not set CONFIG_MFD_SYSCON=y CONFIG_MIGRATION=y +# CONFIG_MITIGATE_SPECTRE_BRANCH_HISTORY is not set CONFIG_MMC=y CONFIG_MMC_BLOCK=y CONFIG_MMC_BLOCK_MINORS=32 diff --git a/target/linux/sunxi/cortexa53/config-6.1 b/target/linux/sunxi/cortexa53/config-6.1 index f57c664540..5331352386 100644 --- a/target/linux/sunxi/cortexa53/config-6.1 +++ b/target/linux/sunxi/cortexa53/config-6.1 @@ -52,6 +52,7 @@ CONFIG_GENERIC_MSI_IRQ_DOMAIN=y CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000 CONFIG_MDIO_BUS_MUX=y CONFIG_MICREL_PHY=y +# CONFIG_MITIGATE_SPECTRE_BRANCH_HISTORY is not set CONFIG_MODULES_USE_ELF_RELA=y CONFIG_MUSB_PIO_ONLY=y CONFIG_NEED_SG_DMA_LENGTH=y