| Date | Thu, 24 Feb 2022 16:55:08 -0800 | From | Kees Cook <> | Subject | Re: [PATCH v2 12/39] x86/ibt,ftrace: Search for __fentry__ location |
| |
On Thu, Feb 24, 2022 at 03:51:50PM +0100, Peter Zijlstra wrote: > Have ftrace_location() search the symbol for the __fentry__ location > when it isn't at func+0 and use this for {,un}register_ftrace_direct(). > > This avoids a whole bunch of assumptions about __fentry__ being at > func+0. > > Suggested-by: Steven Rostedt <rostedt@goodmis.org> > Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cool. This should help with anything using __fentry__ tricks (i.e. future CFI...), yes?
Reviewed-by: Kees Cook <keescook@chromium.org>
-- Kees Cook
|