* + kcov-dont-profile-branches-in-kcov.patch added to -mm tree
@ 2016-04-21 22:07 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2016-04-21 22:07 UTC (permalink / raw)
To: aryabinin, dvyukov, mm-commits
The patch titled
Subject: kcov: don't profile branches in kcov
has been added to the -mm tree. Its filename is
kcov-dont-profile-branches-in-kcov.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/kcov-dont-profile-branches-in-kcov.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/kcov-dont-profile-branches-in-kcov.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Andrey Ryabinin <aryabinin@virtuozzo.com>
Subject: 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 <aryabinin@virtuozzo.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
kernel/kcov.c | 1 +
1 file changed, 1 insertion(+)
diff -puN kernel/kcov.c~kcov-dont-profile-branches-in-kcov kernel/kcov.c
--- a/kernel/kcov.c~kcov-dont-profile-branches-in-kcov
+++ a/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>
_
Patches currently in -mm which might be from aryabinin@virtuozzo.com are
kcov-dont-profile-branches-in-kcov.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-04-21 22:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-21 22:07 + kcov-dont-profile-branches-in-kcov.patch added to -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.