From: Andrey Ryabinin Date: Thu, 28 Apr 2016 23:18:55 +0000 (-0700) Subject: kcov: don't profile branches in kcov X-Git-Tag: v5.15~13757^2~6 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=36f05ae8bce904b4c8105363e6227a79d343bda6;p=mirror_ubuntu-kernels.git kcov: don't profile branches in kcov Profiling 'if' statements in __sanitizer_cov_trace_pc() leads to unbound recursion and crash: __sanitizer_cov_trace_pc() -> ftrace_likely_update -> __sanitizer_cov_trace_pc() ... Define DISABLE_BRANCH_PROFILING to disable this tracer. Signed-off-by: Andrey Ryabinin Cc: Dmitry Vyukov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/kcov.c b/kernel/kcov.c index 78bed7125515..a02f2dddd1d7 100644 --- a/kernel/kcov.c +++ b/kernel/kcov.c @@ -1,5 +1,6 @@ #define pr_fmt(fmt) "kcov: " fmt +#define DISABLE_BRANCH_PROFILING #include #include #include