]> git.hungrycats.org Git - linux/commit
s390: Revert support for DCACHE_WORD_ACCESS
authorHeiko Carstens <hca@linux.ibm.com>
Thu, 11 Jun 2026 15:37:46 +0000 (17:37 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Fri, 12 Jun 2026 09:30:25 +0000 (11:30 +0200)
commit37540b8c287fc817bdbd0c62bb75ad6eab0e5d03
tree6511b62ca480ee076c796d7dadcd572423d5cdc2
parentd0478f5d3cba1095bfdeb43a9b063c10cdebef14
s390: Revert support for DCACHE_WORD_ACCESS

load_unaligned_zeropad() reads eight bytes from unaligned addresses and may
cross page boundaries. It handles exceptions which may happen if reading
from the second page results in an exception.

For pages which are donated to the Ultravisor for secure execution purposes
the do_secure_storage_access() exception handler however does not handle
such exceptions correctly. Such an exception may result in an endless
exception loop which will never be resolved.

An attempt to fix this [1] turned out to be not sufficient. For now revert
load_unaligned_zeropad() until this problem has been resolved in a proper
way.

Note that the implementation of load_unaligned_zeropad() itself is
correct. The revert is just a temporary workaround until there is complete
fix for secure storage access exceptions.

[1] commit b00be77302d7 ("s390/mm: Add missing secure storage access fixups for donated memory")

Fixes: 802ba53eefc5 ("s390: add support for DCACHE_WORD_ACCESS")
Cc: stable@vger.kernel.org
Acked-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/Kconfig
arch/s390/include/asm/asm-extable.h
arch/s390/include/asm/word-at-a-time.h
arch/s390/mm/extable.c