lkml.org 
[lkml]   [2020]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] objtool,x86: Verify poke_int3_handler() is self contained

Abuse the SMAP rules to ensure poke_int3_handler() doesn't call out to
anything.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
---
tools/objtool/check.c | 8 ++++++++
1 file changed, 8 insertions(+)

--- a/tools/objtool/check.c
+++ b/tools/objtool/check.c
@@ -551,6 +551,14 @@ static const char *uaccess_safe_builtin[
"__memcpy_mcsafe",
"mcsafe_handle_tail",
"ftrace_likely_update", /* CONFIG_TRACE_BRANCH_PROFILING */
+ /*
+ * Abuse alert!
+ *
+ * poke_int3_handler() is not in fact related to uaccess at all, we
+ * abuse the uaccess rules to ensure poke_int3_handler() is self
+ * contained and doesn't CALL out to other code.
+ */
+ "poke_int3_handler",
NULL
};

\
 
 \ /
  Last update: 2020-07-27 12:42    [W:0.068 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site