Files
kernel_amazon_mt8127-common/net
Willem de Bruijn fe1fd359c1 packet: fix tp_reserve race in packet_set_ring
commit c27927e372f0785f3303e8fad94b85945e2c97b7 upstream.

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: Willy Tarreau <w@1wt.eu>
2017-11-02 10:45:59 +01:00
..
2017-06-20 14:04:52 +02:00
2013-05-14 13:02:30 -07:00
2013-03-28 01:20:42 -04:00
2016-06-07 10:42:54 +02:00
2013-02-10 19:41:08 -05:00