]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: precision tracking tests
authorAlexei Starovoitov <ast@kernel.org>
Tue, 3 Sep 2019 22:51:33 +0000 (15:51 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 5 Sep 2019 11:55:50 +0000 (13:55 +0200)
commit34d6a6b1eb77e20d32abc4f6ad9b8382d0be069f
tree7d0d0b13dbfda0e4b60a9e3294f8c6eb9d42f668
parent325a9a15506c8577f10df4c92e1675487f2cfc7a
selftests/bpf: precision tracking tests

Add two tests to check that stack slot marking during backtracking
doesn't trigger 'spi > allocated_stack' warning.
One test is using BPF_ST insn. Another is using BPF_STX.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/verifier/precise.c