Re: [PATCH 3/4] s390/mm: Remove folio handling for secure storage access exceptions
From: David Hildenbrand (Arm)
Date: Thu Jul 16 2026 - 10:27:57 EST
On 7/16/26 16:14, Heiko Carstens wrote:
> Remove folio handling for secure storage access exceptions that happen
> via the kernel mapping. Using folio_try_get() for exceptions via the
> kernel mapping is racy: for example such an exception may happen on one
> CPU, while a different CPU frees the corresponding page. Subsequently the
> page can be part of a folio of different size, before the faulting CPU
> executes folio_try_get(). This may lead to data corruption.
Right, that's why one would have to re-verify whether the page is still part of
the folio afterwards.
--
Cheers,
David