Re: [PATCH 2/4] kcov: add interrupt handling self test

From: Alexander Potapenko
Date: Tue Jun 04 2024 - 11:27:12 EST


On Tue, Jun 4, 2024 at 3:45 PM Dmitry Vyukov <dvyukov@xxxxxxxxxx> wrote:
>
> Add a boot self test that can catch sprious coverage from interrupts.
> The coverage callback filters out interrupt code, but only after the
> handler updates preempt count. Some code periodically leaks out
> of that section and leads to spurious coverage.
> Add a best-effort (but simple) test that is likely to catch such bugs.
> If the test is enabled on CI systems that use KCOV, they should catch
> any issues fast.
>
> Signed-off-by: Dmitry Vyukov <dvyukov@xxxxxxxxxx>
> Cc: x86@xxxxxxxxxx
> Cc: linux-kernel@xxxxxxxxxxxxxxx
> Cc: syzkaller@xxxxxxxxxxxxxxxx
Reviewed-by: Alexander Potapenko <glider@xxxxxxxxxx>