From: patchwork-bot+netdevbpf@kernel.org
To: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: netdev@vger.kernel.org, stable@vger.kernel.org,
victor@mojatatu.com, jiri@resnulli.us, davem@davemloft.net,
edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com,
horms@kernel.org, vladbu@mellanox.com, marcelo.leitner@gmail.com,
shuah@kernel.org, linux-kselftest@vger.kernel.org,
sashiko-bot@kernel.org
Subject: Re: [PATCH net 1/2 repost3] net/sched: act_api: reject duplicate actions in a batch
Date: Tue, 20 Oct 2026 03:00:05 +0000 [thread overview]
Message-ID: <179246520503.3454580.1042472378869646593.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <QDISC-K1TH.v1.r3.20261012134653-1@mojatatu.com>
Hello:
This series was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Mon, 12 Oct 2026 14:09:25 -0400 you wrote:
> tca_action_gd() builds actions[] with one tcf_action_get_1() per nested
> TCA_ACT_TAB entry. Each successful lookup takes its own reference to the
> resolved action, so repeated TCA_ACT_INDEX entries in one request yield
> the same pointer in multiple slots.
>
> For RTM_DELACTION, tcf_action_delete() then consumes two references per
> slot: one in tcf_action_put() and one in tcf_idr_delete_index(). A
> duplicate therefore drives the refcount to zero mid-walk -- the delete
> frees the action and removes its IDR slot -- and the next slot calls
> tcf_action_put() on the freed action:
>
> [...]
Here is the summary with links:
- [net,1/2,repost3] net/sched: act_api: reject duplicate actions in a batch
https://git.kernel.org/netdev/net/c/f67b3ed1308d
- [net,2/2,repost3] selftests: tc-testing: add duplicate action delete batch test
https://git.kernel.org/netdev/net/c/044ad3c90d9d
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
prev parent reply other threads:[~2026-10-20 3:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-12 18:09 [PATCH net 1/2 repost3] net/sched: act_api: reject duplicate actions in a batch Jamal Hadi Salim
2026-10-12 18:09 ` [PATCH net 2/2 repost3] selftests: tc-testing: add duplicate action delete batch test Jamal Hadi Salim
2026-10-20 3: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=179246520503.3454580.1042472378869646593.git-patchwork-notify@kernel.org \
--to=patchwork-bot+netdevbpf@kernel.org \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--cc=jhs@mojatatu.com \
--cc=jiri@resnulli.us \
--cc=kuba@kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=marcelo.leitner@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sashiko-bot@kernel.org \
--cc=shuah@kernel.org \
--cc=stable@vger.kernel.org \
--cc=victor@mojatatu.com \
--cc=vladbu@mellanox.com \
/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