From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 1EDB523748; Mon, 3 Jun 2024 12:09:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717416596; cv=none; b=HFXuVGnmKLPpUvoEdGoGfb8JUxkslV6cvmUSDnmOmN/FH0lubAJbCDFnw/OncHxE9q7uMlT6fkRRl/iZKvRsCqoVbdFAAQ17YeQNNoKSbBQ84bcp9GyJqYsuhK9bad/yn1td0BRScKmTcUfzBjU6XvIX1T3uFyvjavcivzA2oIo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717416596; c=relaxed/simple; bh=pveUAptlefXNqpWMSt35a59/LhTlwbpd8/9PaZ7bx2c=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=kmKXoNwO5KVTDYD0tjw7r1Ow89VRIxc9DHoQ2oXjcD4fbioQJcqjGXHuU0PFxqfLX1MZdNIjmSMNGLTHH0emr3XhDhfqjTOHLELfh9pkpxV6IYc5wHwW5TbXtT2G5zN8TmjIss5IVvPQV9uVoiY7syvdXhGyCTLbbgUVtFdllNE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HT0ydrh6; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HT0ydrh6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3E59C32789; Mon, 3 Jun 2024 12:09:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717416596; bh=pveUAptlefXNqpWMSt35a59/LhTlwbpd8/9PaZ7bx2c=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=HT0ydrh6cA3/WAi2MBQoI/IRaQ2wLvD6I6ZqYsdO1bI06z9Pu4F9wMYtcaZV1LY3k eXVCGuIfyKln3H9rs23YSpAV8Nw7r3mGT5wEPSYUc8hNDF+oDz3+BgE1EXtOQNYjDv yxD+wU5hV3w+yTY25S1U6HL5rs0zMexf63u7Eb70/IA8sXjH3KHSESsi8NcfPylfl3 9DDjBufvztLetZUqDvv6Zfr3BI//BYyzqthIkHyK2G0U8Lm4gJF3roKL/U3J4fNLJf etJRKiUzxtstcSikAuNdOvjRJ8X2PI3b5xIHUa0IDbRybotSRxZbD6uHLasrLPNmrv Lwa2A+JYRXm7A== 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 1sE6Vd-000DNA-JP; Mon, 03 Jun 2024 13:09:53 +0100 Date: Mon, 03 Jun 2024 13:09:52 +0100 Message-ID: <86mso2kz1r.wl-maz@kernel.org> From: Marc Zyngier To: stable@vger.kernel.org Cc: stable-commits@vger.kernel.org, Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Catalin Marinas , Will Deacon Subject: Re: Patch "KVM: arm64: nv: Add sanitising to VNCR-backed sysregs" has been added to the 6.8-stable tree In-Reply-To: <20240603115255.1829330-1-sashal@kernel.org> References: <20240603115255.1829330-1-sashal@kernel.org> 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.2 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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: stable@vger.kernel.org, stable-commits@vger.kernel.org, oliver.upton@linux.dev, james.morse@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, catalin.marinas@arm.com, will@kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false On Mon, 03 Jun 2024 12:52:54 +0100, Sasha Levin wrote: > > This is a note to let you know that I've just added the patch titled > > KVM: arm64: nv: Add sanitising to VNCR-backed sysregs > > to the 6.8-stable tree which can be found at: > http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary > > The filename of the patch is: > kvm-arm64-nv-add-sanitising-to-vncr-backed-sysregs.patch > and it can be found in the queue-6.8 subdirectory. > > If you, or anyone else, feels it should not be added to the stable tree, > please let know about it. > > > > commit fbb2bcdc458dd7db3860f85a06e98cc25904d20d > Author: Marc Zyngier > Date: Wed Feb 14 13:18:04 2024 +0000 > > KVM: arm64: nv: Add sanitising to VNCR-backed sysregs > > [ Upstream commit 888f0880702293096619b300150cd7e59fcd9743 ] > > VNCR-backed "registers" are actually only memory. Which means that > there is zero control over what the guest can write, and that it > is the hypervisor's job to actually sanitise the content of the > backing store. Yeah, this is fun. > > In order to preserve some form of sanity, add a repainting mechanism > that makes use of a per-VM set of RES0/RES1 masks, one pair per VNCR > register. These masks get applied on access to the backing store via > __vcpu_sys_reg(), ensuring that the state that is consumed by KVM is > correct. > > So far, nothing populates these masks, but stay tuned. > > Signed-off-by: Marc Zyngier > Reviewed-by: Joey Gouly > Link: https://lore.kernel.org/r/20240214131827.2856277-4-maz@kernel.org > Signed-off-by: Oliver Upton > Stable-dep-of: ce5d2448eb8f ("KVM: arm64: Destroy mpidr_data for 'late' vCPU creation") > Signed-off-by: Sasha Levin Please drop this. It serves no purpose on 6.8 aside from wasting memory. If backporting ce5d2448eb8f is hard due to some conflicts, we'll tackle it ourselves. Thanks, M. -- Without deviation from the norm, progress is not possible.