[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1384978559.10637.24.camel@edumazet-glaptop2.roam.corp.google.com>
Date: Wed, 20 Nov 2013 12:15:59 -0800
From: Eric Dumazet <eric.dumazet@...il.com>
To: David Miller <davem@...emloft.net>
Cc: dborkman@...hat.com, netdev@...r.kernel.org,
noureddine@...stanetworks.com, greearb@...delatech.com
Subject: Re: [PATCH net] packet: fix use after free race in send path when
dev is released
On Wed, 2013-11-20 at 15:07 -0500, David Miller wrote:
> From: Daniel Borkmann <dborkman@...hat.com>
> > Yep, will try if this approach works, in other words doing the earlier
> > exit via !po->running, plus deferring the dev_put() et al to RCU.
>
> Thank you. You might have to wrap the sendmsg path in an rcu lock
> sequence.
Note that dev_put() / dev_hold() are blazingly fast ;)
--
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