Re: [PATCH] net: pktgen: fix proc entry use-after-free

From: patchwork-bot+netdevbpf

Date: Fri Jul 24 2026 - 19:43:09 EST


Hello:

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

On Sun, 19 Jul 2026 22:57:40 +0800 you wrote:
> pktgen_change_name() replaces pkt_dev->entry while holding t->if_lock.
> pktgen_remove_device() removes the same entry before
> _rem_dev_from_if_list() takes that lock.
>
> This allows the following interleaving:
>
> CPU 0 (NETDEV_CHANGENAME) CPU 1 (kpktgend)
> if_lock(t)
> proc_remove(pkt_dev->entry)
> proc_remove(pkt_dev->entry)
> pkt_dev->entry = proc_create_data(...)
> if_unlock(t)
>
> [...]

Here is the summary with links:
- net: pktgen: fix proc entry use-after-free
https://git.kernel.org/netdev/net/c/817ff6efdb7f

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