From 14ca7907c8a06a176def89e9243ae83fd92d3a54 Mon Sep 17 00:00:00 2001 From: arthur-zhang Date: Tue, 24 Dec 2024 11:53:19 +0800 Subject: [PATCH] fix: update selector_filter index assignment to use sel->index Signed-off-by: arthur-zhang --- bpf/process/pfilter.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bpf/process/pfilter.h b/bpf/process/pfilter.h index 4bd630d05a3..ed35fe9871c 100644 --- a/bpf/process/pfilter.h +++ b/bpf/process/pfilter.h @@ -342,15 +342,19 @@ selector_match(__u32 *f, struct selector_filter *sel, four: res4 = process_filter(sel, f, enter, &msg->ns, &msg->caps); index = next_pid_value(index, f, ty); + sel->index = index; three: res3 = process_filter(sel, f, enter, &msg->ns, &msg->caps); index = next_pid_value(index, f, ty); + sel->index = index; two: res2 = process_filter(sel, f, enter, &msg->ns, &msg->caps); index = next_pid_value(index, f, ty); + sel->index = index; one: res1 = process_filter(sel, f, enter, &msg->ns, &msg->caps); index = next_pid_value(index, f, ty); + sel->index = index; if (ty == op_filter_notin) return res1 & res2 & res3 & res4;