From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DDEBC42D75E; Tue, 11 Aug 2026 12:08:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786450108; cv=none; b=u1u7UyjtOvkrW8TnAq7eQhLjojKM9+fG35+cQWNOlcPwabmRZiOV4dUc6IhF3gJv4p6+JjZspAVfdq1iMmRgxPxFzNWXLi6WMDqEmSbExtLYgfWST/lDPx3xIr0TCPZ/yWnFbCCc9JYo0TgqZ3mfwNaD8LPHWPeJ06tzhFxle/o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786450108; c=relaxed/simple; bh=nOdG3GEOAIhS+BTOXENo2dxte+PXbMMlKYJCLwWAc2g=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=up4f2USvJqdN6sZgsNd40maPUQgVQebPh1Y2T0PDEQEMAHK9nohApz+qymjzYHXkT8uDpziidEof9rVubIO4TdIF9g+IMwhloKwSKbNci5vxpDGfxW/TxYkDg8wCa7n4dojH5Qn+5V4pPxCnf5dprpAaarp/muPXJr0vIBGkYAA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=NvcAZYGj; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="NvcAZYGj" Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EC6991516; Tue, 11 Aug 2026 05:08:20 -0700 (PDT) Received: from [10.57.68.120] (unknown [10.57.68.120]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 46F423F86F; Tue, 11 Aug 2026 05:08:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1786450104; bh=nOdG3GEOAIhS+BTOXENo2dxte+PXbMMlKYJCLwWAc2g=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=NvcAZYGj7W1RZOM8r24q6SdYh94WxBwaTQurPr3Fq1AIq9cH3E/KyBRHkRihM7ZHX 7aPsCzJCZc4/29K/f2y6XEPFRlowo5i5AzLzHbK3aIDxtRNnhslfqyugbvVXfhuD1N KA01KCxZcCMbV3UETKlJXggohnqtY6JqIWBmEnLA= Message-ID: <12843f8d-8c70-477e-904b-ba775eed6345@arm.com> Date: Tue, 11 Aug 2026 13:08:16 +0100 Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC] arm64: entry: PSTATE_I_SET is leaking on pseudo NMI mode To: Will Deacon Cc: Breno Leitao , Mark Rutland , Catalin Marinas , "Peter Zijlstra (Intel)" , Jinjie Ruan , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, rmikey@meta.com, kernel-team@meta.com, Ada Couprie Diaz References: <20260807-arm64_fix-v1-1-d069ccf9d71b@debian.org> <2a97f777-d33a-4b3d-8c8c-6f6894f04c29@arm.com> <9b06f274-8db1-48e4-839e-e387c050d328@arm.com> Content-Language: en-GB From: Vladimir Murzin In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 8/11/26 12:32, Will Deacon wrote: > On Mon, Aug 10, 2026 at 05:39:52PM +0100, Vladimir Murzin wrote: >> On 8/10/26 16:05, Will Deacon wrote: >> > So we could probably hack something as you suggest, but maybe the best >>> option is to take patches 8 and 9 from your FEAT_NMI series? WDYT? >>> >> Whatever you prefer, tbh :) >> >> Patch 9 codifies my understanding of how things are expected to >> work. That said, I accept that I could be missing something, hence the >> RFC tag. > Those two look fine to me and I already took the preceding changes. > >> In case you decide to take it, we probably need to: >> >> - extend the commit message to cover Breno's report (right now, the >> commit message makes it look like a refactoring) >> >> - add Fixes tags if we want it to be backported >> >> Alternatively, I can respin the patch separately with the suggestions >> above applied - just let me know ;) > Lemme have a go at picking them up... I'll yell if it all goes horribly > wrong! > Ready, steady... :D More than happy to help if those go wrong. Cheers Vladimir > Will > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 3F357C5B56A for ; Tue, 11 Aug 2026 12:08:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:Content-Type:In-Reply-To:From:References:To:Subject :MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=TqvkAwCOsL1hVuT8GV7hCB1OxrgOjfzOsoMOW/vy4SI=; b=QLrMOVGV0ICLHm 0pMb9TW0JdaLQv8EaqQO7HAPIUd66oeeaui9gfs7Tw1BGJ4pH5HDjQSwbV+YtsfpG5C0QnmoqPE3E Pffz0fyGxhbd9v6VvDr44AQYh7n9802pDQLlrujKX/ZxCvIePWxi+7pmQE6TUcZVqveaFteROJtCu xyII3FxlHNq82UjhWrWOxK9jZ/GiDAxzxBKYG1sXh1WHtHDEmVGzcEzXTc+cbihGZR+rIL+3ktTBJ ML2rLAVmWKrbzDrrY2xhxCEPXSuJaM6GfOlsWWQ19nivYjDTlFZ/N1rePJfJvXvXnZ/YG2r1rnuhq xk8YhtvT7I5VL9UnMZGg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wtlHR-0000000DyqJ-2esk; Tue, 11 Aug 2026 12:08:29 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wtlHP-0000000Dypi-2NLx for linux-arm-kernel@lists.infradead.org; Tue, 11 Aug 2026 12:08:28 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EC6991516; Tue, 11 Aug 2026 05:08:20 -0700 (PDT) Received: from [10.57.68.120] (unknown [10.57.68.120]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 46F423F86F; Tue, 11 Aug 2026 05:08:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1786450104; bh=nOdG3GEOAIhS+BTOXENo2dxte+PXbMMlKYJCLwWAc2g=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=NvcAZYGj7W1RZOM8r24q6SdYh94WxBwaTQurPr3Fq1AIq9cH3E/KyBRHkRihM7ZHX 7aPsCzJCZc4/29K/f2y6XEPFRlowo5i5AzLzHbK3aIDxtRNnhslfqyugbvVXfhuD1N KA01KCxZcCMbV3UETKlJXggohnqtY6JqIWBmEnLA= Message-ID: <12843f8d-8c70-477e-904b-ba775eed6345@arm.com> Date: Tue, 11 Aug 2026 13:08:16 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC] arm64: entry: PSTATE_I_SET is leaking on pseudo NMI mode To: Will Deacon References: <20260807-arm64_fix-v1-1-d069ccf9d71b@debian.org> <2a97f777-d33a-4b3d-8c8c-6f6894f04c29@arm.com> <9b06f274-8db1-48e4-839e-e387c050d328@arm.com> Content-Language: en-GB From: Vladimir Murzin In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260811_050827_697222_0948CBE0 X-CRM114-Status: GOOD ( 13.91 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , rmikey@meta.com, "Peter Zijlstra \(Intel\)" , Catalin Marinas , Jinjie Ruan , kernel-team@meta.com, linux-kernel@vger.kernel.org, Breno Leitao , bpf@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 8/11/26 12:32, Will Deacon wrote: > On Mon, Aug 10, 2026 at 05:39:52PM +0100, Vladimir Murzin wrote: >> On 8/10/26 16:05, Will Deacon wrote: >> > So we could probably hack something as you suggest, but maybe the best >>> option is to take patches 8 and 9 from your FEAT_NMI series? WDYT? >>> >> Whatever you prefer, tbh :) >> >> Patch 9 codifies my understanding of how things are expected to >> work. That said, I accept that I could be missing something, hence the >> RFC tag. > Those two look fine to me and I already took the preceding changes. > >> In case you decide to take it, we probably need to: >> >> - extend the commit message to cover Breno's report (right now, the >> commit message makes it look like a refactoring) >> >> - add Fixes tags if we want it to be backported >> >> Alternatively, I can respin the patch separately with the suggestions >> above applied - just let me know ;) > Lemme have a go at picking them up... I'll yell if it all goes horribly > wrong! > Ready, steady... :D More than happy to help if those go wrong. Cheers Vladimir > Will >