Re: [PATCH 1/1] packet: race condition in packet_bind

2015-11-05 Thread William Dauchy
Hi Francesco, On Thu, Nov 5, 2015 at 5:16 PM, Francesco Ruggeri wrote: > There is a race conditions between packet_notifier and packet_bind{_spkt}. > > It happens if packet_notifier(NETDEV_UNREGISTER) executes between the > time packet_bind{_spkt} takes a reference on the new netdevice and the >

Re: [PATCH 1/1] packet: race condition in packet_bind

2015-11-05 Thread David Miller
From: frugg...@aristanetworks.com (Francesco Ruggeri) Date: Thu, 05 Nov 2015 08:16:14 -0800 > There is a race conditions between packet_notifier and packet_bind{_spkt}. > > It happens if packet_notifier(NETDEV_UNREGISTER) executes between the > time packet_bind{_spkt} takes a reference on the new

[PATCH 1/1] packet: race condition in packet_bind

2015-11-05 Thread Francesco Ruggeri
There is a race conditions between packet_notifier and packet_bind{_spkt}. It happens if packet_notifier(NETDEV_UNREGISTER) executes between the time packet_bind{_spkt} takes a reference on the new netdevice and the time packet_do_bind sets po->ifindex. In this case the notification can be missed.