Netdev List
 help / color / mirror / Atom feed
* [PATCH net 0/2] ipvlan: make addrs_lock be per port
@ 2025-12-02 14:11 Dmitry Skorodumov
  2025-12-02 14:11 ` [PATCH net 1/2] ipvlan: Make the " Dmitry Skorodumov
  2025-12-02 14:11 ` [PATCH net 2/2] ipvlan: Take addr_lock in ipvlan_open() Dmitry Skorodumov
  0 siblings, 2 replies; 5+ messages in thread
From: Dmitry Skorodumov @ 2025-12-02 14:11 UTC (permalink / raw)
  To: netdev; +Cc: Dmitry Skorodumov, Paolo Abeni

It seems that initial code of the ipvlan was written in the assumption
that all addr-change occurs under rtnl-lock. But it's not true
for the IPv6 case.

Make addrs_lock be per port and fix possible races.

Note: the race is very rare and unlikely to occur in real environment.

Dmitry Skorodumov (2):
  ipvlan: Make the addrs_lock be per port
  ipvlan: Take addr_lock in ipvlan_open()

 drivers/net/ipvlan/ipvlan.h      |  2 +-
 drivers/net/ipvlan/ipvlan_main.c | 34 +++++++++++++++++---------------
 2 files changed, 19 insertions(+), 17 deletions(-)

CC: Paolo Abeni <pabeni@redhat.com>
-- 
2.25.1


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

end of thread, other threads:[~2025-12-04 14:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-02 14:11 [PATCH net 0/2] ipvlan: make addrs_lock be per port Dmitry Skorodumov
2025-12-02 14:11 ` [PATCH net 1/2] ipvlan: Make the " Dmitry Skorodumov
2025-12-02 14:11 ` [PATCH net 2/2] ipvlan: Take addr_lock in ipvlan_open() Dmitry Skorodumov
2025-12-04 14:42   ` Paolo Abeni
2025-12-04 14:47     ` Eric Dumazet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox