[v2,2/8] objtool, kcsan: Add __tsan_read_write to uaccess whitelist
diff mbox series

Message ID 20200724070008.1389205-3-elver@google.com
State In Next
Commit 2e04cb32122c4175ea1e4afbbf41017798885f40
Headers show
Series
  • kcsan: Compound read-write instrumentation
Related show

Commit Message

Marco Elver July 24, 2020, 7 a.m. UTC
Adds the new __tsan_read_write compound instrumentation to objtool's
uaccess whitelist.

Signed-off-by: Marco Elver <elver@google.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
---
 tools/objtool/check.c | 5 +++++
 1 file changed, 5 insertions(+)

Patch
diff mbox series

diff --git a/tools/objtool/check.c b/tools/objtool/check.c
index 63d8b630c67a..38d82e705c93 100644
--- a/tools/objtool/check.c
+++ b/tools/objtool/check.c
@@ -528,6 +528,11 @@  static const char *uaccess_safe_builtin[] = {
 	"__tsan_write4",
 	"__tsan_write8",
 	"__tsan_write16",
+	"__tsan_read_write1",
+	"__tsan_read_write2",
+	"__tsan_read_write4",
+	"__tsan_read_write8",
+	"__tsan_read_write16",
 	"__tsan_atomic8_load",
 	"__tsan_atomic16_load",
 	"__tsan_atomic32_load",