]> git.baikalelectronics.ru Git - kernel.git/commit
lib/test_stackinit: Allow building stand-alone
authorKees Cook <keescook@chromium.org>
Fri, 23 Jul 2021 22:19:32 +0000 (15:19 -0700)
committerKees Cook <keescook@chromium.org>
Sun, 22 Aug 2021 07:21:35 +0000 (00:21 -0700)
commit6bb47f22c1ddc12f554a5925a0e68dcba378d514
tree87ee7c77153e420a5bebf911063c7b01cb589e4d
parent6d922226b6204f97d57eb8cc07c636afb0c6883e
lib/test_stackinit: Allow building stand-alone

Especially now that GCC is developing the -ftrivial-auto-var-init
option[1], it's helpful to have a stand-alone userspace test for stack
variable initialization. Relicense to GPLv2+ (I am the only author),
provide stand-alone kernel macro stubs, and update comments for clarity.

[1] https://gcc.gnu.org/pipermail/gcc-patches/2021-July/575198.html

Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20210723221933.3431999-3-keescook@chromium.org
lib/test_stackinit.c