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 7C469ECE57A for ; Tue, 10 Sep 2024 15:00:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=nLFIz/C0bK3TalVmot/xJOD0eOCrQaV9Xkyk8kU+U/g=; b=thMD0kY+ZWXusk3vDdibZLouMk /RvMXUdHjh0Q2hzxa629rOvktmT4Jzw2d6B/iGM9sjz0N5AM81IcCI7fz346E0hSLC8MvOHdYcWDj pIKXc8W/9C1UGBk+nvSrFFqb+wYFXR1m6rLSXK9M6JS1iHfLn1n0OHOD1K5JZf8S7OY8t7iThyqee o2lXh/vFWoYhoXf83WHMNktR+LL8PxmPITtEbD1c4mg95eu5Uk1FNAuZhLKZ/zR4na8Ap0kF85Z07 +42tHPNxUGB/u3rj2eb37UZJ+giJMANU+vlvL1sVsRfk29cuKVvwUFPM2IU3gzHcwbbOQbFwcj2qR CErYyNQg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1so2Ly-00000005yGs-0str; Tue, 10 Sep 2024 15:00:26 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1so2Kv-00000005y1O-29sy for linux-arm-kernel@lists.infradead.org; Tue, 10 Sep 2024 14:59:22 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 6C8E95C0158; Tue, 10 Sep 2024 14:59:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B4A8C4CEC3; Tue, 10 Sep 2024 14:59:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1725980359; bh=Lrx/5jAbHLPm9ax3OCUOQ4rhjphqnV8DOZgUPtKabWY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Th+oJit/xNhK/Iy7kmDvV5yjWLel6iBuSug8TFAFcQpG+1LNprEpU3NmxvQtXiYAQ 6jP0p9zN2bHklhqKbFmpTrXg8CUl6uh9u48VCPXmIdffLQz/kG0sa4vnqpGiOIOIJa Z5hfOW9IEvJa7hCzExqvElHRfW9Ko67oLwpjHWfKST796SA5Xx4lQOvHuviz2ZgTlY sMTFlpg69KQwoAFdfFuOXRMkRnOuFZKZdPQlG5IRnAXqqLjXg5f1OxPyKgUE7FIylL bdw+bdjcZ+v3SOeUi+kG9kvVLMINUTFtxVD5rYratBI9pAlMq3FiRbLP0Hsc20ueTx CTLk5wwaLWLkA== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1so2Kq-00Bm8p-Up; Tue, 10 Sep 2024 15:59:17 +0100 Date: Tue, 10 Sep 2024 15:59:15 +0100 Message-ID: <86tten7dx8.wl-maz@kernel.org> From: Marc Zyngier To: Will Deacon Cc: Catalin Marinas , Anastasia Belova , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, lvc-project@linuxtesting.org, stable@vger.kernel.org Subject: Re: [PATCH v2] arm64: KVM: define ESR_ELx_EC_* constants as UL In-Reply-To: <20240910094746.GA20813@willie-the-truck> References: <865xr5856r.wl-maz@kernel.org> <20240910085016.32120-1-abelova@astralinux.ru> <86v7z37u5a.wl-maz@kernel.org> <20240910094746.GA20813@willie-the-truck> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/29.4 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: will@kernel.org, catalin.marinas@arm.com, abelova@astralinux.ru, oliver.upton@linux.dev, james.morse@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, lvc-project@linuxtesting.org, stable@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240910_075921_677138_7C666D31 X-CRM114-Status: GOOD ( 26.52 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, 10 Sep 2024 10:47:46 +0100, Will Deacon wrote: > > On Tue, Sep 10, 2024 at 10:08:49AM +0100, Marc Zyngier wrote: > > On Tue, 10 Sep 2024 09:50:16 +0100, > > Anastasia Belova wrote: > > > > > > Add explicit casting to prevent expantion of 32th bit of > > > u32 into highest half of u64 in several places. > > > > > > For example, in inject_abt64: > > > ESR_ELx_EC_DABT_LOW << ESR_ELx_EC_SHIFT = 0x24 << 26. > > > This operation's result is int with 1 in 32th bit. > > > While casting this value into u64 (esr is u64) 1 > > > fills 32 highest bits. > > > > > > Found by Linux Verification Center (linuxtesting.org) with SVACE. > > > > > > Fixes: aa8eff9bfbd5 ("arm64: KVM: fault injection into a guest") > > > Signed-off-by: Anastasia Belova > > > > nit: the subject line is misleading, as this doesn't only affect KVM, > > but the whole of the arm64 port (the exception classes form a generic > > architectural construct). > > Weird, this v2 landed in my spam for some reason. > > > This also probably deserve a Cc stable. > > > > Will, Catalin: I'm happy to queue this in the KVM tree, but if you are > > taking it directly: > > > > Acked-by: Marc Zyngier > > > I can take it via arm64. I assume it's ok to land in v6.12 (with the cc: > stable), or is there an urgency to landing this in v6.11? It looks it > was found using verification tools, rather than because of an actual > issue affecting users. Yup, 6.12 is just fine. It would only affect ESR encodings that have an ISS2 in the top 32 bits, and that's only a very small number of features, most of which don't exist in HW yet. Thanks, M. -- Without deviation from the norm, progress is not possible.