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