Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1384139

[PATCH v2] kcov: don't profile branches in kcov

From Andrey Ryabinin <aryabinin@virtuozzo.com>
Newsgroups linux.kernel
Subject [PATCH v2] kcov: don't profile branches in kcov
Date 2016-04-21 14:20 +0200
Message-ID <rqlKp-zM-5@gated-at.bofh.it> (permalink)
References <rqkbE-7J8-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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 <aryabinin@virtuozzo.com>
---
 kernel/kcov.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/kcov.c b/kernel/kcov.c
index 3efbee0..aee961f 100644
--- a/kernel/kcov.c
+++ b/kernel/kcov.c
@@ -1,5 +1,6 @@
 #define pr_fmt(fmt) "kcov: " fmt
 
+#define DISABLE_BRANCH_PROFILING
 #include <linux/compiler.h>
 #include <linux/types.h>
 #include <linux/file.h>
-- 
2.7.3

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: [PATCH] kcov: disable tracing and branch profiling in kcov Dmitry Vyukov <dvyukov@google.com> - 2016-04-21 12:40 +0200
  [PATCH v2] kcov: don't profile branches in kcov Andrey Ryabinin <aryabinin@virtuozzo.com> - 2016-04-21 14:20 +0200

csiph-web