提交 aba1be2f 编写于 作者: E Eric W. Biederman

signal: Ensure no siginfo union member increases the size of struct siginfo

Signed-off-by: N"Eric W. Biederman" <ebiederm@xmission.com>
上级 75c0abb8
...@@ -3688,6 +3688,7 @@ void __init signals_init(void) ...@@ -3688,6 +3688,7 @@ void __init signals_init(void)
/* If this check fails, the __ARCH_SI_PREAMBLE_SIZE value is wrong! */ /* If this check fails, the __ARCH_SI_PREAMBLE_SIZE value is wrong! */
BUILD_BUG_ON(__ARCH_SI_PREAMBLE_SIZE BUILD_BUG_ON(__ARCH_SI_PREAMBLE_SIZE
!= offsetof(struct siginfo, _sifields._pad)); != offsetof(struct siginfo, _sifields._pad));
BUILD_BUG_ON(sizeof(struct siginfo) != SI_MAX_SIZE);
sigqueue_cachep = KMEM_CACHE(sigqueue, SLAB_PANIC); sigqueue_cachep = KMEM_CACHE(sigqueue, SLAB_PANIC);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册