Thread (7 messages) 7 messages, 5 authors, 1d ago

Re: [PATCH net] net/sched: cls_api: reclaim an empty proto on the error path

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-09-26 00:31:16
Also in: stable

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski [off-list ref]:

On Thu, 24 Sep 2026 04:32:49 -0400 you wrote:
Two racing tc filter add requests on the same chain/prio of an
unlocked classifier both run change() on the shared proto and both
can fail: the winner's tcf_chain_tp_delete_empty() attempt gives up
because the loser's handle is still in the idr, and the loser's
error path drops only its own reference without a second reclamation
attempt. The empty proto stays linked in the chain, holding the
chain reference, a block reference and the classifier module
reference until the chain or block is torn down.

[...]
Here is the summary with links:
  - [net] net/sched: cls_api: reclaim an empty proto on the error path
    https://git.kernel.org/netdev/net/c/0bb8eab29b55

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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help