[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20131120.152120.518403007474992157.davem@davemloft.net>
Date: Wed, 20 Nov 2013 15:21:20 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
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
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Wed, 20 Nov 2013 12:15:59 -0800
> 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 ;)
Oh yes, per-cpu counters, almost forgot :-)))
--
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