From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net] ping: implement proper locking Date: Fri, 24 Mar 2017 19:10:16 -0700 (PDT) Message-ID: <20170324.191016.1704224805339195329.davem@davemloft.net> References: <1490398185.24891.5.camel@edumazet-glaptop3.roam.corp.google.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, solar@openwall.com, andreyknvl@google.com, edumazet@google.com To: eric.dumazet@gmail.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:47948 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936795AbdCYCKk (ORCPT ); Fri, 24 Mar 2017 22:10:40 -0400 In-Reply-To: <1490398185.24891.5.camel@edumazet-glaptop3.roam.corp.google.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Eric Dumazet Date: Fri, 24 Mar 2017 16:29:45 -0700 > From: Eric Dumazet > > We got a report of yet another bug in ping > > http://www.openwall.com/lists/oss-security/2017/03/24/6 > > ->disconnect() is not called with socket lock held. > > Fix this by acquiring ping rwlock earlier. > > Thanks to Alexander and Andrey for letting us know of this problem. > > Fixes: c319b4d76b9e ("net: ipv4: add IPPROTO_ICMP socket kind") > Reported-by: Solar Designer > Reported-by: Andrey Konovalov Eric, please add a proper signoff for yourself, and also please add the following tag: Reported-by: Daniel Jiang Thank you.