From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752314AbbIOBof (ORCPT ); Mon, 14 Sep 2015 21:44:35 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:55516 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751549AbbIOBoe convert rfc822-to-8bit (ORCPT ); Mon, 14 Sep 2015 21:44:34 -0400 Message-ID: <1442281471.2298.76.camel@decadent.org.uk> Subject: Re: [PATCH 2.6.32 15/62] udp: fix behavior of wrong checksums From: Ben Hutchings To: Willy Tarreau Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Eric Dumazet , Willem de Bruijn , "David S. Miller" Date: Tue, 15 Sep 2015 02:44:31 +0100 In-Reply-To: <20150912225607.214241293@1wt.eu> References: <20150912225607.214241293@1wt.eu> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Mailer: Evolution 3.12.9-1+b1 Mime-Version: 1.0 X-SA-Exim-Connect-IP: 192.168.2.6 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2015-09-13 at 00:56 +0200, Willy Tarreau wrote: > 2.6.32-longterm review patch. If anyone has any objections, please let me know. > > ------------------ > > From: Eric Dumazet > > commit beb39db59d14990e401e235faf66a6b9b31240b0 upstream. > > We have two problems in UDP stack related to bogus checksums : > > 1) We return -EAGAIN to application even if receive queue is not empty. > This breaks applications using edge trigger epoll() > > 2) Under UDP flood, we can loop forever without yielding to other > processes, potentially hanging the host, especially on non SMP. > > This patch is an attempt to make things better. > > We might in the future add extra support for rt applications > wanting to better control time spent doing a recv() in a hostile > environment. For example we could validate checksums before queuing > packets in socket receive queue. > > Signed-off-by: Eric Dumazet > Cc: Willem de Bruijn > Signed-off-by: David S. Miller > Signed-off-by: Ben Hutchings > > CVE-2015-5364 [...] As there were two different problems, each deserving its own CVE ID, this also fixes CVE-2015-5366. Ben.