Re: [PATCH 1/3] Revert "x86/retpoline: Remove .text..__x86.return_thunk section"
From: Borislav Petkov
Date: Wed Oct 11 2023 - 05:34:42 EST
On Wed, Oct 11, 2023 at 09:41:42AM +0200, Peter Zijlstra wrote:
> *urgh*... I mean, yes, that obviously works, but should we not also have
> the retpoline thingy for consistency? That case makes less sense though
> :/
>
> Perhaps warn about this instead of fixing it? Forcing people to play the
> section game?
I like the conservative aspect of that: keep the separate sections and
warn if the return thunk is in the same section.
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette