Re: [PATCH net] net/sched: act_api: fix TOCTOU NULL deref on a->goto_chain

[email protected]
Newsgroups org.kernel.vger.stable,org.kernel.vger.netdev
Message-ID <178649821363.1227528.5392526569605009176.git-patchwork-notify@kernel.org>
Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:

On Sun,  9 Aug 2026 05:09:28 -0400 you wrote:
> tcf_action_exec() handles TC_ACT_GOTO_CHAIN by first checking
> rcu_access_pointer(a->goto_chain) and then calling
> tcf_action_goto_chain_exec(), which does a second, independent
> rcu_dereference_bh(a->goto_chain) read and immediately dereferences
> chain->filter_chain. A concurrent tcf_action_set_ctrlact() (e.g. the gact
> replace path) can clear a->goto_chain between the two reads, so the second
> read returns NULL and tcf_action_goto_chain_exec() dereferences NULL.
> 
> [...]

Here is the summary with links:
  - [net] net/sched: act_api: fix TOCTOU NULL deref on a->goto_chain
    https://git.kernel.org/netdev/net/c/f60b396ee174

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.