Re: [PATCH v2 01/14] kasan: sw_tags: Use arithmetic shift for shadow computation

From: Andrey Konovalov
Date: Tue Feb 25 2025 - 16:38:21 EST


On Tue, Feb 25, 2025 at 6:21 PM Maciej Wieczor-Retman
<maciej.wieczor-retman@xxxxxxxxx> wrote:
>
> >> I wanted to have the shadow memory boundries aligned properly, to not waste page
> >> table entries, so the memory map is more straight forward. This patch helps with
> >> that, I don't think it would have worked without it.
> >
> >Ok, I see - let's add this info into the commit message then.
>
> Sure, but if you like the 0xffeffc0000000000 offset I'll just drop this part.

Sure, assuming it works, I like this address :) But to be fair, I like
any fixed address better than using a runtime const, just to avoid the
complexity.