Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753838AbbETQDr (ORCPT ); Wed, 20 May 2015 12:03:47 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:56013 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753262AbbETQDp (ORCPT ); Wed, 20 May 2015 12:03:45 -0400 Date: Wed, 20 May 2015 12:03:40 -0400 (EDT) Message-Id: <20150520.120340.894954416645925582.davem@davemloft.net> To: mkubecek@suse.cz Cc: nicolas.dichtel@6wind.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kuznet@ms2.inr.ac.ru, jmorris@namei.org, yoshfuji@linux-ipv6.org, kaber@trash.net, roopa@cumulusnetworks.com Subject: Re: [PATCH net v3 0/2] IPv6 ECMP route add/replace fixes From: David Miller In-Reply-To: References: <20150516.171823.1391641644498357985.davem@davemloft.net> X-Mailer: Mew version 6.6 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 20 May 2015 09:03:44 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1055 Lines: 24 From: Michal Kubecek Date: Mon, 18 May 2015 20:53:50 +0200 (CEST) > (1) When adding a nexthop of a multipath route fails (e.g. because of a > conflict with an existing route), we are supposed to delete nexthops > already added. However, currently we try to also delete all nexthops we > haven't even tried to add yet so that a "ip route add" command can > actually remove pre-existing routes if it fails. > > (2) Attempt to replace a multipath route results in a broken siblings > linked list. Following commands (like "ip route del") can then either > follow a link into freed memory or end in an infinite loop (if the slab > object has been reused). > > v2: fix an omission in first patch > > v3: change the semantics of replace operation to better match IPv4 Series applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/