]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
lib/test_stackinit: Fix static initializer test
authorKees Cook <keescook@chromium.org>
Fri, 23 Jul 2021 22:19:31 +0000 (15:19 -0700)
committerKelsey Skunberg <kelsey.skunberg@canonical.com>
Tue, 12 Oct 2021 22:31:40 +0000 (16:31 -0600)
commitda639662653eece1188b718cd0e7373a5cc97bbf
tree4835f07d2dc0fe0c73e7256045ab7b9013cfe892
parent550e2081ac616c4543b3079ed1dc7556ce648a47
lib/test_stackinit: Fix static initializer test

BugLink: https://bugs.launchpad.net/bugs/1946802
commit f9398f15605a50110bf570aaa361163a85113dd1 upstream.

The static initializer test got accidentally converted to a dynamic
initializer. Fix this and retain the giant padding hole without using
an aligned struct member.

Fixes: 50ceaa95ea09 ("lib: Introduce test_stackinit module")
Cc: Ard Biesheuvel <ardb@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20210723221933.3431999-2-keescook@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
lib/test_stackinit.c