+4
−16
+2
−6
+40
−8
Loading
mainline inclusion from mainline-v5.18-rc1 commit aebfd125 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I9FGRE Reference: https://github.com/torvalds/linux/commit/aebfd12521d9 -------------------------------- Currently a lot of ftrace code assumes __fentry__ is at sym+0. However with Intel IBT enabled the first instruction of a function will most likely be ENDBR. Change ftrace_location() to not only return the __fentry__ location when called for the __fentry__ location, but also when called for the sym+0 location. Then audit/update all callsites of this function to consistently use these new semantics. Suggested-by:Steven Rostedt <rostedt@goodmis.org> Signed-off-by:
Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by:
Masami Hiramatsu <mhiramat@kernel.org> Acked-by:
Josh Poimboeuf <jpoimboe@redhat.com> Link: https://lore.kernel.org/r/20220308154318.227581603@infradead.org Signed-off-by:
Pu Lehui <pulehui@huawei.com>