Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp926327pxb; Sat, 17 Apr 2021 00:52:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2S0+E6kVXKiTK1t08hHERS1ekjq7FCNiT/GFEP5o1yhDfbCoIjBE3pdYnU2bL8j4Y87ta X-Received: by 2002:a17:90a:303:: with SMTP id 3mr14186077pje.36.1618645947270; Sat, 17 Apr 2021 00:52:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618645947; cv=none; d=google.com; s=arc-20160816; b=U0Q+V6GWKAVqOryH89E5hy4RmbZp5/4AVt5YeqA/XAUXckxxrBb0aZJYaDPEKs3cBG fHBftsTKI73GilQIPOiOa53U5HsqWw5GyhFSxUAhfeu4yiZa/hlXcY5aW2UYtHj32LAc Y16ZAcNO6KlS1/7L2Vb2mh4GDdnJ+z/mG0Smo3lcys2yzdusDKVERoRyrDfNGeE+xetb ZZxy/BmeuL9ciyjiLpRnhTeT+flu7DevEHHucHAkqt7Q5DSJcSyhPtdY7Cx66u3iTml1 KkYd7rOChzR/2zvX+b+O1xKSy3o2UdyqESGPynqMobbBu4R9V8LuKAZUgLoVpK2HWrSw x75w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=RT9Q3N6Y4vjd7QrCsUp7JCEgdTVLVK6CXwqObLOuv38=; b=xyH9OeKN5e2lNmgAULuQeik6/wskk0TCAbf/PgBCrwOWeSqyAuEaRTl5wIt3y8BR3N eCCtPuVDq/RFG0mavCL26yY0VTMI1W86rm1w/eG14JG9srT1mtn9cyKqpiHcbku9ezft cNKx1PH1d919/byzBZMjdt0UyeVQ04VX/sk/L3+7sgm1gt7IlE9junRNks2XIoduqu5q uDlm3egKb4tqVZ2svTmLabalZ/8sQO7vQL4eQfrdqh01BQrw+Qou27bvLMGsMUz3HNjz kDVE9RH+NlR4WHR5GepLSKWiwmlJPBEFJ9zOpAzlsUxchzXXbESBS68JIof18w3O3omi IscA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p12si7327308plk.417.2021.04.17.00.52.15; Sat, 17 Apr 2021 00:52:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235826AbhDQHvN (ORCPT + 99 others); Sat, 17 Apr 2021 03:51:13 -0400 Received: from wtarreau.pck.nerim.net ([62.212.114.60]:51808 "EHLO 1wt.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235685AbhDQHvM (ORCPT ); Sat, 17 Apr 2021 03:51:12 -0400 Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 13H7oUhZ014279; Sat, 17 Apr 2021 09:50:30 +0200 Date: Sat, 17 Apr 2021 09:50:30 +0200 From: Willy Tarreau To: Keyu Man Cc: Eric Dumazet , David Ahern , Florian Westphal , davem@davemloft.net, yoshfuji@linux-ipv6.org, dsahern@kernel.org, Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Zhiyun Qian Subject: Re: PROBLEM: DoS Attack on Fragment Cache Message-ID: <20210417075030.GA14265@1wt.eu> References: <02917697-4CE2-4BBE-BF47-31F58BC89025@hxcore.ol> <52098fa9-2feb-08ae-c24f-1e696076c3b9@gmail.com> <20210417072744.GB14109@1wt.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 17, 2021 at 12:42:39AM -0700, Keyu Man wrote: > How about at least allow the existing queue to finish? Currently a tiny new > fragment would potentially invalid all previous fragments by letting them > timeout without allowing the fragments to come in to finish the assembly. Because this is exactly the principle of how attacks are built: reserve resources claiming that you'll send everything so that others can't make use of the resources that are reserved to you. The best solution precisely is *not* to wait for anyone to finish, hence *not* to reserve valuable resources that are unusuable by others. Willy