Re: [PATCH v3] net/sched: fix use-after-free in taprio_dev_notifier

patchwork-bot+netdevbpf
2025-06-17T23:30:05Z

Hello:

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

On Fri, 13 Jun 2025 20:54:57 -0400 you wrote:
> Since taprio’s taprio_dev_notifier() isn’t protected by an
> RCU read-side critical section, a race with advance_sched()
> can lead to a use-after-free.
>
> Adding rcu_read_lock() inside taprio_dev_notifier() prevents this.
>
> Fixes: fed87cc6718a ("net/sched: taprio: automatically calculate queueMaxSDU based on TC gate durations")
> Cc: stable@vger.kernel.org
> Signed-off-by: Hyunwoo Kim <imv4bel@gmail.com>
>
> [...]

Here is the summary with links:
- [v3] net/sched: fix use-after-free in taprio_dev_notifier
https://git.kernel.org/netdev/net/c/b160766e26d4

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.