Re: [PATCH net] packet: avoid panic in packet_getsockopt()

2017-10-20 Thread Eric Dumazet
On Fri, Oct 20, 2017 at 5:53 PM, David Miller wrote: > From: David Miller > Date: Sat, 21 Oct 2017 01:50:08 +0100 (WEST) > >> From: Eric Dumazet >> Date: Wed, 18 Oct 2017 15:08:24 -0700 >> >>> From: Eric Dumazet >>> >>> syzkaller got crashes in packet_getsockopt() processing >>> PACKET_ROLLOVER

Re: [PATCH net] packet: avoid panic in packet_getsockopt()

2017-10-20 Thread David Miller
From: David Miller Date: Sat, 21 Oct 2017 01:50:08 +0100 (WEST) > From: Eric Dumazet > Date: Wed, 18 Oct 2017 15:08:24 -0700 > >> From: Eric Dumazet >> >> syzkaller got crashes in packet_getsockopt() processing >> PACKET_ROLLOVER_STATS command while another thread was managing >> to change po

Re: [PATCH net] packet: avoid panic in packet_getsockopt()

2017-10-20 Thread David Miller
From: Eric Dumazet Date: Wed, 18 Oct 2017 15:08:24 -0700 > From: Eric Dumazet > > syzkaller got crashes in packet_getsockopt() processing > PACKET_ROLLOVER_STATS command while another thread was managing > to change po->rollover > > Using RCU will fix this bug. We might later add proper RCU an

[PATCH net] packet: avoid panic in packet_getsockopt()

2017-10-18 Thread Eric Dumazet
From: Eric Dumazet syzkaller got crashes in packet_getsockopt() processing PACKET_ROLLOVER_STATS command while another thread was managing to change po->rollover Using RCU will fix this bug. We might later add proper RCU annotations for sparse sake. Fixes: a9b6391814d5 ("packet: rollover statis