Re: [PATCH net-next v2] netdevsim: reject port addition and clean up ports after a failed reload
From: patchwork-bot+netdevbpf
Date: Thu Nov 05 2026 - 18:20:31 EST
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Fri, 30 Oct 2026 03:13:20 +0300 you wrote:
> nsim_drv_port_add() does not check devlink_is_reload_failed(), so ports
> can be added via new_port after a failed reload. nsim_dev_reload_destroy()
> returns early in that state, leaving them behind. nsim_drv_remove() then
> hits WARN_ON in bpf_offload_dev_destroy() and a subsequent use-after-free.
>
> Block port creation with -EIO when reload has failed, and delete any
> leftover ports on the early-return path as a safety net.
>
> [...]
Here is the summary with links:
- [net-next,v2] netdevsim: reject port addition and clean up ports after a failed reload
https://git.kernel.org/netdev/net-next/c/39c23556e79f
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html