From mboxrd@z Thu Jan 1 00:00:00 1970 From: dormando Subject: Re: [PATCH] ipv4: fix a race in ip4_datagram_release_cb() Date: Sat, 28 Jun 2014 17:25:38 -0700 (PDT) Message-ID: References: <1402407781.3645.426.camel@edumazet-glaptop2.roam.corp.google.com> <1402448128.3645.437.camel@edumazet-glaptop2.roam.corp.google.com> <1402449173.3645.440.camel@edumazet-glaptop2.roam.corp.google.com> <1402450009.3645.444.camel@edumazet-glaptop2.roam.corp.google.com> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Alexey Preobrazhensky , Steffen Klassert , David Miller , paulmck@linux.vnet.ibm.com, netdev@vger.kernel.org, Kostya Serebryany , Dmitry Vyukov , Lars Bull , Eric Dumazet , Bruce Curtis , =?ISO-8859-2?Q?Maciej_=AFenczykowski?= , Alexei Starovoitov To: Eric Dumazet Return-path: Received: from rydia.net ([69.46.88.68]:38165 "EHLO mail.rydia.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751364AbaF2AZk (ORCPT ); Sat, 28 Jun 2014 20:25:40 -0400 In-Reply-To: <1402450009.3645.444.camel@edumazet-glaptop2.roam.corp.google.com> Sender: netdev-owner@vger.kernel.org List-ID: On Tue, 10 Jun 2014, Eric Dumazet wrote: > On Tue, 2014-06-10 at 18:12 -0700, Eric Dumazet wrote: > > > > > For the curious, another problem is in ipv4_sk_update_pmtu() > > > > This can be called on UDP sockets, but from softirq context. > > > > We cannot use sk_dst_lock because this lock is not softirq safe. > > > > I guess we should use xchg() for sk_dst_set() and sk_dst_reset() > > This would be something like this untested patch : > I see this didn't get queued for stable, should it be dropped due to the later patch? (which did get queued for stable).