Re: [PATCH] kasan: add support for kasan.fault=panic_on_write
From: Andrey Konovalov
Date: Tue Jun 20 2023 - 07:45:59 EST
On Tue, Jun 20, 2023 at 1:33 PM Marco Elver <elver@xxxxxxxxxx> wrote:
>
> > On a related note, it looks like we have a typo in KASAN
> > documentation: it states that asymm mode detects reads synchronously,
> > and writes - asynchronously. Should be the reverse.
>
> This says the documentation is correct, and it's actually called for
> writes: https://docs.kernel.org/arm64/memory-tagging-extension.html#tag-check-faults
>
> Who is right?
Ah, right. I did a quick google to check when I was writing the
response and found this: https://lwn.net/Articles/882963/. But looks
like that cover letter is wrong and the documentation is right. I
wonder what the point of the asymmetric mode is then.
So the current code that you have should work perfectly. The only
change I'd like to see is in the documentation.
Thanks!