From: sashiko-bot@kernel.org
To: "Claudio Imbrenda" <imbrenda@linux.ibm.com>, kvm@vger.kernel.org
Cc: linux-s390@vger.kernel.org, "Heiko Carstens" <hca@linux.ibm.com>,
"Vasily Gorbik" <gor@linux.ibm.com>,
"Alexander Gordeev" <agordeev@linux.ibm.com>,
"Christian Borntraeger" <borntraeger@linux.ibm.com>
Subject: Re: [PATCH v3 08/12] KVM: s390: Fix *_test_and_clear_softdirty() functions
Date: Thu, 03 Dec 2026 17:49:58 +0000 [thread overview]
Message-ID: <sashiko-outbox-248305@kernel.org> (raw)
In-Reply-To: <20261203161527.188235-9-imbrenda@linux.ibm.com>
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 <imbrenda@linux.ibm.com>
> 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 <imbrenda@linux.ibm.com>
[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.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203161527.188235-1-imbrenda@linux.ibm.com?part=8
next prev parent reply other threads:[~2026-12-03 17:49 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 16:15 [PATCH v3 00/12] KVM: s390: More fixes Claudio Imbrenda
2026-12-03 16:15 ` [PATCH v3 01/12] KVM: s390: ucontrol: Do not mask -ENOMEM when translating Claudio Imbrenda
2026-12-04 11:33 ` Christian Borntraeger
2026-12-03 16:15 ` [PATCH v3 02/12] KVM: s390: Fix potential leak in kvm_s390_get_io_int() Claudio Imbrenda
2026-12-03 16:49 ` sashiko-bot
2026-12-04 10:23 ` Christian Borntraeger
2026-12-03 16:15 ` [PATCH v3 03/12] KVM: s390: Small miscellaneous CMMA fixes Claudio Imbrenda
2026-12-03 17:24 ` sashiko-bot
2026-12-03 16:15 ` [PATCH v3 04/12] KVM: s390: Fix dat_entry_walk() with DAT_WALK_CONTINUE Claudio Imbrenda
2026-12-04 10:24 ` Christian Borntraeger
2026-12-03 16:15 ` [PATCH v3 05/12] KVM: s390: Fix soft-dirty handling in _gmap_link() Claudio Imbrenda
2026-12-03 16:15 ` [PATCH v3 06/12] KVM: s390: Fix race in gmap_clear_young_pte() Claudio Imbrenda
2026-12-03 16:15 ` [PATCH v3 07/12] KVM: s390: Properly adjust page size before calling _gmap_link() Claudio Imbrenda
2026-12-03 16:15 ` [PATCH v3 08/12] KVM: s390: Fix *_test_and_clear_softdirty() functions Claudio Imbrenda
2026-12-03 17:49 ` sashiko-bot [this message]
2026-12-04 13:43 ` Christian Borntraeger
2026-12-03 16:15 ` [PATCH v3 09/12] KVM: s390: Do not unnecessarily drop the soft-dirty bit Claudio Imbrenda
2026-12-03 16:15 ` [PATCH v3 10/12] KVM: s390: Disallow 2G pages for guests up to 2G Claudio Imbrenda
2026-12-03 16:15 ` [PATCH v3 11/12] KVM: s390: vsie: Fix improper shadowing of non-present host ptes Claudio Imbrenda
2026-12-03 16:15 ` [PATCH v3 12/12] KVM: s390: vsie: Drop shadow gmaps when a memslot is deleted or moved Claudio Imbrenda
2026-12-03 18:18 ` [PATCH v3 00/12] KVM: s390: More fixes sashiko-bot
2026-12-04 15:46 ` Christian Borntraeger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-248305@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=agordeev@linux.ibm.com \
--cc=borntraeger@linux.ibm.com \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=imbrenda@linux.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.