lib/test_stackinit: Fix static initializer test
authorKees Cook <keescook@chromium.org>
Fri, 23 Jul 2021 22:19:31 +0000 (15:19 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Sep 2021 11:40:37 +0000 (13:40 +0200)
commit5944d0e2b0ab7f85cc32f216dd534aa91630ba04
tree876f8ed4b05962ee3f89ca29b77681cadea8bf05
parent00cdb2fb4df1d3e8e69751c8da22772ef1f7de07
lib/test_stackinit: Fix static initializer test

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>
lib/test_stackinit.c