summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2017-07-20 05:23:15 +0300
committerEric W. Biederman <ebiederm@xmission.com>2018-01-12 23:34:45 +0300
commitaba1be2f8c26ea322dd9c43047c1aff90528f032 (patch)
tree9d463b6660f80b050ae04815ddee4735c8bd1d88 /kernel
parent75c0abb8709cf002ea0ae1bd3f431f301b3084bd (diff)
downloadlinux-aba1be2f8c26ea322dd9c43047c1aff90528f032.tar.xz
signal: Ensure no siginfo union member increases the size of struct siginfo
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/signal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/signal.c b/kernel/signal.c
index 241d54958bbb..b9e5d825ee46 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -3688,6 +3688,7 @@ void __init signals_init(void)
/* If this check fails, the __ARCH_SI_PREAMBLE_SIZE value is wrong! */
BUILD_BUG_ON(__ARCH_SI_PREAMBLE_SIZE
!= offsetof(struct siginfo, _sifields._pad));
+ BUILD_BUG_ON(sizeof(struct siginfo) != SI_MAX_SIZE);
sigqueue_cachep = KMEM_CACHE(sigqueue, SLAB_PANIC);
}