mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
Three testcases to make sure that stack reads from uninitialized locations are accepted by verifier when executed in privileged mode: - read from a fixed offset; - read from a variable offset; - passing a pointer to stack to a helper converts STACK_INVALID to STACK_MISC. Signed-off-by: Eduard Zingerman <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
10 lines
152 B
C
10 lines
152 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#include <test_progs.h>
|
|
#include "uninit_stack.skel.h"
|
|
|
|
void test_uninit_stack(void)
|
|
{
|
|
RUN_TESTS(uninit_stack);
|
|
}
|