Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2849325ybi; Sun, 9 Jun 2019 22:57:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyMRz6gZDfrXuZQpyuTBniGVIP59gpo9EqhsK8ejJG/HX6y7PiEDdoa/VwAY6rC5N7X0DH+ X-Received: by 2002:a17:902:b093:: with SMTP id p19mr33399796plr.174.1560146237988; Sun, 09 Jun 2019 22:57:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560146237; cv=none; d=google.com; s=arc-20160816; b=jDtOuvYNYzhzbZNx13cneWhcAgn+lDJjA5ti2x2g+JtRNAtCV+vODjrgbIChvBvH7m QxZq+vekSICDdLqCn8pfA6vda4h47ShJW+SuqsFoDqw1sqv/ikXzIEaShKwdjf3HeFpW 7gz+X0uclGNCwS3tQ7Yx/5xzDxm7gf3FODuaV6uDB66u7uwjYOxjm6i88y3WzxUtBOx1 KlcNSU7aKGsYNa/5Lq0nKksmKu6OmQd6/cTsyGnupDjFnpoQRXaKVjMdKQyKxBTtSKv9 y4pOTV4dz/QKgLgeO5n0yjsB8iXS0HUkjSw+spdWKNqYgO9zmiO1qtJlRE2Ey3ljgdqm Gwfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=siqiCzZOHv54t7cAH6VcpdSHAKYDkX8ByfPvqA3FLhM=; b=nCYZbe++Cw/qfakiT/YR7Kjwo/dUck79nJJGN5M2P/nh4EdwwQ1OnePclAZFI8YMDH NBbMGoL7sjd4X89fsZ52FG+Q3XT9YFD42NO4GL20P2KOc/aMhO2dLDcfYCA5jqNs2aj9 1bIcou/r0tB/IRSosd/piw1+IhTUy685RQg13qfN6bqNZg/SeN+0V3cOhyu5x+OJZ01M yjb26C6eCKqri/tvS6+I64N5r99k/OStWSWWkkr/bp8SpEwAXxRvqd0tZDG4Y1i+Pifu gJZOXFaviSEDt/fG+9MIn8QPGgV2a8+sVx4Zvu2DeGv+FUkGpGPDQrB8mAxf/QB7eckt p5KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vmpstn2L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q14si8586616pls.327.2019.06.09.22.57.03; Sun, 09 Jun 2019 22:57:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vmpstn2L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387730AbfFJF4z (ORCPT + 99 others); Mon, 10 Jun 2019 01:56:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:36960 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387667AbfFJF4z (ORCPT ); Mon, 10 Jun 2019 01:56:55 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5BDA4207E0; Mon, 10 Jun 2019 05:56:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560146214; bh=otPJTHxlokMjeljQtLNP9Lovq2qwmoC6xNsCFs/aF0k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vmpstn2Luy8OSYtFL5NCL4Kf6dphtYgGHs0Oi4/pglIW83K+jfrqsLMCbDRIyueUc 4adiZKoT1JCaKrsjwfVysykGTcyKOEI2EzFR0JCjJGFfeuIT7nuowRap84NY8Aj+rg RsxVqXq6PvHJxGzUPCpQIJMtEWP519BHrHWruKdI= Date: Mon, 10 Jun 2019 07:56:52 +0200 From: Greg KH To: nobuhiro1.iwamatsu@toshiba.co.jp Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, alan.maguire@oracle.com, dsahern@gmail.com, davem@davemloft.net Subject: Re: [PATCH 4.14 03/35] neighbor: Call __ipv4_neigh_lookup_noref in neigh_xmit Message-ID: <20190610055652.GD13825@kroah.com> References: <20190609164125.377368385@linuxfoundation.org> <20190609164125.756810906@linuxfoundation.org> <20190610011024.utn5fft7nocabqxb@toshiba.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.0 (2019-05-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 10, 2019 at 01:13:16AM +0000, nobuhiro1.iwamatsu@toshiba.co.jp wrote: > Hi again. > > > -----Original Message----- > > From: stable-owner@vger.kernel.org > > [mailto:stable-owner@vger.kernel.org] On Behalf Of Nobuhiro Iwamatsu > > Sent: Monday, June 10, 2019 10:10 AM > > To: Greg Kroah-Hartman > > Cc: linux-kernel@vger.kernel.org; stable@vger.kernel.org; Alan Maguire > > ; David Ahern ; David S. > > Miller > > Subject: Re: [PATCH 4.14 03/35] neighbor: Call __ipv4_neigh_lookup_noref > > in neigh_xmit > > > > Hi, > > > > On Sun, Jun 09, 2019 at 06:42:09PM +0200, Greg Kroah-Hartman wrote: > > > From: David Ahern > > > > > > [ Upstream commit 4b2a2bfeb3f056461a90bd621e8bd7d03fa47f60 ] > > > > > > Commit cd9ff4de0107 changed the key for IFF_POINTOPOINT devices to > > > INADDR_ANY but neigh_xmit which is used for MPLS encapsulations was > > > not updated to use the altered key. The result is that every packet > > Tx > > > does a lookup on the gateway address which does not find an entry, a > > > new one is created only to find the existing one in the table right > > > before the insert since arp_constructor was updated to reset the > > > primary key. This is seen in the allocs and destroys counters: > > > ip -s -4 ntable show | head -10 | grep alloc > > > > > > which increase for each packet showing the unnecessary overhread. > > > > > > Fix by having neigh_xmit use __ipv4_neigh_lookup_noref for > > NEIGH_ARP_TABLE. > > > > > > Fixes: cd9ff4de0107 ("ipv4: Make neigh lookup keys for > > > loopback/point-to-point devices be INADDR_ANY") > > > Reported-by: Alan Maguire > > > Signed-off-by: David Ahern > > > Tested-by: Alan Maguire > > > Signed-off-by: David S. Miller > > > Signed-off-by: Greg Kroah-Hartman > > > --- > > > > This commit also requires the following commit: > > > > commit 9b3040a6aafd7898ece7fc7efcbca71e42aa8069 > > Author: David Ahern > > Date: Sun May 5 11:16:20 2019 -0700 > > > > ipv4: Define __ipv4_neigh_lookup_noref when CONFIG_INET is disabled > > > > Define __ipv4_neigh_lookup_noref to return NULL when CONFIG_INET is > > disabled. > > > > Fixes: 4b2a2bfeb3f0 ("neighbor: Call __ipv4_neigh_lookup_noref in > > neigh_xmit") > > Reported-by: kbuild test robot > > Signed-off-by: David Ahern > > Signed-off-by: David S. Miller > > > > And this is also necessary for 4.4.y, 4.14.y, 4.19.y and 5.1.y. > > 4.4.y, 4.9.y, 4.19.y and 5.1.y. Thanks for the information, now queued up everywhere. greg k-h