Re: [PATCH] kcsan: Never set up watchpoints on NULL pointers

From: Marco Elver
Date: Thu Oct 22 2020 - 07:47:46 EST


On Thu, 22 Oct 2020 at 13:30, Marco Elver <elver@xxxxxxxxxx> wrote:
>
> Avoid setting up watchpoints on NULL pointers, as otherwise we would
> crash inside the KCSAN runtime (when checking for value changes) instead
> of the instrumented code.
>
> Because that may be confusing, skip any address less than PAGE_SIZE.
>
> Signed-off-by: Marco Elver <elver@xxxxxxxxxx>
> ---

Please use the series at:
https://lkml.kernel.org/r/20201022114553.2440135-1-elver@xxxxxxxxxx
which includes a prerequisite patch that was missing.

Thanks,
-- Marco