diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2020-02-16 21:07:49 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2020-03-28 06:58:53 +0300 |
commit | 36b1c7006736517f5a9d86eb6f8d5930a2aa64bf (patch) | |
tree | adec5025e2316201c80c7c2475e96aa0ca0f9110 /tools/objtool | |
parent | dc88588990945b14d6f7ed45b70ef7b1814a5f3e (diff) | |
download | linux-36b1c7006736517f5a9d86eb6f8d5930a2aa64bf.tar.xz |
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 'tools/objtool')
-rw-r--r-- | tools/objtool/check.c | 1 |
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", |