Re: [PATCH net-next 07/12] ipvlan: Don't allow children to use IPs of main

From: Paolo Abeni

Date: Tue Nov 25 2025 - 09:26:36 EST


On 11/20/25 6:49 PM, Dmitry Skorodumov wrote:
> Remember all ip-addresses on main iface and check
> in ipvlan_addr_busy() that addr is not used on main.

Why?

Why using in_dev_for_each_ifa_rcu()/in6_dev->addr_list is not good enough?

Note that IP addtion on the main interface can race with
ipvlan_addr_busy() even with the code you are proposing.

/P