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>] [day] [month] [year] [list]
Message-ID: <532072F5.4000304@ingate.com>
Date:	Wed, 12 Mar 2014 15:45:09 +0100
From:	Martin Vopatek <vopatek@...ate.com>
To:	netdev@...r.kernel.org
Subject: iproute2: ip addr flush fail on many secondary addresses

Hi!

ip addr flush dev eth0

Returns:
Failed to send flush request: Cannot assign requested address
when I have many (> 62) secondary addresses.

Deletion is handled by ipaddr_flush sending two filters
(secondary/primary) to rtnl_dump_filter_l.

With a lot of addresses rtnl_dump_filter_l calls recvmsg
more than once. However, all filters are traversed for each
recv call, so the primary address will be deleted before
all the secondary addresses have been removed.

Running with stat the primary address is not the last.
ip -stat -stat addr flush dev eth0

Flushing secondary/primary addresses has been addressed before:
b49240ec7eab91418d2f090536bf8cd2205988d6
3bc1c4f29777171b484d36abf673667e3729202b

As mentioned there, trying to remove the remaining secondary
addresses will cause an error as they were auto removed when
deleting the primary.

Workaround:
sysctl -w net.ipv4.conf.all.promote_secondaries=1

Regards, vopatek
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ