ia64: Sync struct siginfo with general version
authorQiaowei Ren <qiaowei.ren@intel.com>
Fri, 14 Nov 2014 15:18:22 +0000 (07:18 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 17 Nov 2014 23:58:53 +0000 (00:58 +0100)
New fields about bound violation are added into general struct
siginfo. This will impact MIPS and IA64, which extend general
struct siginfo. This patch syncs this struct for IA64 with
general version.

Signed-off-by: Qiaowei Ren <qiaowei.ren@intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Cc: linux-mm@kvack.org
Cc: linux-mips@linux-mips.org
Cc: Dave Hansen <dave@sr71.net>
Link: http://lkml.kernel.org/r/20141114151822.82B3B486@viggo.jf.intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/ia64/include/uapi/asm/siginfo.h

index 4ea6225196bb1e2d42539a4e4d5e9254623f7bf0..bce9bc1a66c4c398e2a32babfbe9ba114aad592a 100644 (file)
@@ -63,6 +63,10 @@ typedef struct siginfo {
                        unsigned int _flags;    /* see below */
                        unsigned long _isr;     /* isr */
                        short _addr_lsb;        /* lsb of faulting address */
+                       struct {
+                               void __user *_lower;
+                               void __user *_upper;
+                       } _addr_bnd;
                } _sigfault;
 
                /* SIGPOLL */
@@ -110,9 +114,9 @@ typedef struct siginfo {
 /*
  * SIGSEGV si_codes
  */
-#define __SEGV_PSTKOVF (__SI_FAULT|3)  /* paragraph stack overflow */
+#define __SEGV_PSTKOVF (__SI_FAULT|4)  /* paragraph stack overflow */
 #undef NSIGSEGV
-#define NSIGSEGV       3
+#define NSIGSEGV       4
 
 #undef NSIGTRAP
 #define NSIGTRAP       4