Thread (3 messages) 3 messages, 3 authors, 2026-05-25

Re: [PATCH bpf] net/sched: cls_bpf: prevent unbounded recursion in offload rollback

From: Jakub Kicinski <kuba@kernel.org>
Date: 2026-05-25 18:03:05
Also in: bpf, lkml

On Fri, 22 May 2026 10:58:53 +0800 Jiayuan Chen wrote:
-	if (prog && err) {
-		cls_bpf_offload_cmd(tp, oldprog, prog, extack);
+	if (prog && err && !is_rollback) {
+		cls_bpf_offload_cmd(tp, oldprog, prog, extack, true);
 		return err;
 	}
Doesn't matter in practice but for code clarity we should only gate 
the call to cls_bpf_offload_cmd() not the entire error path.

With that:

Reviewed-by: Jakub Kicinski <kuba@kernel.org>

I'd take this via -next.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help