Thread (1 message) 1 message, 1 author, 2016-02-15

Re: [PATCH 00/33] Compile-time stack metadata validation

From: Andi Kleen <hidden>
Date: 2016-02-15 20:02:10
Also in: kvm, linux-watchdog, lkml

quoted
There are two ways to fix the warnings:

1. get rid of the thunks and call the C functions directly; or
No. Not until gcc learns about per-function callibg conventions (so that it can
be marked as not clobbering registers).
It does already for static functions in 5.x (with -fipa-ra).
And with LTO it can be used even somewhat globally.

Even older version supported it, for only for x86->SSE on 32bit, which
is useless for the kernel. But the new IPA-RA propagates which registers
are clobbered.

That said it will probably be a long time until we can drop support for
older compilers.  So for now the manual method is still needed.

-Andi

--
To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help