Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6320049rwb; Mon, 14 Nov 2022 18:28:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf5+zyBBI5V99oqmQj2EOjmRtD7kWjxMaTHt1F2fbiYJHJHUOH2krT+8UxAQmPtO3D1lmDPE X-Received: by 2002:a17:902:aa47:b0:186:61c8:c512 with SMTP id c7-20020a170902aa4700b0018661c8c512mr1924365plr.155.1668479313253; Mon, 14 Nov 2022 18:28:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668479313; cv=none; d=google.com; s=arc-20160816; b=C6MDzoORm7hxjl0Xo4qfhPMdhvbfPYI2LazWCDIjaoFmhlbk6ogklg4cHPp61h8j9t yiF4o12D84R331EATXsUhQXji7J+wlbl3TtpPnomlYvevnTTp0/1eagq5dfIFW6MPiwf vhryiVivhDhc5bq9gi25HUqyboorh4+4JQQve8Gs/WgNIZBkCO8n09K/GSaBHTmEM0xr tEhXdETHnSZ3CW0DIKlP6EFkixivQ9y5yAUOcpE/6+49Z2UxK9MJiRlUt9OVkPa+65rY nksUHrndAuhrTbbS25op70mL597aN56ggWfaL5/2vrCyn+xDcBt8fcdi2+sxcX0f/iwN VdwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=AmJ3WVaf971ZjU4+2fbtOTXgV6BCS6K8+zrP1YYCla0=; b=zXV2q3las6XhwHs4GyhZ5VJhn5zajV8fyf326BXHngX1xlIOnWk/xlyu4p0VxtY5ND owIW+ZPOnokJpPmtcBtNyGE4T95ou/TxlOaINr9/B7LpCcvzUg4q0m0+yo/iWQcyqH2i ix5Vmdmt+HRtUizsadL/PBFMGAKx/+7o3CdKwmiwsk7kjXu88aWIOCG5Y04fz0LTGkCp QWZPrJ/RM4dhR3FUek51YQ0xzXPr/+FOfKORsSVOyYEq5+QUB2Ap6b8e1JblqYCHRj+U SIbp/wVmDSsPaAV1DcztwMpFZD2G7B/qcgUoJE/iFsH5JGmuWkIY7+XhBqkXG/cslvV9 U0Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@networkplumber-org.20210112.gappssmtp.com header.s=20210112 header.b=EfNzlZr3; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=networkplumber.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bd3-20020a170902830300b00188c9c17571si3050827plb.391.2022.11.14.18.28.21; Mon, 14 Nov 2022 18:28:33 -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=@networkplumber-org.20210112.gappssmtp.com header.s=20210112 header.b=EfNzlZr3; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=networkplumber.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232238AbiKOCCa (ORCPT + 88 others); Mon, 14 Nov 2022 21:02:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236357AbiKOCCY (ORCPT ); Mon, 14 Nov 2022 21:02:24 -0500 Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9346817077 for ; Mon, 14 Nov 2022 18:02:23 -0800 (PST) Received: by mail-pg1-x52e.google.com with SMTP id v3so11946207pgh.4 for ; Mon, 14 Nov 2022 18:02:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=AmJ3WVaf971ZjU4+2fbtOTXgV6BCS6K8+zrP1YYCla0=; b=EfNzlZr3IsUeGSufFh31qoO4hs34DdGwSob09sGJ/Kx9BTEqneKIgycxZktE0IUBki W5t3GzN8Hi/eJSU/LOgCswTBpzGuj6CioC7dn7oYq09phiZX3gXJkH0BK2xDmeaFhPhu xbahOmn466w99CE560SZQHnXHabpZLRUw5VC4xMfFjQ2nvUeeaqe2ODjr1DhISs5ITHn jFU8Ae+znyuJRorJs0pR5i7H1Iq2waQq+tfLVx54YYGs4PdbQfynYX82/BYPZoNiFUHF iABznkPDxhMrefED4JR0TBv6L/A5eeUNydCTVtSHZlOcd4H0umagyIInVt7cGNYgdOoH q1Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AmJ3WVaf971ZjU4+2fbtOTXgV6BCS6K8+zrP1YYCla0=; b=vMZ2F+GGeDqYgbkU0UVH+4UcYuByLDphxzhns26eSBpEdIYsGIyk4giBHZSmzLXNcX i7GIjjwiw6H6r5IV6OG+r8JmbDA3bz16eFKOn+1QydqMt655v0wSqs3B2TCLCtKLIP97 6ljNIj7YjZjPJMJv/C1cLt8UU4ogVs+Lwunt7ex0ALZKES5g7E67o0914i2AxSmCHRTb Qqc655fVt+608glJiibnz3qmF6jD+tI6FjO80C8WfLNQ3NkRy9uoP+MraqRvCXqryuSI 44U8uoIwe98tCuRskuobgxFqZ0wbV3lorzxm32qmoJyyHF/IHkzS+k0P6bDF0dH54wRU Nl0Q== X-Gm-Message-State: ANoB5pl3u6wy0UxmpXms5euVKhmb5P2WMOt+vosXkjVUV5+x0VQ3AdtC hUWkspKAPFGUNm0tBoW3N2lw7PUPzasClw== X-Received: by 2002:aa7:8434:0:b0:56c:12c0:aaf1 with SMTP id q20-20020aa78434000000b0056c12c0aaf1mr16317032pfn.50.1668477742550; Mon, 14 Nov 2022 18:02:22 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id i187-20020a6287c4000000b0056262811c5fsm7409601pfe.59.2022.11.14.18.02.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 18:02:22 -0800 (PST) Date: Mon, 14 Nov 2022 18:02:19 -0800 From: Stephen Hemminger To: Eric Dumazet Cc: Jamie Bainbridge , "David S. Miller" , Hideaki YOSHIFUJI , David Ahern , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] tcp: Add listening address to SYN flood message Message-ID: <20221114180219.0a9900f4@hermes.local> In-Reply-To: References: <4fedab7ce54a389aeadbdc639f6b4f4988e9d2d7.1668386107.git.jamie.bainbridge@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Mon, 14 Nov 2022 09:31:38 -0800 Eric Dumazet wrote: > 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 Thanks for cleaning this up. Reviewed-by: Stephen Hemminger