Re: [PATCH] x86, pkeys: fix siginfo ABI breakage from new field

From
Ingo Molnar <mingo@kernel.org>
Date
2016-02-29 08:01:49
Also in
lkml
Reply to
Stephen Rothwell, 2016-02-27
* Stephen Rothwell [off-list ref] wrote:
quoted
u32?
It would have to be __u32, but we already use int and unsigned int
extensively in the siginfo structure (which are both always assumed to
be 32 bits).  So "unsigned int" probably makes most sense.
No. This whole mishap is an object lesson in why it's a bad idea to ever use ABI 
types outside of the __[us][8|16|32|64] space: some of them are 'fine', some of 
them (like longs) are not.

And we have to start somewhere, so we might as well start with new code that adds 
new ABI details: if a patch only uses __[us][8|16|32|64] types then it's easier to 
tell whether it's a safe ABI extension.

Thanks,

	Ingo
Thread (11 messages) 11 messages, 4 authors, last reply 2016-02-29
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help