summaryrefslogtreecommitdiffstats
path: root/tools/objtool/check.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2020-02-16 19:07:49 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2020-03-28 04:58:53 +0100
commit36b1c7006736517f5a9d86eb6f8d5930a2aa64bf (patch)
treeadec5025e2316201c80c7c2475e96aa0ca0f9110 /tools/objtool/check.c
parent[parisc, s390, sparc64] no need for access_ok() in futex handling (diff)
downloadlinux-36b1c7006736517f5a9d86eb6f8d5930a2aa64bf.tar.xz
linux-36b1c7006736517f5a9d86eb6f8d5930a2aa64bf.zip
objtool: whitelist __sanitizer_cov_trace_switch()
it's not really different from e.g. __sanitizer_cov_trace_cmp4(); as it is, the switches that generate an array of labels get rejected by objtool, while slightly different set of cases that gets compiled into a series of comparisons is accepted. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to '')
-rw-r--r--tools/objtool/check.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/objtool/check.c b/tools/objtool/check.c
index 4768d91c6d68..3667c5d7453a 100644
--- a/tools/objtool/check.c
+++ b/tools/objtool/check.c
@@ -478,6 +478,7 @@ static const char *uaccess_safe_builtin[] = {
"__sanitizer_cov_trace_cmp2",
"__sanitizer_cov_trace_cmp4",
"__sanitizer_cov_trace_cmp8",
+ "__sanitizer_cov_trace_switch",
/* UBSAN */
"ubsan_type_mismatch_common",
"__ubsan_handle_type_mismatch",