[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20100318.211657.35047904.davem@davemloft.net>
Date:	Thu, 18 Mar 2010 21:16:57 -0700 (PDT)
From:	David Miller <davem@...emloft.net>
To:	eric.dumazet@...il.com
Cc:	netdev@...r.kernel.org
Subject: Re: [PATCH net-2.6] net: Potential null skb->dev dereference
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Fri, 19 Mar 2010 00:19:38 +0100
> When doing "ifenslave -d bond0 eth0", there is chance to get NULL
> dereference in netif_receive_skb(), because dev->master suddenly becomes
> NULL after we tested it.
> 
> We should use ACCESS_ONCE() to avoid this (or rcu_dereference())
> 
> Signed-off-by: Eric Dumazet <eric.dumazet@...il.com>
Applied, thanks Eric.
--
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
 
