stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Priebe - Profihost AG <s.priebe@profihost.ag>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Hannes Frederic Sowa <hannes@stressinduktion.org>,
	Florian Weimer <fweimer@redhat.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	netdev@vger.kernel.org, linux-fsdevel@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	jannik Winkel <j.winkel@profihost.ag>,
	Marco Schinkel <m.schinkel@profihost.ag>,
	"David S. Miller" <davem@davemloft.net>,
	stable@vger.kernel.org
Subject: Re: Asterisk deadlocks since Kernel 4.1
Date: Mon, 7 Dec 2015 07:58:25 +0100	[thread overview]
Message-ID: <56652E11.4010604@profihost.ag> (raw)
In-Reply-To: <20151207012042.GA7420@gondor.apana.org.au>

Hi Herbert,

Am 07.12.2015 um 02:20 schrieb Herbert Xu:
> On Sun, Dec 06, 2015 at 09:56:34PM +0100, Stefan Priebe wrote:
>> Hi Herbert,
>>
>> i think i found the issue in 4.1 with netlink. Somebody made a
>> mistake while backporting or cherry-picking your patch "netlink: Fix
>> autobind race condition that leads to zero port ID" to 4.1.
>>
>> It misses a goto in 4.1.
>>
>> This goto is missing in 4.1:
>>
>> diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
>> index 4017e12..f15c001 100644
>> --- a/net/netlink/af_netlink.c
>> +++ b/net/netlink/af_netlink.c
>> @@ -1132,7 +1132,6 @@ static int netlink_insert(struct sock *sk, u32 portid)
>>                 if (err == -EEXIST)
>>                         err = -EADDRINUSE;
>>                 sock_put(sk);
>> -               goto err;
>>         }
>>
>>         /* We need to ensure that the socket is hashed and visible. */
>>
>> Can you please confirm, that this is not correct and might cause
>> those issues.
> 
> Well spotted! Yes this would be a fatal error and can cause the
> problems you guys are seeing.

Thanks, good. Can you help me to get this fix upstream into the stable
lines?

Stefan

> 
> Thanks,
> 

  reply	other threads:[~2015-12-07  6:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <564DC4A5.70104@profihost.ag>
     [not found] ` <564DCC4C.1090009@redhat.com>
     [not found]   ` <564E2852.8000200@profihost.ag>
     [not found]     ` <56530A42.6030609@profihost.ag>
     [not found]       ` <1448283451.4019628.447573353.3659E447@webmail.messagingengine.com>
     [not found]         ` <565EBDC1.1090808@profihost.ag>
     [not found]           ` <8737vlt6xb.fsf@stressinduktion.org>
     [not found]             ` <5661DAC4.8040909@profihost.ag>
     [not found]               ` <20151205010819.GA21889@gondor.apana.org.au>
     [not found]                 ` <5664A102.2030602@profihost.ag>
2015-12-07  1:20                   ` Asterisk deadlocks since Kernel 4.1 Herbert Xu
2015-12-07  6:58                     ` Stefan Priebe - Profihost AG [this message]
2015-12-08  6:13                       ` netlink: Add missing goto statement to netlink_insert Herbert Xu
2015-12-08 16:21                         ` David Miller
2015-12-09  3:29                         ` Greg KH
2015-12-09  3:30                         ` Patch "netlink: Add missing goto statement to netlink_insert" has been added to the 4.1-stable tree gregkh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56652E11.4010604@profihost.ag \
    --to=s.priebe@profihost.ag \
    --cc=davem@davemloft.net \
    --cc=fweimer@redhat.com \
    --cc=hannes@stressinduktion.org \
    --cc=herbert@gondor.apana.org.au \
    --cc=j.winkel@profihost.ag \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=m.schinkel@profihost.ag \
    --cc=netdev@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).