Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp966302rwe; Thu, 1 Sep 2022 10:12:59 -0700 (PDT) X-Google-Smtp-Source: AA6agR5mWfhgHiyot3Gh6Izv4LiLZfSpNj4zoeQxvdRDSRFybRK4z3+z6Twc/UE485LmmufNWHCb X-Received: by 2002:a17:907:7fa5:b0:730:5d54:4c24 with SMTP id qk37-20020a1709077fa500b007305d544c24mr24664590ejc.641.1662052379279; Thu, 01 Sep 2022 10:12:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662052379; cv=none; d=google.com; s=arc-20160816; b=QcSA4VOp9BzOvg3yc44Y3+S+BLjl9+2iKTlhDz9IYc7Waf+n5CkC2xM9W9f7F1sF/L SASZAx2g3p2e7pQ9hfTzg+x1qAfCY44UeIJdUaYduczyU1yqNS7cd4vX2LZn8mKEVYSf 9ueNqRtq4AhJWvIOczgXxTZeStX3QDqrRsqKLZVy174QDh3b3ONv2YTxMDsEahFO92dE qgrGJkg8D78LxtzLg+V8Vik5jliJFKVP2VgmKpH3+5baBAl694/kOmdLGz0Z69GAfBcb tYdmWMAuKDuNyqVpYGaeLbrp3DT5iLvIbw3r/u3a68Rw8eM2aDD6tKIfe6FUI2sMWGS/ 0Dnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=aOX3b5WRndoOqWfMYuBPMSz6xrM2daGYXLX/7kwuwZ0=; b=bkseelLkb6oSqtB65YG7bTDJbOiqNGkniKgQNWIRb1xGm0TRhAUZ12/GJHAcAQ4R4I hc0e7wQyxe84iX+1CVA5mFPrBQm12mKwayxXPuAxxIASnoohtxOvtEFTfol6Nzk/CvRY q4usaf91bLHW/5INtGWTZjBvktkfcHq54MFWJXQ4En+QXXVvg8UawfQIgIWtc8qK1cp7 EK0wcK+cmrOZwXXZ4MBhHbDC3DWaN6S7dHRpQiXx5Ej6lWC6jlIGs3nnG2PtuXWN17L2 1q8Y7Pua4mS/sKWqdTYOxVst+sh6VduienrwF+q8HqqXlPJVBc2mIjcTm2tmDIPw9EBT GRBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=GwWs2TE1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hv13-20020a17090760cd00b0073c194e99f6si19449208ejc.779.2022.09.01.10.12.33; Thu, 01 Sep 2022 10:12:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=GwWs2TE1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234845AbiIAQHY (ORCPT + 99 others); Thu, 1 Sep 2022 12:07:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234815AbiIAQHN (ORCPT ); Thu, 1 Sep 2022 12:07:13 -0400 Received: from mail-yw1-x112a.google.com (mail-yw1-x112a.google.com [IPv6:2607:f8b0:4864:20::112a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AAE879A65 for ; Thu, 1 Sep 2022 09:07:11 -0700 (PDT) Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-3378303138bso341620177b3.9 for ; Thu, 01 Sep 2022 09:07:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=aOX3b5WRndoOqWfMYuBPMSz6xrM2daGYXLX/7kwuwZ0=; b=GwWs2TE101XCnPEP8wKR+dSw6GxCCnubsLKNO61paDv/b4aqGIMAG18YmmPLgM7tL/ 9rxLGJP7ak9XNNnjdQbCzL5iB225ng61KZfyh3olNNwiXcwXq+h7ffsMnPZ6pAlJCtYZ bLH1QVrBdzA4VVUk2XpxtrkSITAV/Ux4pJMcF2oCM9VlSnufDfkhwlUbtk195Gwro7U5 g7RY3vz6GYmUmLlUKiLSvS3ZL5u8vzZe1L4nTOO/3oih+NGg56PcP0RM+dkrg4Oj4lO2 Ba4ny5o4vVi/kMzPE7kpTqTkZZ2uDTniFuM40424qKlkBW1erqkUlj7BbmP4i5zxlw0+ FvYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=aOX3b5WRndoOqWfMYuBPMSz6xrM2daGYXLX/7kwuwZ0=; b=Urtr4rVnFtR7ITdxRDx3RR7j/7d+eRLU7uhfaPMCP2oKv7bvLNn4q9E/TBC9ghIRPV bvV4bW6GTsLQyTcWIk+iYdvaQb7FL0Glud1FaAPv1qs+kdJhCgbDKEciQckrNjPKORIK na2Lt7TTqU/xAEEDRHktTiBKw7GB7ncpAH00S7bS3y26AGXUi39LDHruqUt799XLtNWv U2ayl8wjQ5K/FcGIoUcg/rhxWIZDo6zJEIfAIkW8xj64FAsO4lpAMW5Ih1jP580YOJjI qOy3xsNewB/cd99CEZwlXiaCvk/oADZRrLqNI4N0UmPFABLEtZldG/pI5srUHH9VUl3e +N+Q== X-Gm-Message-State: ACgBeo0utmqcYx8G7NGnr5JTyWZaecVmI+Z9WKOBVyyyhLW+wGfG82UI wlyhaF2+8iWHIlm0gmoL5ZURs8GGmTdsW7GLicU6mQ== X-Received: by 2002:a81:1c4b:0:b0:340:972f:abb0 with SMTP id c72-20020a811c4b000000b00340972fabb0mr23600297ywc.489.1662048430253; Thu, 01 Sep 2022 09:07:10 -0700 (PDT) MIME-Version: 1.0 References: <20220829114648.GA2409@debian> <20220901150115.GB31767@debian> In-Reply-To: <20220901150115.GB31767@debian> From: Eric Dumazet Date: Thu, 1 Sep 2022 09:06:59 -0700 Message-ID: Subject: Re: [PATCH 3/4] net-next: frags: add inetpeer frag_mem tracking To: Richard Gobert Cc: David Miller , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , Hideaki YOSHIFUJI , David Ahern , Alexander Aring , Stefan Schmidt , Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , Martin KaFai Lau , netdev , "open list:DOCUMENTATION" , LKML , linux-wpan@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 1, 2022 at 8:03 AM Richard Gobert wrote: > > On Mon, Aug 29, 2022 at 03:15:47PM -0700, Eric Dumazet wrote: > > We tried to get rid of any dependence over inetpeer, which is not > > resistant against DDOS attacks. > > > > So I would not add a new dependency. > > I see your point. What do you suggest doing differently? > > The inetpeer mechanism is used for IPv4 frags. If it isn't resistant > against DDoS attacks, can it perhaps be improved? It can be disabled if needed, by changing ipfrag_max_dist sysctl. Quite frankly IPv4 reassembly unit is a toy, I am always surprised some applications are still relying on IP fragments.