[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170810.095239.721704501665711181.davem@davemloft.net>
Date: Thu, 10 Aug 2017 09:52:39 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: willemdebruijn.kernel@...il.com
Cc: netdev@...r.kernel.org, andreyknvl@...il.com, willemb@...gle.com
Subject: Re: [PATCH net] packet: fix tp_reserve race in packet_set_ring
From: Willem de Bruijn <willemdebruijn.kernel@...il.com>
Date: Thu, 10 Aug 2017 12:41:58 -0400
> From: Willem de Bruijn <willemb@...gle.com>
>
> 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: Andrey Konovalov <andreyknvl@...gle.com>
> Signed-off-by: Willem de Bruijn <willemb@...gle.com>
Also applied and queued up for -stable, thanks Willem.
Powered by blists - more mailing lists