[PATCH net, 0/2] net: Add llist_node init and fix hv_netvsc namespace error

Haiyang Zhang posted 2 patches 2 months, 2 weeks ago
drivers/net/hyperv/netvsc_drv.c | 10 +++++++++-
net/core/net_namespace.c        |  3 +++
2 files changed, 12 insertions(+), 1 deletion(-)
[PATCH net, 0/2] net: Add llist_node init and fix hv_netvsc namespace error
Posted by Haiyang Zhang 2 months, 2 weeks ago
From: Haiyang Zhang <haiyangz@microsoft.com>

Add llist_node init to setup_net(), so we can check if the node is on list.
Then, fix the namespace callback function in hv_netvsc.

Haiyang Zhang (2):
  net: core: Fix missing init of llist_node in setup_net()
  hv_netvsc: Fix panic during namespace deletion with VF

 drivers/net/hyperv/netvsc_drv.c | 10 +++++++++-
 net/core/net_namespace.c        |  3 +++
 2 files changed, 12 insertions(+), 1 deletion(-)

-- 
2.34.1
Re: [PATCH net, 0/2] net: Add llist_node init and fix hv_netvsc namespace error
Posted by Jakub Kicinski 2 months, 2 weeks ago
On Tue, 22 Jul 2025 16:50:46 -0700 Haiyang Zhang wrote:
> Add llist_node init to setup_net(), so we can check if the node is on list.
> Then, fix the namespace callback function in hv_netvsc.

Can you not do the moving from a workqueue? Schedule a work, let the
stack finish what it's doing, take rtnl_lock, do you your own moving?
-- 
pw-bot: cr