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

From: Andrey Konovalov
Date: Fri Feb 28 2025 - 19:23:08 EST


On Thu, Feb 27, 2025 at 1:33 PM Maciej Wieczor-Retman
<maciej.wieczor-retman@xxxxxxxxx> wrote:
>
> Btw just out of curiosity on the topic. If we used a runtime specified kasan
> offset, could the gdb script issue (not knowing the offset at compile-time) be
> fixed by just exporting the value through sysfs?
>
> I know that in inline mode the compiler would still need to know the offset
> value but I was curious if this approach was okay at least in outline mode?

I think this would work, assuming that GDB can pick it up from sysfs.