Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5802642rwb; Mon, 14 Nov 2022 09:37:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf4UvRrd2F6ToH3GalYhVj5ehQasTOtyezISY6MVkZzcjP2DFw68FSCmCRHBwvcs9+h1Y+i4 X-Received: by 2002:a17:902:ba91:b0:186:c958:6cd8 with SMTP id k17-20020a170902ba9100b00186c9586cd8mr208925pls.145.1668447458914; Mon, 14 Nov 2022 09:37:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668447458; cv=none; d=google.com; s=arc-20160816; b=yqhQ5fJSH6EQGb+0OavZVnxedjTWicvSy85GULNtKvZfez+8CAVrMmlAwxr/h/TPnx TIWHII6BH5WV5kaLWTi0jZtMiaUAB5a5BlAbv+MkkuKeHAiFDha4Q8IulHUqdAC6YVm/ hX0MO/LxGeLM2CCFm23lV/OlO09ZnlnA9q0o05Esx14TrrxPzqyS8Ksy0dQOLGzXbvjc 3/mMPdrfGLWsUm0hX4g6wpNTWaXgbVxGvsj+FAy2RPx/GvudHd0ofOUDr64U2WXCKlYM Azf09y/uZnat0KVs3NaOq8wQ0pWONHkX+XAuUowYP+ar+euELTqT6PqJcShGloB8xLWI +6Pg== 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=eWU2AWq8Eq3gqU4BhZFYarDK0bOR9ZheOlzcH4UPHes=; b=YDa/q7PxDEqdgT/8pCLKIMoBTd/fHZyV5+wHVKETZVylxzx5hvIWFBZzlveAONA/Pi oDKQd1zBxKfHjTq4ZDBYKjBrTRYUMmTbbE7pt8C3/x9ChUXHFGyDDeLfwGZxOaTGyGg1 vbF2EAP0Z6+yvII6Hlxffo/zffPrIDGiboBUaFdZ9aXiMNkLnOL6e6FC4j/a52RG35FT a3iGvHst2IYyKGFh08gv5ea3e0rkOHXrSu2Bv9NSA75pDDmd1+MFH2VEN82THwghsSra bff401BFEfAWj8lkES7CZjV6d63EOVnVb1ENM/TAZT4CrhgkOcP4qXdzspfjgMgRtn0y cBpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=ngsM0y8D; 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 a1-20020a631a41000000b0046ec7b397e1si10084770pgm.759.2022.11.14.09.37.25; Mon, 14 Nov 2022 09:37:38 -0800 (PST) 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=ngsM0y8D; 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 S237543AbiKNRbx (ORCPT + 89 others); Mon, 14 Nov 2022 12:31:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236635AbiKNRbv (ORCPT ); Mon, 14 Nov 2022 12:31:51 -0500 Received: from mail-yw1-x1136.google.com (mail-yw1-x1136.google.com [IPv6:2607:f8b0:4864:20::1136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C201127CCB for ; Mon, 14 Nov 2022 09:31:50 -0800 (PST) Received: by mail-yw1-x1136.google.com with SMTP id 00721157ae682-368edbc2c18so112988927b3.13 for ; Mon, 14 Nov 2022 09:31:50 -0800 (PST) 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:subject:date:message-id:reply-to; bh=eWU2AWq8Eq3gqU4BhZFYarDK0bOR9ZheOlzcH4UPHes=; b=ngsM0y8DuJGgF6yy8pkYeuleOgOYsTtSUCNcLqT1ekUQUW6OmtLiaeNsys8QDH+ULi zDkbmATi0P9/UGnfA+2IHWgiCKLQwq/05CAUEP1esz1giJb3nMlqNWuqhbJVsd4Yopsp BeoYCmnqFsBh2ZzgldWB8crdVBMmZpywZk6rvYgR8lxTje9VR5rJDyeuxXeWXZOevMO3 BUAYX+Kvx+Rbznu9Te3Sw+m0PD1lKxC08GAmEXmjgQsvx45SpLLVcV9pLMKG4stGJnat CzQneiTrPCk+tLNBxb0QsNinY+OqLUyF7PFlmwSNiepf+rrsYuKZXipZ0gkrmf4oFJ+3 b0wA== 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:subject:date:message-id :reply-to; bh=eWU2AWq8Eq3gqU4BhZFYarDK0bOR9ZheOlzcH4UPHes=; b=fRzLeyLNiPr8ol+Wqn1cyMYQB6rvLjqHWhSYdTPbq9DqwdHK9TljJgXGM5AWrS2giS O5oh7L4/gVw2W2KNt78lebyp/Srj4T6MDFhxrLTGgyxtZeEIONFH+42JiT8W63RhrpDJ 72C3EcYXSdzjIN6b3Kyw/lwuZV0cSOpktXZOEWrJQAo4qMPEYN8eYfpLE2JKQXqxePCP Kn2k4s73cSMASqb/ELSR4JNuu95EtS76b+Qej0wEzIKZsXXMLCjUkPOHTtLZJ8jBZCxq zU/WcKvvhKPZYI6WmuQyctwCpsmqySlUOMcnzVirPhUaq4sJR6MO2VbSQqN8M0THAfoM Ps5Q== X-Gm-Message-State: ANoB5pklgy5plpjvNgP+n5mhrV0sdv/VzRQjfJYZBrwnnGX4mYAh1Wq5 4K20SmziJ+er1tW/RS0PzrL7r8HNRCwp1sY46FyGK90nsHs= X-Received: by 2002:a81:1a16:0:b0:370:7a9a:564 with SMTP id a22-20020a811a16000000b003707a9a0564mr13696670ywa.278.1668447109741; Mon, 14 Nov 2022 09:31:49 -0800 (PST) MIME-Version: 1.0 References: <4fedab7ce54a389aeadbdc639f6b4f4988e9d2d7.1668386107.git.jamie.bainbridge@gmail.com> In-Reply-To: <4fedab7ce54a389aeadbdc639f6b4f4988e9d2d7.1668386107.git.jamie.bainbridge@gmail.com> From: Eric Dumazet Date: Mon, 14 Nov 2022 09:31:38 -0800 Message-ID: Subject: Re: [PATCH v3] tcp: Add listening address to SYN flood message To: Jamie Bainbridge Cc: "David S. Miller" , Hideaki YOSHIFUJI , David Ahern , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.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, 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 Sun, Nov 13, 2022 at 5:00 PM Jamie Bainbridge wrote: > > The SYN flood message prints the listening port number, but with many > processes bound to the same port on different IPs, it's impossible to > tell which socket is the problem. > > Add the listen IP address to the SYN flood message. > > For IPv6 use "[IP]:port" as per RFC-5952 and to provide ease of > copy-paste to "ss" filters. For IPv4 use "IP:port" to match. > > Each protcol's "any" address and a host address now look like: > > Possible SYN flooding on port 0.0.0.0:9001. > Possible SYN flooding on port 127.0.0.1:9001. > Possible SYN flooding on port [::]:9001. > Possible SYN flooding on port [fc00::1]:9001. > > Signed-off-by: Jamie Bainbridge > --- Reviewed-by: Eric Dumazet