[PATCH v2] signals, pkeys: make si_pkey 32 bits
From: Stephen Rothwell
Date: Sat Feb 27 2016 - 18:40:28 EST
- Next message: kbuild test robot: "Invalid CPU Type - valid names are: alpha, arm, x86, ia64, m68k, microblaze, mips, mips64, nios2, powerpc, ppc, s390, sh, sparc, sparc64, blackfin, avr32, nds32, or1k"
- Previous message: andreykosh000: "[PATCH] Fixed frequency range for Si2157 tuner to 42-870 MHz"
- In reply to: Stephen Rothwell: "Re: [PATCH] x86, pkeys: fix siginfo ABI breakage from new field"
- Next in thread: Ingo Molnar: "Re: [PATCH v2] signals, pkeys: make si_pkey 32 bits"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
In order to prevent a change of alignment of the _sifields union in the
siginfo structure on (some) 32 bit platforms and an ABI breakage, we
change the type of _pkey to unsigned int. If more bits are needed in
the future, a second unsigned int could be added.
Fixes: cd0ea35ff551 ("signals, pkeys: Notify userspace about protection key faults")
Acked-by: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>
Signed-off-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
---
arch/ia64/include/uapi/asm/siginfo.h | 2 +-
arch/mips/include/uapi/asm/siginfo.h | 2 +-
include/uapi/asm-generic/siginfo.h | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/ia64/include/uapi/asm/siginfo.h b/arch/ia64/include/uapi/asm/siginfo.h
index 0151cfab929d..19e7db0c9453 100644
--- a/arch/ia64/include/uapi/asm/siginfo.h
+++ b/arch/ia64/include/uapi/asm/siginfo.h
@@ -70,7 +70,7 @@ typedef struct siginfo {
void __user *_upper;
} _addr_bnd;
/* used when si_code=SEGV_PKUERR */
- u64 _pkey;
+ unsigned int _pkey;
};
} _sigfault;
diff --git a/arch/mips/include/uapi/asm/siginfo.h b/arch/mips/include/uapi/asm/siginfo.h
index 6f4edf0d794c..3cc14f4a5936 100644
--- a/arch/mips/include/uapi/asm/siginfo.h
+++ b/arch/mips/include/uapi/asm/siginfo.h
@@ -93,7 +93,7 @@ typedef struct siginfo {
void __user *_upper;
} _addr_bnd;
/* used when si_code=SEGV_PKUERR */
- u64 _pkey;
+ unsigned int _pkey;
};
} _sigfault;
diff --git a/include/uapi/asm-generic/siginfo.h b/include/uapi/asm-generic/siginfo.h
index 90384d55225b..f4459dc3d31b 100644
--- a/include/uapi/asm-generic/siginfo.h
+++ b/include/uapi/asm-generic/siginfo.h
@@ -98,7 +98,7 @@ typedef struct siginfo {
void __user *_upper;
} _addr_bnd;
/* used when si_code=SEGV_PKUERR */
- u64 _pkey;
+ unsigned int _pkey;
};
} _sigfault;
--
2.7.0
--
Cheers,
Stephen Rothwell
- Next message: kbuild test robot: "Invalid CPU Type - valid names are: alpha, arm, x86, ia64, m68k, microblaze, mips, mips64, nios2, powerpc, ppc, s390, sh, sparc, sparc64, blackfin, avr32, nds32, or1k"
- Previous message: andreykosh000: "[PATCH] Fixed frequency range for Si2157 tuner to 42-870 MHz"
- In reply to: Stephen Rothwell: "Re: [PATCH] x86, pkeys: fix siginfo ABI breakage from new field"
- Next in thread: Ingo Molnar: "Re: [PATCH v2] signals, pkeys: make si_pkey 32 bits"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]