projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75c0abb
)
signal: Ensure no siginfo union member increases the size of struct siginfo
author
Eric W. Biederman
<ebiederm@xmission.com>
Thu, 20 Jul 2017 02:23:15 +0000
(21:23 -0500)
committer
Eric W. Biederman
<ebiederm@xmission.com>
Fri, 12 Jan 2018 20:34:45 +0000
(14:34 -0600)
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
kernel/signal.c
patch
|
blob
|
history
diff --git
a/kernel/signal.c
b/kernel/signal.c
index 241d54958bbbcef16dcbb78b1a96ebd33c75694c..b9e5d825ee46265a7562b1ffb2f4b029f2b3290e 100644
(file)
--- 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);
}