diff options
| author | Marco Elver <[email protected]> | 2020-10-22 11:45:53 +0000 |
|---|---|---|
| committer | Paul E. McKenney <[email protected]> | 2020-11-03 01:08:51 +0000 |
| commit | 55a2346c7ac4bbf6ee6972394237bf31e29a1c05 (patch) | |
| tree | 527ef9158e5a4507ea742638aad9d097546f123f /scripts/gcc-plugins/structleak_plugin.c | |
| parent | kcsan: selftest: Ensure that address is at least PAGE_SIZE (diff) | |
| download | kernel-55a2346c7ac4bbf6ee6972394237bf31e29a1c05.tar.gz kernel-55a2346c7ac4bbf6ee6972394237bf31e29a1c05.zip | |
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 <[email protected]>
Signed-off-by: Marco Elver <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/structleak_plugin.c')
0 files changed, 0 insertions, 0 deletions
