]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
signal: Ensure no siginfo union member increases the size of struct siginfo
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 20 Jul 2017 02:23:15 +0000 (21:23 -0500)
committerEric 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

index 241d54958bbbcef16dcbb78b1a96ebd33c75694c..b9e5d825ee46265a7562b1ffb2f4b029f2b3290e 100644 (file)
@@ -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);
 }