selftests/bpf: Guarantee zero termination for veristat test buffers

In veristat tests replace direct read() calls with calls to
read_output() utility function, which:
- guarantees that the input buffer is zero terminated;
- asserts that read operation succeeded.

Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20260811-veristat-filter-fix-v2-3-6c234c4cd6ef@gmail.com
This commit is contained in:
Eduard Zingerman 2026-08-11 23:05:44 -07:00 • committed by Andrii Nakryiko
commit 033506fc06