From: David Miller Subject: Re: [net 1/1] tipc: fix list sorting bug in function tipc_group_update_member() Date: Tue, 19 Dec 2017 14:10:22 -0500 (EST) Message-ID: <20171219.141022.1987154596637457193.davem@davemloft.net> References: <1513623785-26566-1-git-send-email-jon.maloy@ericsson.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, mohan.krishna.ghanta.krishnamurthy@ericsson.com, tung.q.nguyen@dektech.com.au, hoang.h.le@dektech.com.au, canh.d.luu@dektech.com.au, ying.xue@windriver.com, tipc-discussion@lists.sourceforge.net To: jon.maloy@ericsson.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:55192 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751305AbdLSTKX (ORCPT ); Tue, 19 Dec 2017 14:10:23 -0500 In-Reply-To: <1513623785-26566-1-git-send-email-jon.maloy@ericsson.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Jon Maloy Date: Mon, 18 Dec 2017 20:03:05 +0100 > When, during a join operation, or during message transmission, a group > member needs to be added to the group's 'congested' list, we sort it > into the list in ascending order, according to its current advertised > window size. However, we miss the case when the member is already on > that list. This will have the result that the member, after the window > size has been decremented, might be at the wrong position in that list. > This again may have the effect that we during broadcast and multicast > transmissions miss the fact that a destination is not yet ready for > reception, and we end up sending anyway. From this point on, the > behavior during the remaining session is unpredictable, e.g., with > underflowing window sizes. > > We now correct this bug by unconditionally removing the member from > the list before (re-)sorting it in. > > Signed-off-by: Jon Maloy Applied, thanks Jon.