Re: [PATCH v5] mm: x86: instrument __get/__put_kernel_nofault
From: Sabyrzhan Tasbolatov
Date: Fri Sep 27 2024 - 11:18:16 EST
On Mon, Sep 23, 2024 at 11:09 AM Sabyrzhan Tasbolatov
<snovitoll@xxxxxxxxx> wrote:
>
> Instead of adding KASAN, KCSAN checks per arch macro,
> here is the alternative, generic way with a wrapper.
> I've tested it on x86_64 only, going to test on arm64
> with KASAN_SW_TAGS, KASAN_HW_TAGS if I can do it in qemu,
> and form a new patch for all arch
> and this PATCH v5 for x86 only can be abandoned.
>
> Please let me know if this wrapper is good enough,
> I will see in kasan_test.c how I should use SW/HW_TAG, probably,
> they should be a separate test with
> KASAN_TEST_NEEDS_CONFIG_ON(test, CONFIG_KASAN_SW_TAGS);
> ---
Hello,
I've sent a different patch [1] to support all arch checks,
tested on x86_64 and arm64 with SW/HW_TAGS.
This [PATCH v5] for the x86 only can be ignored.
[1] https://lore.kernel.org/linux-mm/20240927151438.2143936-1-snovitoll@xxxxxxxxx/T/#u