summaryrefslogtreecommitdiff
path: root/tools/objtool
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2023-04-15 13:39:15 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2023-04-18 17:05:28 -0700
commit3639a535587d7aac449cdce9710dfdc97a3c8c8e (patch)
treeec5bb3c10ed99a83143a66979a6c0af529ea6daa /tools/objtool
parentd2c95f9d6802cc518d71d9795f4d9da54fb4e24d (diff)
x86: move stac/clac from user copy routines into callers
This is preparatory work for inlining the 'rep movs' case, but also a cleanup. The __copy_user_nocache() function was mis-used by the rdma code to do uncached kernel copies that don't actually want user copies at all, and as a result doesn't want the stac/clac either. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/objtool')
-rw-r--r--tools/objtool/check.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/objtool/check.c b/tools/objtool/check.c
index 4907545d3ce3..ea62a4e03f1e 100644
--- a/tools/objtool/check.c
+++ b/tools/objtool/check.c
@@ -1285,6 +1285,9 @@ static const char *uaccess_safe_builtin[] = {
"copy_mc_enhanced_fast_string",
"ftrace_likely_update", /* CONFIG_TRACE_BRANCH_PROFILING */
"clear_user_original",
+ "copy_user_generic_unrolled",
+ "copy_user_fast_string",
+ "__copy_user_nocache",
NULL
};