]> git.baikalelectronics.ru Git - 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)
committerKees Cook <keescook@chromium.org>
Mon, 26 Jul 2021 17:21:45 +0000 (10:21 -0700)
commitf9398f15605a50110bf570aaa361163a85113dd1
tree85b17da1708bd28ff38e1b38b37d4e62b22b6a0b
parentdcb7c0b9461c2a30f6616262736daac6f01ecb09
lib/test_stackinit: Fix static initializer test

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