BPF List
 help / color / mirror / Atom feed
* [PATCH bpf-next v2 0/3] selftests/bpf: fix for veristat file/prog filters processing
@ 2026-08-12  6:05 Eduard Zingerman
  2026-08-12  6:05 ` [PATCH bpf-next v2 1/3] " Eduard Zingerman
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Eduard Zingerman @ 2026-08-12  6:05 UTC (permalink / raw)
  To: bpf, ast
  Cc: andrii, daniel, martin.lau, kernel-team, yonghong.song,
	Eduard Zingerman

At the moment veristat filtering behaves unexpectedly for the
following filter expression:

  -f !file/prog

The expression rejects all programs with name 'prog', and all programs
in a file with name 'file'. Fix the expression to exclude only a
program 'prog' from a file 'file', also add a set of tests to exercise
filtering logic.

Changelog:
v1 -> v2:
- added fixes tag for patch #1 (bot+bpf-ci);
- extended test cases for '!*foo*' and '*foo*' filters in patch #2
  (bot+bpf-ci);
- added patch #3, replacing direct read() calls with calls to
  read_output(), guaranteeing input buffer null termination
  (bot+bpf-ci).

v1: https://lore.kernel.org/bpf/20260811-veristat-filter-fix-v1-0-b5b43c431550@gmail.com/
---
Eduard Zingerman (3):
      selftests/bpf: fix for veristat file/prog filters processing
      selftests/bpf: exercise veristat filtering logic in a selftest
      selftests/bpf: guarantee zero termination for veristat test buffers

 .../selftests/bpf/prog_tests/test_veristat.c       | 113 +++++++++++++++++++--
 tools/testing/selftests/bpf/progs/veristat_bar.c   |   3 +
 tools/testing/selftests/bpf/progs/veristat_foo.c   |  31 ++++++
 tools/testing/selftests/bpf/veristat.c             |  76 +++++++++-----
 4 files changed, 190 insertions(+), 33 deletions(-)
---
base-commit: d114bb98936770c501c958bf2bc5fb6b7c0bad7b
change-id: 20260811-veristat-filter-fix-920cff2a288a

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-08-14  3:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-12  6:05 [PATCH bpf-next v2 0/3] selftests/bpf: fix for veristat file/prog filters processing Eduard Zingerman
2026-08-12  6:05 ` [PATCH bpf-next v2 1/3] " Eduard Zingerman
2026-08-12  6:38   ` bot+bpf-ci
2026-08-12  6:05 ` [PATCH bpf-next v2 2/3] selftests/bpf: exercise veristat filtering logic in a selftest Eduard Zingerman
2026-08-12  6:05 ` [PATCH bpf-next v2 3/3] selftests/bpf: guarantee zero termination for veristat test buffers Eduard Zingerman
2026-08-13 23:38   ` bot+bpf-ci
2026-08-13 23:40     ` Eduard Zingerman
2026-08-14  3:23 ` [PATCH bpf-next v2 0/3] selftests/bpf: fix for veristat file/prog filters processing patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox