Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3784863img; Mon, 25 Mar 2019 18:25:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqzcwQGg6YUfko6Gs6HGAvIX/bWVu8i5c0o5pV+GDTP0sQrLUVrYY2pZETjRyXnlxPA1slLs X-Received: by 2002:a63:6142:: with SMTP id v63mr26026189pgb.342.1553563537176; Mon, 25 Mar 2019 18:25:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553563537; cv=none; d=google.com; s=arc-20160816; b=gLXIJLhfalf82zdKSuG2UngxlKHEzSoXsXmasiD09HaSuPRD64qu9cWWq0YfNLaElB 9KOTo+5rlPftfn0RrHhvRKX6QO5tN4TosOLYiVeLqL+aBzewym9W9Bfu9XN7eBHrXBMP NZBP13RXGWw/skudQhxIZu5gBlpEbRMN5bD5LwT8y1x5vbffePjAX+VOZ+wOJc9+tWgl N8iiM2lgC/bsV1KGzc57yZykk0O6vTuFHCjJgfkcQiDNel5+2vP8yFuhLMuOogEeNxEg I0x3eR3bPwNmvAL0+YwOdtqPLIsD8gVuJlrk+MssfGSCoZ7BWZ2LtGmJkbJxeeEYg9hD DMfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=fcxXOfsxm36sUrF9ScHrG841xyRUv3NUD1ZXmufL824=; b=L10B31amjZ0WPBQT8Wf7xku3uDZOdpsScEQ3ww830FkLQHjYcTiH5c8cBHjOoSHK04 2+j1ZvpY7SIhl1x+zz9MQx66WWfg7Amkp9X//WE72tMrpFDwIyVhhIhat6TMyzj7Q0ur HK+Hoo8+05uH3PTXaPxGmXnytwYDVjjRTfj33JUIueIofwEAh0JjME0TxYWRU61Kv0kB q7SHLpQwAQMKdTCNY05bIWMFJjiitF4pZhgPYwdvwpV9zN19OpBW0l7kb6yKaokYpJyl RjOQfUwUa/SRjoJmX9voTdnISgRdlpDF6Dgq/YXCQmZjpc1IGcgOb1NjgqS61KZDp7XJ T+Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="ntgpt/zT"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f11si14018806pgs.291.2019.03.25.18.25.21; Mon, 25 Mar 2019 18:25:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="ntgpt/zT"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730674AbfCZBXR (ORCPT + 99 others); Mon, 25 Mar 2019 21:23:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:57272 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727412AbfCZBXQ (ORCPT ); Mon, 25 Mar 2019 21:23:16 -0400 Received: from localhost (li1825-44.members.linode.com [172.104.248.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0FC182084D; Tue, 26 Mar 2019 01:23:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553563396; bh=1z5jZLcbsuXG/n/Jogp39/oFMe3gjqNKKx4jP11VJt0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ntgpt/zT7niUMmUNxxnL2q8j1DMyeQHnq4GKOLbSI0xfZooSGFRZz7FkScFPsgCEI vERXXU0N4BjkAN5WMxcg8iiAK31q5+IhEe4TbxJ0oy+Bdl+it1oCoUOnFPWeQZGMVs KQVPbDpfq0QFjONgODd3duyBOlmUY+GENuoBklM8= Date: Tue, 26 Mar 2019 10:21:09 +0900 From: Greg KH To: Arnd Bergmann Cc: stable@vger.kernel.org, "David S. Miller" , Gerrit Renker , Eric Dumazet , Alexey Kuznetsov , Hideaki YOSHIFUJI , Neal Cardwell , Yuchung Cheng , Wei Wang , Ilya Lesokhin , Priyaranjan Jha , Soheil Hassas Yeganeh , Yafang Shao , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, dccp@vger.kernel.org Subject: Re: [BACKPORT 4.4.y 18/25] tcp/dccp: drop SYN packets if accept queue is full Message-ID: <20190326012109.GD29420@kroah.com> References: <20190322154425.3852517-1-arnd@arndb.de> <20190322154425.3852517-19-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190322154425.3852517-19-arnd@arndb.de> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 22, 2019 at 04:44:09PM +0100, Arnd Bergmann wrote: > From: Eric Dumazet > > Per listen(fd, backlog) rules, there is really no point accepting a SYN, > sending a SYNACK, and dropping the following ACK packet if accept queue > is full, because application is not draining accept queue fast enough. > > This behavior is fooling TCP clients that believe they established a > flow, while there is nothing at server side. They might then send about > 10 MSS (if using IW10) that will be dropped anyway while server is under > stress. > > Signed-off-by: Eric Dumazet > Acked-by: Neal Cardwell > Acked-by: Yuchung Cheng > Signed-off-by: David S. Miller > (cherry picked from commit 5ea8ea2cb7f1d0db15762c9b0bb9e7330425a071) Also queued up for 4.9.y