]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Verifier test on refill from a smaller spill
authorMartin KaFai Lau <kafai@fb.com>
Tue, 2 Nov 2021 06:45:41 +0000 (23:45 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 3 Nov 2021 14:55:43 +0000 (15:55 +0100)
commita23fb0f2ef5e991d8effd8caa4c718d93de1a01a
treee4f096bf5019ce088a2c88c53e2b9021d6697b2f
parent39f1491e18a511195a7fcb743b32b18da32720cc
selftests/bpf: Verifier test on refill from a smaller spill

This patch adds a verifier test to ensure the verifier can read 8 bytes
from the stack after two 32bit write at fp-4 and fp-8. The test is similar
to the reported case from bcc [0].

  [0] https://github.com/iovisor/bcc/pull/3683

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20211102064541.316414-1-kafai@fb.com
tools/testing/selftests/bpf/verifier/spill_fill.c