Re: [PATCH] x86: Fix early boot crash on gcc-10, next try

From: Borislav Petkov
Date: Sat Apr 25 2020 - 18:17:43 EST


On Sat, Apr 25, 2020 at 02:15:49PM -0500, Segher Boessenkool wrote:
> My point is that you should explain at *every use* of this why you cannot
> have tail calls *there*. This is very unusual, after all.
>
> There are *very* few places where you want to prevent tail calls, that's
> why there is no attribute for it.

Well, there is only one reason *why* so far - to prevent the stack
canary cookie from being checked before returning from the function
which set it. That could be explained once over the macro definition so
that it can be looked up.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette