Re: [PATCH v2 2/4] s390/mm: Fix handling of secure storage access exceptions in vmalloc area

From: Heiko Carstens

Date: Fri Jul 24 2026 - 05:53:31 EST


On Fri, Jul 24, 2026 at 10:40:16AM +0200, Alexander Gordeev wrote:
> On Fri, Jul 17, 2026 at 11:24:13AM +0200, Heiko Carstens wrote:
> > Secure storage access exceptions in vmalloc area need to be handled
> > separately since folio_try_get() or virt_to_phys() do not work on such
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> virt_to_phys() is not called here directly while folio_try_get() does
> not accept the addr parameter. Did you mean just virt_to_folio() or do
> you imply something outside of the context of this patch?

> > if (is_kernel_fault(regs)) {
> > + if (is_vmalloc_addr((void *)addr))
> > + return handle_fault_error_nolock(regs, 0);
> > folio = virt_to_folio((void *)addr);
> > if (unlikely(!folio_try_get(folio)))

I don't remember anymore. Probably a left-over from something else I
tried. Could simply be changed to "...virt_to_folio() does not work
on..." while applying.