Thread (6 messages) 6 messages, 3 authors, 2021-09-08

Re: [PATCH 02/24] x86/traps: Move arch/x86/kernel/traps.c to arch/x86/entry/

flat view

From: Nick Desaulniers <ndesaulniers@google.com>
Date: 2021-09-07 21:12:16
Also in: lkml

On Fri, Sep 3, 2021 at 12:36 AM Martin Liška [off-list ref] wrote:
On 9/2/21 19:05, Nick Desaulniers wrote:
quoted
IIRC GCC only
added the attribute recently in the 10.X release, so it might be too
new to rely on quite yet.
The no_stack_protector attribute was actually added in the GCC 11.x release:
https://gcc.gnu.org/gcc-11/changes.html
Ah right, that lays more weight though that this feature is still too
new to rely on quite yet.  Martin, do you know if what happens with
regards to inlining when the callee and caller mismatch on this
function attribute in GCC?  This is very much a problem for the
kernel.
Note the compiler is definitely used by Fedora, openSUSE Tumbleweed
and other cutting edge distributions.
Kernel supports GCC 4.9+ currently. This feature can only be emulated
with the coarse grain -fno-stack-protector (or gnu_inline with out of
line assembler definition...:( ).
-- 
Thanks,
~Nick Desaulniers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help