diff options
author | Kees Cook <keescook@chromium.org> | 2018-01-10 17:22:38 -0500 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2018-01-15 15:07:44 -0500 |
commit | b394d468e7d75637e682a9be4a1181b27186c593 (patch) | |
tree | 1c0894b3aafc06a4ee6bfc6facc81d192781de66 /tools | |
parent | 4f5e838605c264fcf16c3ff9495bd83da99acc6a (diff) |
usercopy: Enhance and rename report_usercopy()
In preparation for refactoring the usercopy checks to pass offset to
the hardened usercopy report, this renames report_usercopy() to the
more accurate usercopy_abort(), marks it as noreturn because it is,
adds a hopefully helpful comment for anyone investigating such reports,
makes the function available to the slab allocators, and adds new "detail"
and "offset" arguments.
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'tools')
-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 9b341584eb1b..ae39444896d4 100644 --- a/tools/objtool/check.c +++ b/tools/objtool/check.c | |||
@@ -138,6 +138,7 @@ static int __dead_end_function(struct objtool_file *file, struct symbol *func, | |||
138 | "__reiserfs_panic", | 138 | "__reiserfs_panic", |
139 | "lbug_with_loc", | 139 | "lbug_with_loc", |
140 | "fortify_panic", | 140 | "fortify_panic", |
141 | "usercopy_abort", | ||
141 | }; | 142 | }; |
142 | 143 | ||
143 | if (func->bind == STB_WEAK) | 144 | if (func->bind == STB_WEAK) |