| .. | .. |
|---|
| 27 | 27 | */ |
|---|
| 28 | 28 | BUILD_BUG_ON(NSIGILL != 11); |
|---|
| 29 | 29 | BUILD_BUG_ON(NSIGFPE != 15); |
|---|
| 30 | | - BUILD_BUG_ON(NSIGSEGV != 7); |
|---|
| 30 | + BUILD_BUG_ON(NSIGSEGV != 9); |
|---|
| 31 | 31 | BUILD_BUG_ON(NSIGBUS != 5); |
|---|
| 32 | 32 | BUILD_BUG_ON(NSIGTRAP != 5); |
|---|
| 33 | 33 | BUILD_BUG_ON(NSIGCHLD != 6); |
|---|
| .. | .. |
|---|
| 165 | 165 | { |
|---|
| 166 | 166 | signal_compat_build_tests(); |
|---|
| 167 | 167 | |
|---|
| 168 | | - /* Don't leak in-kernel non-uapi flags to user-space */ |
|---|
| 169 | | - if (oact) |
|---|
| 170 | | - oact->sa.sa_flags &= ~(SA_IA32_ABI | SA_X32_ABI); |
|---|
| 171 | | - |
|---|
| 172 | 168 | if (!act) |
|---|
| 173 | 169 | return; |
|---|
| 174 | | - |
|---|
| 175 | | - /* Don't let flags to be set from userspace */ |
|---|
| 176 | | - act->sa.sa_flags &= ~(SA_IA32_ABI | SA_X32_ABI); |
|---|
| 177 | 170 | |
|---|
| 178 | 171 | if (in_ia32_syscall()) |
|---|
| 179 | 172 | act->sa.sa_flags |= SA_IA32_ABI; |
|---|