netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/9] net: hold instance lock during NETDEV_UP/REGISTER/UNREGISTER
@ 2025-03-25 21:30 Stanislav Fomichev
  2025-03-25 21:30 ` [PATCH net-next 1/9] net: switch to netif_disable_lro in inetdev_init Stanislav Fomichev
                   ` (8 more replies)
  0 siblings, 9 replies; 21+ messages in thread
From: Stanislav Fomichev @ 2025-03-25 21:30 UTC (permalink / raw)
  To: netdev; +Cc: davem, edumazet, kuba, pabeni

Solving the issue reported by Cosmin in [0] requires consistent
lock during NETDEV_UP/REGISTER/UNREGISTER notifiers. This series
addresses that (along with some other fixes in net/ipv4/devinet.c
and net/ipv6/addrconf.c) and appends the patches from Jakub
that were conditional on locked NETDEV_UNREGISTER.

0: https://lore.kernel.org/netdev/700fa36b94cbd57cfea2622029b087643c80cbc9.camel@nvidia.com/

Jakub Kicinski (3):
  net: designate XSK pool pointers in queues as "ops protected"
  netdev: add "ops compat locking" helpers
  netdev: don't hold rtnl_lock over nl queue info get when possible

Stanislav Fomichev (6):
  net: switch to netif_disable_lro in inetdev_init
  net: hold instance lock during NETDEV_REGISTER/UP/UNREGISTER
  net: use netif_disable_lro in ipv6_add_dev
  net: dummy: request ops lock
  net: release instance lock during NETDEV_UNREGISTER for bond/team
  docs: net: document netdev notifier expectations

 Documentation/networking/netdevices.rst |  18 ++++
 drivers/net/bonding/bond_main.c         |   2 +
 drivers/net/dummy.c                     |   1 +
 drivers/net/team/team_core.c            |   2 +
 include/linux/netdevice.h               |   2 +
 include/net/netdev_lock.h               |  16 ++++
 include/net/netdev_rx_queue.h           |   6 +-
 net/core/dev.c                          | 111 ++++++++++++++++++++----
 net/core/dev.h                          |  16 +++-
 net/core/netdev-genl.c                  |  18 ++--
 net/ipv4/devinet.c                      |   2 +-
 net/ipv6/addrconf.c                     |  17 +++-
 net/xdp/xsk_buff_pool.c                 |   7 +-
 13 files changed, 178 insertions(+), 40 deletions(-)

-- 
2.48.1


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2025-03-26 22:02 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-25 21:30 [PATCH net-next 0/9] net: hold instance lock during NETDEV_UP/REGISTER/UNREGISTER Stanislav Fomichev
2025-03-25 21:30 ` [PATCH net-next 1/9] net: switch to netif_disable_lro in inetdev_init Stanislav Fomichev
2025-03-25 21:30 ` [PATCH net-next 2/9] net: hold instance lock during NETDEV_REGISTER/UP/UNREGISTER Stanislav Fomichev
2025-03-26 15:03   ` Cosmin Ratiu
2025-03-26 15:23     ` Stanislav Fomichev
2025-03-26 15:37       ` Cosmin Ratiu
2025-03-26 17:49         ` Stanislav Fomichev
2025-03-26 20:37           ` Stanislav Fomichev
2025-03-26 20:57           ` Cosmin Ratiu
2025-03-26 21:18             ` Cosmin Ratiu
2025-03-26 22:02               ` Stanislav Fomichev
2025-03-26 15:24     ` Cosmin Ratiu
2025-03-26 17:43       ` Stanislav Fomichev
2025-03-25 21:30 ` [PATCH net-next 3/9] net: use netif_disable_lro in ipv6_add_dev Stanislav Fomichev
2025-03-26  7:33   ` kernel test robot
2025-03-25 21:30 ` [PATCH net-next 4/9] net: dummy: request ops lock Stanislav Fomichev
2025-03-25 21:30 ` [PATCH net-next 5/9] net: release instance lock during NETDEV_UNREGISTER for bond/team Stanislav Fomichev
2025-03-25 21:30 ` [PATCH net-next 6/9] docs: net: document netdev notifier expectations Stanislav Fomichev
2025-03-25 21:30 ` [PATCH net-next 7/9] net: designate XSK pool pointers in queues as "ops protected" Stanislav Fomichev
2025-03-25 21:30 ` [PATCH net-next 8/9] netdev: add "ops compat locking" helpers Stanislav Fomichev
2025-03-25 21:30 ` [PATCH net-next 9/9] netdev: don't hold rtnl_lock over nl queue info get when possible Stanislav Fomichev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).