lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250325213056.332902-1-sdf@fomichev.me>
Date: Tue, 25 Mar 2025 14:30:47 -0700
From: Stanislav Fomichev <sdf@...ichev.me>
To: netdev@...r.kernel.org
Cc: davem@...emloft.net,
	edumazet@...gle.com,
	kuba@...nel.org,
	pabeni@...hat.com
Subject: [PATCH net-next 0/9] net: hold instance lock during NETDEV_UP/REGISTER/UNREGISTER

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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ