[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1333701276.5312.20.camel@edumazet-glaptop>
Date: Fri, 06 Apr 2012 10:34:36 +0200
From: Eric Dumazet <eric.dumazet@...il.com>
To: David Miller <davem@...emloft.net>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] netlink: fix races after skb queueing
On Fri, 2012-04-06 at 04:21 -0400, David Miller wrote:
> From: Eric Dumazet <eric.dumazet@...il.com>
> Date: Fri, 06 Apr 2012 10:17:46 +0200
>
> > As soon as an skb is queued into socket receive_queue, another thread
> > can consume it, so we are not allowed to reference skb anymore, or risk
> > use after free.
> >
> > Signed-off-by: Eric Dumazet <eric.dumazet@...il.com>
>
> Good catch Eric.
>
> Applied and queued up for -stable.
Same problem with sock_queue_err_skb(), I'll send a patch for it
Thanks
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists