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

2017-08-10 Thread David Miller
From: Willem de Bruijn Date: Thu, 10 Aug 2017 12:41:58 -0400 > From: Willem de Bruijn > > Updates to tp_reserve can race with reads of the field in > packet_set_ring. Avoid this by holding the socket lock during > updates in setsockopt PACKET_RESERVE. > > This bug was discovered by syzkaller.

[PATCH net] packet: fix tp_reserve race in packet_set_ring

2017-08-10 Thread Willem de Bruijn
From: Willem de Bruijn Updates to tp_reserve can race with reads of the field in packet_set_ring. Avoid this by holding the socket lock during updates in setsockopt PACKET_RESERVE. This bug was discovered by syzkaller. Fixes: 8913336a7e8d ("packet: add PACKET_RESERVE sockopt") Reported-by: Andr