summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2020-06-27 13:50:50 +0300
committerPalmer Dabbelt <palmerdabbelt@google.com>2020-07-30 21:37:37 +0300
commitcbb3d91d3bcff7eae3e9c63ffa436fbb4c6c657e (patch)
tree1f91458fd74889d3c4bf8a42aa6b1ba09035c57e
parent20d38f7c45a44e4b762b586a7bcacbc93ddb3153 (diff)
downloadlinux-cbb3d91d3bcff7eae3e9c63ffa436fbb4c6c657e.tar.xz
riscv: Add kmemleak support
Tested using syzkaller in QEMU's riscv64 virt machine. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
-rw-r--r--arch/riscv/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 0b40449a2eae..b124ca4323bf 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -56,6 +56,7 @@ config RISCV
select HAVE_ASM_MODVERSIONS
select HAVE_CONTEXT_TRACKING
select HAVE_COPY_THREAD_TLS
+ select HAVE_DEBUG_KMEMLEAK
select HAVE_DMA_CONTIGUOUS if MMU
select HAVE_EBPF_JIT if MMU
select HAVE_FUTEX_CMPXCHG if FUTEX