From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753749AbbLEPeN (ORCPT ); Sat, 5 Dec 2015 10:34:13 -0500 Received: from mail-ph.de-nserver.de ([85.158.179.214]:19218 "EHLO mail-ph.de-nserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753525AbbLEPeL (ORCPT ); Sat, 5 Dec 2015 10:34:11 -0500 X-Fcrdns: No Subject: Re: Asterisk deadlocks since Kernel 4.1 To: Hannes Frederic Sowa , Florian Weimer , Thomas Gleixner , netdev@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, herbert@gondor.apana.org.au References: <1447933294.1974772.444210441.67F1AC5E@webmail.messagingengine.com> <564DB5F5.9060208@profihost.ag> <1447936902.1986892.444251921.3928A049@webmail.messagingengine.com> <564DC4A5.70104@profihost.ag> <564DCC4C.1090009@redhat.com> <564E2852.8000200@profihost.ag> <56530A42.6030609@profihost.ag> <1448283451.4019628.447573353.3659E447@webmail.messagingengine.com> <565EBDC1.1090808@profihost.ag> <8737vlt6xb.fsf@stressinduktion.org> <20151205141906.GB31897@pmhahn.de> From: Stefan Priebe Message-ID: <566303F0.5040007@profihost.ag> Date: Sat, 5 Dec 2015 16:34:08 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <20151205141906.GB31897@pmhahn.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-User-Auth: Auth by s.priebe@profihost.ag through 185.39.223.5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Philipp, Am 05.12.2015 um 15:19 schrieb Philipp Matthias Hahn: > Hello Hannes, > > On Wed, Dec 02, 2015 at 12:40:32PM +0100, Hannes Frederic Sowa wrote: >>> git bisect tells me it stopped working after those two commits were applied: >>> >>> commit d48623677191e0f035d7afd344f92cf880b01f8e >>> Author: Herbert Xu >>> Date: Tue Sep 22 11:38:56 2015 +0800 >>> >>> netlink: Replace rhash_portid with bound >>> >>> commit 4e27762417669cb459971635be550eb7b5598286 >>> Author: Herbert Xu >>> Date: Fri Sep 18 19:16:50 2015 +0800 >>> >>> netlink: Fix autobind race condition that leads to zero port ID >> >> Cool, thanks a lot. Does this patch make a difference? >> >> diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c >> index 59651af..278e94c 100644 >> --- a/net/netlink/af_netlink.c >> +++ b/net/netlink/af_netlink.c >> @@ -1137,7 +1137,7 @@ static int netlink_insert(struct sock *sk, u32 portid) >> >> /* We need to ensure that the socket is hashed and visible. */ >> smp_wmb(); >> - nlk_sk(sk)->bound = portid; >> + nlk_sk(sk)->bound = true; >> >> err: >> release_sock(sk); > > Didn't help, test program still gets stuck; sorry :-( Can you please try this patch on top of 4.1.13 (which helps me): http://pastebin.com/raw.php?i=hiuq4bsW Stefan > > Philipp >