Re: [PATCH net v2] netdevsim: fix panic when NETIF_F_LOOPBACK is set on a VF port

From: patchwork-bot+netdevbpf

Date: Wed Sep 02 2026 - 21:45:23 EST


Hello:

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

On Tue, 1 Sep 2026 14:18:50 +0800 you wrote:
> A netdevsim VF port cannot process incoming data. It never runs
> nsim_queue_init(), so ns->rq is NULL, and nsim_vf_netdev_ops has no
> ->ndo_open, so its NAPI is never set up either.
>
> nsim_setup() offers NETIF_F_LOOPBACK to both PF and VF ports. Turning
> it on for a VF makes nsim_start_xmit() take ns itself as peer_ns and
> dereference peer_ns->rq[], which panics.
>
> [...]

Here is the summary with links:
- [net,v2] netdevsim: fix panic when NETIF_F_LOOPBACK is set on a VF port
https://git.kernel.org/netdev/net-next/c/5add7c8d59fa

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