Files
linux/net
Willem de Bruijn 91b2b39b49 packet: fix tp_reserve race in packet_set_ring
[ Upstream commit c27927e372 ]

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: 8913336a7e ("packet: add PACKET_RESERVE sockopt")
Reported-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-08-12 19:34:27 -07:00
..
2017-04-12 22:02:40 +02:00
2017-06-12 15:21:20 -04:00
2017-06-01 11:49:39 -04:00
2017-01-24 11:07:35 +01:00