Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5835092pxj; Wed, 23 Jun 2021 09:54:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3qRrOc4ieEsWk9OjujCi+OqR4inMV6v4OpKE33x5+0b80Wq2Xqgsf6hU6qff5q0F3e14b X-Received: by 2002:a05:6602:1546:: with SMTP id h6mr433434iow.34.1624467254432; Wed, 23 Jun 2021 09:54:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624467254; cv=none; d=google.com; s=arc-20160816; b=wc0vdZjqJcL/sm1GU+Bkywx8owVKdDUXlY0I6cWkTnSnXBfJC9FFHjhEMqBBFyB8rG AQS7+NGJD5fpZdiRz8PZpMZdVWQYUocJkB0VTJEMB9Vo17Fa8n8hi/KrejY9Yg4mgcSv 30pj1STxlEtKvnxYnRs6rZh3V3rVRiy8vvP5B06ghg1WugyYyeOPkIlGhegyJ5sXbUJz 9zclrYpm+5VCgQAKD4qz5OK7p131eIKUwmCSYr4h+YcEhv+vUb3AtC6bitXfH97mMWsR DypmhYd7xgZWZa7aEhMStaCFrH0eNprl90wSag3eVphpjYlr7h5K4MLFrxirpo8IUrQZ 9JEA== 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=Cyjt7pB19SxM+FUyX5xrvpvxEammknRqNru7KUEnSfg=; b=AevOffqwfE2To0dKt2y9JqVscWpLjZJAcN9deatCf+9opie9A9yFKhR2rFfS6phDX+ 00g84jcy3NTjvG3pEWrSiFwfNDe0IVmU69JQ/zKgNe1E5QNBteFKW8JBZGc7zHm7ufJd 3BImtEqgW7oxjQOEHsG1cUdqrvNsi7aY2yAnA52ufnS5Cj76dKO40luTpS8qpL0h2GXN ke0VmDWNeY9C9PFh4p8iAv6Ivyl3go9dAOVqgan1z7MsJgrMGb/VYHUFEQBLJxujXQbd Ps65/1Ww731H3UFMlrCKb3rEMN+LEvEKGjUZWdGBdjYjBF7kQ0+Z6cXdlhoZ+DmAwEGC NkWw== 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 j5si467601iom.105.2021.06.23.09.54.02; Wed, 23 Jun 2021 09:54:14 -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 S229758AbhFWQzs (ORCPT + 99 others); Wed, 23 Jun 2021 12:55:48 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:42480 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbhFWQzq (ORCPT ); Wed, 23 Jun 2021 12:55:46 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id D71601C0B76; Wed, 23 Jun 2021 18:53:27 +0200 (CEST) Date: Wed, 23 Jun 2021 18:53:27 +0200 From: Pavel Machek To: Paolo Abeni Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Mat Martineau , "David S. Miller" , Sasha Levin Subject: Re: [PATCH 5.10 038/146] mptcp: do not warn on bad input from the network Message-ID: <20210623165327.GA4150@amd> References: <20210621154911.244649123@linuxfoundation.org> <20210621154912.589676201@linuxfoundation.org> <20210623142235.GA27348@amd> <254a0b83518083416abdae4cd27659bc10760773.camel@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="W/nzBZO5zC0uMSeA" Content-Disposition: inline In-Reply-To: <254a0b83518083416abdae4cd27659bc10760773.camel@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --W/nzBZO5zC0uMSeA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > > From: Paolo Abeni > > >=20 > > > [ Upstream commit 61e710227e97172355d5f150d5c78c64175d9fb2 ] > > >=20 > > > warn_bad_map() produces a kernel WARN on bad input coming > > > from the network. Use pr_debug() to avoid spamming the system > > > log. > >=20 > > So... we switched from WARN _ONCE_ to pr_debug, as many times as we > > detect the problem. > >=20 > > Should this be pr_debug_once? >=20 > Thank you for double checking this! >=20 > In the MPTCP code, we use pr_debug() statements as a debug tool, e.g. > when enabled, it could print per-packet info with no restriction.=20 >=20 > There are (a few) similar use in the plain TCP code. >=20 > pr_debug() is not supposed to be enabled on any production system, > while the WARN_ONCE could trigger automated tools for irrelevant > network noise. Correct me if I'm wrong, but I believe pr_debug will result in messages being stored in the dmesg buffer, even on production systems. Best regards, Pavel --=20 http://www.livejournal.com/~pavelmachek --W/nzBZO5zC0uMSeA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAmDTZwYACgkQMOfwapXb+vLbUACfTkpdQc/zNyx4Zx9cOFG2kmYU 7MYAnjvIgmPHboyiCqxdaPK0XXhSx4I2 =y0g6 -----END PGP SIGNATURE----- --W/nzBZO5zC0uMSeA--