From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-189.mta0.migadu.com (out-189.mta0.migadu.com [91.218.175.189]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 55E6A6F06A for ; Sun, 28 Dec 2025 14:28:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.189 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766932089; cv=none; b=iJRPYjMqnP0MZUZLUnWQjA/Z8AN5J0Oj4aodstFzSjrFF6fgUHsdYcmYbikbCBC7Tblt+hjTrQxqsJDjMjJaYpyTPkhewrqbtupFzaOixvdoBRvfDp5wRt5hcEOh3oDi+vTzY/CZKywK56YKeUGMqqUx8BToGryvQYzFSxYnoQM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766932089; c=relaxed/simple; bh=yeY3ol4KJWpG5iZKm/WP2T+sA6Lj/a2ZqrDIwSXBqhg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=HA1CB0qV9TAEccdXhhG5KQhJAQA8K6UpKAeuxGwW5GKtqt2qVz7Wm62ZTY3gEoXXYTSAdRTLaqvLKoeEUdVInmbwlZDWDYsK4pggWp5F7OeqgXr1JygfrZhNaaUaLareHq4IJ1MgDbhBNn8tYnfhbeDVIShKGTpsO09+4kCDd/Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=aoX+1MhI; arc=none smtp.client-ip=91.218.175.189 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="aoX+1MhI" Message-ID: <0c9456b1-d7c8-4a90-ac21-fa2e5ee4a170@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1766932084; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6VuClUr8e97UDqsxOYCQTdF1MGALbHzkuwduCmZ5RuM=; b=aoX+1MhIXW/q8Z6OMUlwlbSPSfFoLxTEzwR426NgOpicdDsHwqbx2LARpcfsqTCC8Aeakr xn2srohVcw9gw95qGcxkq1WNCx/EX/OcoLDVibcmGCEYQjEU0HMsaIHMhOws6LbQlgKnqS Q69+QVYvy5M0qmswM3g6srs02cv9a/o= Date: Sun, 28 Dec 2025 22:27:48 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH] arm64: Add support for TSV110 Spectre-BHB mitigation To: Jinqian Yang Cc: catalin.marinas@arm.com, will@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, wangzhou1@hisilicon.com, shenjian15@huawei.com, linuxarm@huawei.com References: <20251227092448.732059-1-yangjinqian1@huawei.com> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Zenghui Yu In-Reply-To: <20251227092448.732059-1-yangjinqian1@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 2025/12/27 17:24, Jinqian Yang wrote: > The TSV110 processor is vulnerable to the Spectre-BHB (Branch History > Buffer) attack, which can be exploited to leak information through > branch prediction side channels. This commit adds the MIDR of TSV110 > to the list for software mitigation. > > Signed-off-by: Jinqian Yang > --- > arch/arm64/kernel/proton-pack.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm64/kernel/proton-pack.c b/arch/arm64/kernel/proton-pack.c > index 80a580e019c5..b3801f532b10 100644 > --- a/arch/arm64/kernel/proton-pack.c > +++ b/arch/arm64/kernel/proton-pack.c > @@ -887,6 +887,7 @@ static u8 spectre_bhb_loop_affected(void) > MIDR_ALL_VERSIONS(MIDR_CORTEX_X2), > MIDR_ALL_VERSIONS(MIDR_NEOVERSE_N2), > MIDR_ALL_VERSIONS(MIDR_NEOVERSE_V1), > + MIDR_ALL_VERSIONS(MIDR_HISI_TSV110), > {}, > }; > static const struct midr_range spectre_bhb_k24_list[] = { Looks good, thanks! Reviewed-by: Zenghui Yu Zenghui