From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: [PATCH] net/{ipv4,ipv6}: Do not put target net if input nsid is invalid Date: Thu, 25 Oct 2018 14:16:08 -0600 Message-ID: <740bc515-3eda-895c-95d1-8785d947ff35@gmail.com> References: <20181025191825.23936-1-bjorn@mork.no> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: Li RongQing , David Miller To: =?UTF-8?Q?Bj=c3=b8rn_Mork?= , netdev@vger.kernel.org Return-path: Received: from mail-pf1-f196.google.com ([209.85.210.196]:43592 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725941AbeJZEuW (ORCPT ); Fri, 26 Oct 2018 00:50:22 -0400 Received: by mail-pf1-f196.google.com with SMTP id h4-v6so847777pfi.10 for ; Thu, 25 Oct 2018 13:16:11 -0700 (PDT) In-Reply-To: <20181025191825.23936-1-bjorn@mork.no> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 10/25/18 1:18 PM, Bjørn Mork wrote: > The cleanup path will put the target net when netnsid is set. So we must > reset netnsid if the input is invalid. > > Fixes: d7e38611b81e ("net/ipv4: Put target net when address dump fails due to bad attributes") > Fixes: 242afaa6968c ("net/ipv6: Put target net when address dump fails due to bad attributes") > Cc: David Ahern > Signed-off-by: Bjørn Mork > --- > net/ipv4/devinet.c | 1 + > net/ipv6/addrconf.c | 1 + > 2 files changed, 2 insertions(+) > Reviewed-by: David Ahern