diff options
| -rw-r--r-- | arch/s390/include/uapi/asm/ucontext.h | 8 | ||||
| -rw-r--r-- | arch/s390/kernel/compat_linux.h | 4 |
2 files changed, 9 insertions, 3 deletions
diff --git a/arch/s390/include/uapi/asm/ucontext.h b/arch/s390/include/uapi/asm/ucontext.h index 200e06325c6a..3e077b2a4705 100644 --- a/arch/s390/include/uapi/asm/ucontext.h +++ b/arch/s390/include/uapi/asm/ucontext.h | |||
| @@ -16,7 +16,9 @@ struct ucontext_extended { | |||
| 16 | struct ucontext *uc_link; | 16 | struct ucontext *uc_link; |
| 17 | stack_t uc_stack; | 17 | stack_t uc_stack; |
| 18 | _sigregs uc_mcontext; | 18 | _sigregs uc_mcontext; |
| 19 | unsigned long uc_sigmask[2]; | 19 | sigset_t uc_sigmask; |
| 20 | /* Allow for uc_sigmask growth. Glibc uses a 1024-bit sigset_t. */ | ||
| 21 | unsigned char __unused[128 - sizeof(sigset_t)]; | ||
| 20 | unsigned long uc_gprs_high[16]; | 22 | unsigned long uc_gprs_high[16]; |
| 21 | }; | 23 | }; |
| 22 | 24 | ||
| @@ -27,7 +29,9 @@ struct ucontext { | |||
| 27 | struct ucontext *uc_link; | 29 | struct ucontext *uc_link; |
| 28 | stack_t uc_stack; | 30 | stack_t uc_stack; |
| 29 | _sigregs uc_mcontext; | 31 | _sigregs uc_mcontext; |
| 30 | sigset_t uc_sigmask; /* mask last for extensibility */ | 32 | sigset_t uc_sigmask; |
| 33 | /* Allow for uc_sigmask growth. Glibc uses a 1024-bit sigset_t. */ | ||
| 34 | unsigned char __unused[128 - sizeof(sigset_t)]; | ||
| 31 | }; | 35 | }; |
| 32 | 36 | ||
| 33 | #endif /* !_ASM_S390_UCONTEXT_H */ | 37 | #endif /* !_ASM_S390_UCONTEXT_H */ |
diff --git a/arch/s390/kernel/compat_linux.h b/arch/s390/kernel/compat_linux.h index 39ddfdb40ae8..70d4b7c4beaa 100644 --- a/arch/s390/kernel/compat_linux.h +++ b/arch/s390/kernel/compat_linux.h | |||
| @@ -69,7 +69,9 @@ struct ucontext32 { | |||
| 69 | __u32 uc_link; /* pointer */ | 69 | __u32 uc_link; /* pointer */ |
| 70 | compat_stack_t uc_stack; | 70 | compat_stack_t uc_stack; |
| 71 | _sigregs32 uc_mcontext; | 71 | _sigregs32 uc_mcontext; |
| 72 | compat_sigset_t uc_sigmask; /* mask last for extensibility */ | 72 | compat_sigset_t uc_sigmask; |
| 73 | /* Allow for uc_sigmask growth. Glibc uses a 1024-bit sigset_t. */ | ||
| 74 | unsigned char __unused[128 - sizeof(compat_sigset_t)]; | ||
| 73 | }; | 75 | }; |
| 74 | 76 | ||
| 75 | struct stat64_emu31; | 77 | struct stat64_emu31; |
