[PATCH v2 1/7] bpf/validate: fix finished status on restart

Marat Khalili marat.khalili at huawei.com
Mon Sep 14 16:54:11 CEST 2026


If debug session is reused, requesting evaluation result while
evaluation is still in progress would successfully return result from
the previous evaluation instead of expected -EAGAIN error.

Make evaluation start clear the finished status.

Fixes: 6b0da0602cc7 ("bpf/validate: introduce debugging interface")

Signed-off-by: Marat Khalili <marat.khalili at huawei.com>
---
 lib/bpf/bpf_validate_debug.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/bpf/bpf_validate_debug.c b/lib/bpf/bpf_validate_debug.c
index 5d18804a74bc..9a039766322c 100644
--- a/lib/bpf/bpf_validate_debug.c
+++ b/lib/bpf/bpf_validate_debug.c
@@ -568,6 +568,7 @@ __rte_bpf_validate_debug_evaluate_start(struct rte_bpf_validate_debug *debug,
 	debug->last_point = NULL;
 	debug->pc = 0;
 	debug->evaluate_started = true;
+	debug->evaluate_finished = false;
 
 	const int rc = debug_send_event(debug,
 		RTE_BPF_VALIDATE_DEBUG_EVENT_VALIDATION_START);
-- 
2.43.0



More information about the dev mailing list