All of lore.kernel.org
 help / color / mirror / Atom feed
* [tip: objtool/core] objtool: Add check_kcov_mode() to the uaccess safelist
@ 2020-05-27 15:04 tip-bot2 for Josh Poimboeuf
  0 siblings, 0 replies; only message in thread
From: tip-bot2 for Josh Poimboeuf @ 2020-05-27 15:04 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: Arnd Bergmann, Josh Poimboeuf, Peter Zijlstra (Intel), x86, LKML

The following commit has been merged into the objtool/core branch of tip:

Commit-ID:     ae033f088f277efd5b3c6d681ce9e7682380efff
Gitweb:        https://git.kernel.org/tip/ae033f088f277efd5b3c6d681ce9e7682380efff
Author:        Josh Poimboeuf <jpoimboe@redhat.com>
AuthorDate:    Wed, 29 Apr 2020 14:09:04 -05:00
Committer:     Josh Poimboeuf <jpoimboe@redhat.com>
CommitterDate: Wed, 20 May 2020 08:30:43 -05:00

objtool: Add check_kcov_mode() to the uaccess safelist

check_kcov_mode() is called by write_comp_data() and
__sanitizer_cov_trace_pc(), which are already on the uaccess safe list.
It's notrace and doesn't call out to anything else, so add it to the
list too.

This fixes the following warnings:

  kernel/kcov.o: warning: objtool: __sanitizer_cov_trace_pc()+0x15: call to check_kcov_mode() with UACCESS enabled
  kernel/kcov.o: warning: objtool: write_comp_data()+0x1b: call to check_kcov_mode() with UACCESS enabled

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
---
 tools/objtool/check.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/objtool/check.c b/tools/objtool/check.c
index e36a818..7a47ff9 100644
--- a/tools/objtool/check.c
+++ b/tools/objtool/check.c
@@ -507,6 +507,7 @@ static const char *uaccess_safe_builtin[] = {
 	"__asan_report_store16_noabort",
 	/* KCOV */
 	"write_comp_data",
+	"check_kcov_mode",
 	"__sanitizer_cov_trace_pc",
 	"__sanitizer_cov_trace_const_cmp1",
 	"__sanitizer_cov_trace_const_cmp2",

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-05-27 15:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-27 15:04 [tip: objtool/core] objtool: Add check_kcov_mode() to the uaccess safelist tip-bot2 for Josh Poimboeuf

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.