Re: [PATCH v2 2/8] KVM: s390: Remove non-atomic dat_crstep_xchg()

From: Steffen Eiden

Date: Mon Mar 23 2026 - 06:53:16 EST


On Fri, Mar 20, 2026 at 05:15:36PM +0100, Claudio Imbrenda wrote:
> In practice dat_crstep_xchg() is racy and hard to use correctly. Simply
> remove it and replace its uses with dat_crstep_xchg_atomic().
>
> This solves some actual races that lead to system hangs / crashes.
>
> Signed-off-by: Claudio Imbrenda <imbrenda@xxxxxxxxxxxxx>
> Fixes: 589071eaaa8f ("KVM: s390: KVM page table management functions: clear and replace")
> Fixes: 94fd9b16cc67 ("KVM: s390: KVM page table management functions: lifecycle management")

Reviewed-by: Steffen Eiden <seiden@xxxxxxxxxxxxx>