Re: [PATCH net] packet: fix race condition in packet_set_ring

2016-12-02 Thread David Miller
From: Eric Dumazet Date: Wed, 30 Nov 2016 14:55:36 -0800 > From: Philip Pettersson > > When packet_set_ring creates a ring buffer it will initialize a > struct timer_list if the packet version is TPACKET_V3. This value > can then be raced by a different thread calling setsockopt to > set the ve

[PATCH net] packet: fix race condition in packet_set_ring

2016-11-30 Thread Eric Dumazet
From: Philip Pettersson When packet_set_ring creates a ring buffer it will initialize a struct timer_list if the packet version is TPACKET_V3. This value can then be raced by a different thread calling setsockopt to set the version to TPACKET_V1 before packet_set_ring has finished. This leads to