Commit Graph

1 Commits

Author SHA1 Message Date
Viktor Malik 61ac7e75e6 selftests/bpf: Tests for uninitialized stack reads
Bugzilla: https://bugzilla.redhat.com/2178930

commit 6338a94d5ab42a94e96ea36edc5f7df1fe73e68e
Author: Eduard Zingerman <eddyz87@gmail.com>
Date:   Sun Feb 19 22:04:27 2023 +0200

    selftests/bpf: Tests for uninitialized stack reads
    
    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 <eddyz87@gmail.com>
    Acked-by: Andrii Nakryiko <andrii@kernel.org>
    Link: https://lore.kernel.org/r/20230219200427.606541-3-eddyz87@gmail.com
    Signed-off-by: Alexei Starovoitov <ast@kernel.org>

Signed-off-by: Viktor Malik <vmalik@redhat.com>
2023-06-13 22:45:42 +02:00