From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752563AbcKAUwk (ORCPT ); Tue, 1 Nov 2016 16:52:40 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:35511 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750979AbcKAUwi (ORCPT ); Tue, 1 Nov 2016 16:52:38 -0400 Message-ID: <1478033554.7065.356.camel@edumazet-glaptop3.roam.corp.google.com> Subject: Re: [PATCH] net: ip, diag -- Adjust raw_abort to use unlocked __udp_disconnect From: Eric Dumazet To: Cyrill Gorcunov Cc: netdev@vger.kernel.org, David Miller , dsa@cumulusnetworks.com, jhs@mojatatu.com, linux-kernel@vger.kernel.org, kuznet@ms2.inr.ac.ru, jmorris@namei.org, yoshfuji@linux-ipv6.org, kaber@trash.net, avagin@openvz.org, stephen@networkplumber.org Date: Tue, 01 Nov 2016 13:52:34 -0700 In-Reply-To: <20161101200500.GA1852@uranus.lan> References: <20161101200500.GA1852@uranus.lan> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2016-11-01 at 23:05 +0300, Cyrill Gorcunov wrote: > While being preparing patches for killing raw sockets via > diag netlink interface I noticed that my runs are stuck: > > | [root@pcs7 ~]# cat /proc/`pidof ss`/stack > | [] __lock_sock+0x80/0xc4 > | [] lock_sock_nested+0x47/0x95 > | [] udp_disconnect+0x19/0x33 > | [] raw_abort+0x33/0x42 > | [] sock_diag_destroy+0x4d/0x52 > > which has not been the case before. I narrowed it down to the commit > > | commit 286c72deabaa240b7eebbd99496ed3324d69f3c0 > | Author: Eric Dumazet > | Date: Thu Oct 20 09:39:40 2016 -0700 > | > | udp: must lock the socket in udp_disconnect() > > where we start locking the socket for different reason. > > So the raw_abort escaped the renaming and we have to > fix this typo using __udp_disconnect instead. > The preferred way to cite a bug origin is : Fixes: 286c72deabaa ("udp: must lock the socket in udp_disconnect()") > CC: David S. Miller > CC: Eric Dumazet > CC: David Ahern > CC: Alexey Kuznetsov > CC: James Morris > CC: Hideaki YOSHIFUJI > CC: Patrick McHardy > CC: Andrey Vagin > CC: Stephen Hemminger That is a lot of CC ... > Signed-off-by: Cyrill Gorcunov Acked-by: Eric Dumazet Thanks.