Re: [PATCH net] net/sched: reject IDR error pointers when deleting actions
From: patchwork-bot+netdevbpf
Date: Sat Sep 19 2026 - 18:33:41 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Mon, 14 Sep 2026 14:51:23 +0800 you wrote:
> tcf_action_delete() drops the reference held by its lookup before calling
> tcf_idr_delete_index() with the saved action index. An unlocked
> classifier can remove that action and reserve the same IDR slot with
> ERR_PTR(-EBUSY) in between.
>
> tcf_idr_delete_index() only checks the lookup result for NULL. It
> therefore treats the reservation as a tc_action and dereferences
> tcfa_bindcnt. A hardware execution breakpoint was used to schedule the
> interleaving without changing the kernel source. KASAN reported this
> decoded trace:
>
> [...]
Here is the summary with links:
- [net] net/sched: reject IDR error pointers when deleting actions
https://git.kernel.org/netdev/net/c/c82b797abe66
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html