Netdev List
 help / color / mirror / Atom feed
From: patchwork-bot+netdevbpf@kernel.org
To: Jiayuan Chen <jiayuan.chen@linux.dev>
Cc: netdev@vger.kernel.org, daniel@iogearbox.net, kuba@kernel.org,
	ast@kernel.org, martin.lau@linux.dev
Subject: Re: [PATCH net-next v2] net/sched: cls_bpf: prevent unbounded recursion in offload rollback
Date: Thu, 28 May 2026 01:00:22 +0000	[thread overview]
Message-ID: <177993002288.702981.1831083274612144658.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20260526025529.24382-1-jiayuan.chen@linux.dev>

Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Tue, 26 May 2026 10:55:29 +0800 you wrote:
> Quan Sun reported [1] a stack overflow in cls_bpf_offload_cmd().
> 
> Reproducer on netdevsim: add a skip_sw cls_bpf filter, set the
> bpf_tc_accept debugfs knob to 0, then `tc filter replace`. The replace
> calls tc_setup_cb_replace() which fails. cls_bpf_offload_cmd() then
> swaps prog/oldprog and recursively calls itself to roll back. But
> bpf_tc_accept=0 makes the rollback fail too, which triggers yet another
> rollback frame with the same arguments, and so on until the stack is
> exhausted.
> 
> [...]

Here is the summary with links:
  - [net-next,v2] net/sched: cls_bpf: prevent unbounded recursion in offload rollback
    https://git.kernel.org/netdev/net-next/c/27db54b90bcc

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



      reply	other threads:[~2026-05-28  1:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-26  2:55 [PATCH net-next v2] net/sched: cls_bpf: prevent unbounded recursion in offload rollback Jiayuan Chen
2026-05-28  1:00 ` patchwork-bot+netdevbpf [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=177993002288.702981.1831083274612144658.git-patchwork-notify@kernel.org \
    --to=patchwork-bot+netdevbpf@kernel.org \
    --cc=ast@kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=jiayuan.chen@linux.dev \
    --cc=kuba@kernel.org \
    --cc=martin.lau@linux.dev \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox