From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796320199; b=QIKybI3VZjAve/Ghi3MO35YtqM36Kj68aN/6YDBVc/4iY6KXYZj1dHlRlz634Ncttdss hkavkHyubQY7i0u/999pihD25ZTPaC77G6LTStXQeva9ilXKTtLryvBeMashOHbf5tutP edg38AllxbmM2LP2bSybwQ/xgXO4MX+rs7OfXfO1h3X1++/8U9s813mC/YvsdPpPq6C3L I20kqlfW+JqDhoB9Nq6u45jJsq9qqqa4kf8dJ8Zy7/oPKGIAgKMQghfnIHUnHHcQuEhUQ rMlyT360RAxeB0q1arzY+eSja2QNFbSYeh2VJw3iJwTa2lUELesGqh0Qd2bNxH4G24g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796320199; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=m/eDVHlUMQKrDcyfjpXnZQ05vgVVb9Ri65I8Hs4RdYo=; b=KSBoGmyp51tR6LrX3PQi2+ICMgUOuN1OPSjGhZpp0LrIz4BAV+ZtUHArRG189cWfUfRy rYFhayBEOR4/ZunhmI4N/m6UKZkTYkDNYhwYZHLNo8XNJ7YYhqyEyOrmT3WKq32LFB15N FLhrZw7JaFC7tu3iMmirqBjFpdOCr6bKO2CbXb6GQXDpncNPOgTFOLF0/VPD3iIFy6i8N mN0efKXpB5A3xm9qOVzeroE4Y8GA0OvKXhD0MeuVKKwZF1xjfOlapD3g1WSqLb5kgw/c1 CHc5RH4y5I5w1TSKOJv6vzuznCYHHYeyC0aItveF1qmKLlkZNYe7xd5zEQ2sKwbbIeA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=CA58ZuEb; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4014D606A32D; Thu, 3 Dec 2026 17:49:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=CA58ZuEb Received: by smtp.kernel.org (Postfix) with ESMTPSA id A04481F000C1; Thu, 3 Dec 2026 17:49:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796320198; bh=m/eDVHlUMQKrDcyfjpXnZQ05vgVVb9Ri65I8Hs4RdYo=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=CA58ZuEbEDTW4OdBw8jKfVjJdtx5S9whruNd4s1+65Gkm/NEhEtvNrfNTGA0K2WNY QxmBVwkum+EIVNTFmHf/+Vn+EtuZjDLMDAGuPZVh4PIPJPiC5Vpip2rbpP3TVaczFq CmOa7Pd6C44+xIEvN7gFEdcfqqzwF4QhRVooEXDrK/Raj2Fq7skq+aqX8wBpRrikvD o4VoTb3I6CaiQHpEMX6Ifn0716oLs9Y2nrTyyV/bv+4XK5k8p6gBO3Wcl2qhSOVmYw l+G8NLVpqrnvjmdAb4GeUx5KMdb+oFjmtbiWkXWhgqum3WYyXcdyxdEY3UsPu80WNm b+jRFhjOhECxA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v3 08/12] KVM: s390: Fix *_test_and_clear_softdirty() functions Reply-To: sashiko-reviews@lists.linux.dev To: "Claudio Imbrenda" , kvm@vger.kernel.org Cc: linux-s390@vger.kernel.org, "Heiko Carstens" , "Vasily Gorbik" , "Alexander Gordeev" , "Christian Borntraeger" In-Reply-To: <20261203161527.188235-9-imbrenda@linux.ibm.com> References: <20261203161527.188235-1-imbrenda@linux.ibm.com> <20261203161527.188235-9-imbrenda@linux.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 17:49:58 +0000 X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] KVM: s390: undocumented pgste.zero save in __pte_test_and_clear_softdirty() -- commit 64dfc842fe26fd14b03615e673a2f79bc7aebb40 Author: Claudio Imbrenda > KVM: s390: Fix *_test_and_clear_softdirty() functions > > Do not skip non-present entries, as they can be soft-dirty, and need to > be accounted as such. > > Check for the invalid bit together with the protected bit when > determining whether to skip an entry. > > Do not set the protected bit if the invalid bit is still set; the > invalid bit is enough. > > Fixes: a2c17f9270cc ("KVM: s390: New gmap code") > Cc: stable@vger.kernel.org > Signed-off-by: Claudio Imbrenda [Severity: Low] Should the commit message also explain why __pte_test_and_clear_softdirty() saves and restores pgste.zero across gmap_ptep_xchg()? _gmap_ptep_xchg() unconditionally clears pgste.zero, which would clobber the logical-zero state of an invalid entry now that non-present soft-dirty entries are updated. Documenting this in the changelog (or an inline comment) would help reviewers and stable maintainers understand why the save and restore is needed. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203161527.1882= 35-1-imbrenda@linux.ibm.com?part=3D8