Re: [PATCH v4 19/45] x86/livepatch: Validate __fentry__ location

From: Miroslav Benes
Date: Wed Mar 09 2022 - 03:58:49 EST


On Tue, 8 Mar 2022, Peter Zijlstra wrote:

> Currently livepatch assumes __fentry__ lives at func+0, which is most
> likely untrue with IBT on. Instead make it use ftrace_location() by
> default which both validates and finds the actual ip if there is any
> in the same symbol.
>
> Suggested-by: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>
> Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>

Acked-by: Miroslav Benes <mbenes@xxxxxxx>

M