Previous version: http://lkml.kernel.org/r/20190613123028.179447-1-elver@xxxxxxxxxx * Only changed lib/test_kasan in this version. Marco Elver (3): lib/test_kasan: Add bitops tests x86: Use static_cpu_has in uaccess region to avoid instrumentation asm-generic, x86: Add bitops instrumentation for KASAN Documentation/core-api/kernel-api.rst | 2 +- arch/x86/ia32/ia32_signal.c | 2 +- arch/x86/include/asm/bitops.h | 189 ++++------------ arch/x86/kernel/signal.c | 2 +- include/asm-generic/bitops-instrumented.h | 263 ++++++++++++++++++++++ lib/test_kasan.c | 81 ++++++- 6 files changed, 382 insertions(+), 157 deletions(-) create mode 100644 include/asm-generic/bitops-instrumented.h -- 2.22.0.rc2.383.gf4fbbf30c2-goog