public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Eric Dumazet <eric.dumazet@gmail.com>
To: Steve Muckle <smuckle@codeaurora.org>
Cc: davem@davemloft.net, netdev@vger.kernel.org,
	linux-arm-msm@vger.kernel.org
Subject: Re: invalid socket structure with ip_early_demux
Date: Fri, 01 Feb 2013 18:25:17 -0800	[thread overview]
Message-ID: <1359771917.30177.52.camel@edumazet-glaptop> (raw)
In-Reply-To: <1359771370.30177.50.camel@edumazet-glaptop>

On Fri, 2013-02-01 at 18:16 -0800, Eric Dumazet wrote:

> skb->sk might be a TIMEWAIT socket.
> 
> Therefore, you cant blindly use skb->sk->sk_socket
> 

A fix would be to add after :

sk = skb->sk;

the following code :

if (sk && sk->sk_state == TCP_TIME_WAIT)
	sk = NULL;

  reply	other threads:[~2013-02-02  2:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-02  2:08 invalid socket structure with ip_early_demux Steve Muckle
2013-02-02  2:16 ` Eric Dumazet
2013-02-02  2:25   ` Eric Dumazet [this message]
2013-02-02  2:27     ` Steve Muckle
2013-02-02  2:34       ` Eric Dumazet

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=1359771917.30177.52.camel@edumazet-glaptop \
    --to=eric.dumazet@gmail.com \
    --cc=davem@davemloft.net \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=smuckle@codeaurora.org \
    /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