Re: [PATCH v7 3/4] mm/kasan: Introduce helpers for lazy MMU mode sanitizer

From: Alexander Gordeev

Date: Tue Aug 25 2026 - 03:51:20 EST


On Mon, Aug 24, 2026 at 11:56:35AM +0200, Heiko Carstens wrote:
> On Tue, Aug 18, 2026 at 02:01:30PM +0200, Alexander Gordeev wrote:
> > On Tue, Aug 18, 2026 at 12:11:34AM +0200, Andrey Konovalov wrote:
> > ...
> > > Hi Alexander,
> > >
> > > Should all this be limited to only s390?
> >
> > The idea is to allow any architecture to opt-in. Once [1] is accepted
> > this may look redundant, but I still see the benefit in having it.
>
> What would be the benefit if [1] is accepted?

Just another mechanism for verification, and pretty cheap one.
I would dare to say [1] does not rule out an invalid access completely.