commit | 55a2346c7ac4bbf6ee6972394237bf31e29a1c05 | [log] [tgz] |
---|---|---|
author | Marco Elver <elver@google.com> | Thu Oct 22 13:45:53 2020 +0200 |
committer | Paul E. McKenney <paulmck@kernel.org> | Mon Nov 02 17:08:51 2020 -0800 |
tree | 527ef9158e5a4507ea742638aad9d097546f123f | |
parent | 4761612ffe3c1655e58f1ef9cf867c6f67d46fe2 [diff] |
kcsan: Never set up watchpoints on NULL pointers 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. Reviewed-by: Dmitry Vyukov <dvyukov@google.com> Signed-off-by: Marco Elver <elver@google.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>