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  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sat, 07 Nov 2015 13:17:14 -0500 (EST)
From:	David Miller <>
Subject: Re: [PATCH] inet: delay address promotion check until last request
 in message

From: Julian Anastasov <>
Date: Sat, 7 Nov 2015 01:49:25 +0200 (EET)

> On Fri, 6 Nov 2015, Neil Horman wrote:
>> The solution is to recognize that its pointless to promote an address to be a
>> new primary, if there is a possibility that it will just be removed in the near
>> future.  As such this patch peeks ahead to the next request in the provided
>> netlink message, and, if it is both valid and a RTM_DELADDR request, skips the
>> promotion check.  This eliminates the need to iterate through a nested for loop
> 	flush can provide many parameters. As there is no
> any kind of indication in the netlink message that all addresses
> are removed, we can not avoid the promotion.
>> +	 * Only check for address promotion when this is the last request
>> +	 * in this netlink transaction.  It allows this operation to complete
>> +	 * in O(n) time rather than O(n^2)
> 	It is not correct to assume that one promotion per
> transaction is enough. The promotion happens in every subnet,
> it was not once per device.

Agreed, this optimization is invalid.
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to
More majordomo info at

Powered by blists - more mailing lists