Re: [PATCH v3 5/6] x86/ftrace: Use text_poke()
From: Josh Poimboeuf
Date: Tue Jan 28 2020 - 10:00:33 EST
On Tue, Jan 28, 2020 at 10:28:07AM +0100, Miroslav Benes wrote:
> I don't think we have something special at SUSE not generally available...
>
> ...and I don't think it is really important to discuss that and replying
> to the above, because there is a legitimate use case which relies on the
> flag. We decided to support different use cases right at the beginning.
>
> I understand it currently complicates things for objtool, but objtool is
> sensitive to GCC code generation by definition. "Issues" appear with every
> new GCC version. I see no difference here and luckily it is not so
> difficult to fix it.
>
> I am happy to help with acting on those objtool warning reports you
> mentioned in the other email. Just Cc me where appropriate. We will take a
> look.
As I said, the objtool warnings aren't even the main issue.
There are N users[*] of CONFIG_LIVEPATCH, where N is perhaps dozens.
For N-1 users, they have to suffer ALL the drawbacks, with NONE of the
benefits.
And, even if they wanted those benefits, they have no idea how to get
them because the patch creation process isn't documented.
And, there's no direct upstream usage of the flag, i.e. the only user
does so in a distro which can easily modify KCFLAGS in the spec file.
As best as I can tell, these are facts, which you seem to keep glossing
over. Did I get any of the facts wrong?
[*] The term 'user' describes the creator/distributor of the
live patches.
--
Josh