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

From
H. Peter Anvin <hpa@zytor.com>
Date
2016-02-27 19:36:10
Also in
lkml
Reply to
Dave Hansen, 2016-02-27
On February 27, 2016 11:16:44 AM PST, Dave Hansen [off-list ref] wrote:
On 02/27/2016 03:41 AM, Ingo Molnar wrote:
quoted
* Stephen Rothwell [off-list ref] wrote:
quoted
quoted
On Fri, 26 Feb 2016 09:44:00 -0800 "H. Peter Anvin"
[off-list ref] wrote:
quoted
quoted
quoted
quoted
quoted
__u64 is okay, "unsigned long" is really messy in the presence
of 32-on-64 bit ABIs...
quoted
quoted
quoted
Yeah, but unfortunately, any 64 bit scalar type here will change
the
quoted
quoted
quoted
alignment of the enclosing unions on (some) 32 bit platforms and
thus
quoted
quoted
quoted
break the ABI.
Then a different solution has to be found.
I've acked Stephen's initial patch changing the 'u64' to an 'int'.  x86
only needs 4 bits, and in the remote chance that a future
implementation
needed more space, we could easily add a second 32-bit field "_pkey_hi"
or something that wouldn't have the alignment issues of a true 64-bit
type.

How should we get Stephen's patch in to the tip tree?
u32?
-- 
Sent from my Android device with K-9 Mail. Please excuse brevity and formatting.
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