Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5829829pxj; Wed, 23 Jun 2021 09:46:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzW5M2ncfb97EBUCfJ86LnxQV2PrCAsXrWPtxLmwAKGK/grRolzzX6zpYoPvdbBs+aS8CSO X-Received: by 2002:a92:ce91:: with SMTP id r17mr261657ilo.168.1624466809470; Wed, 23 Jun 2021 09:46:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624466809; cv=none; d=google.com; s=arc-20160816; b=vlHQeok/XlZboaxjdeGe46wAFq6gEZydAVRIrVKrXarPK3VCbuz+B75cCWMV3jXHEW OS3XlYW+HHC9yMKXZJow2uvBuKS/pB2dRo/ReNHJRUaecdKMwhRJmOsb4o0i0IP/W+JS VghVqIEWtXqoLhOzdVQ2TU+cMLHRM5anMxqs/TW6U24BdWboWPoyybKOW66S2d8gFS7m dkjSJgPXIqVim+PSGiSO+S02YOeFQDEz7szUS2peJ3xlaqp7xZ7kGXdMEGGyaVCXlXOA feAfJLq41N3NXBgizQz4rDrb3yBzbxENUFpJ9uZdSCrxkkP+MrboO+eNPrHmTQpYVAAt zZfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:ironport-sdr:ironport-sdr; bh=pz8P1KQQr6LtS0Zstr+zQ+VONbHyHLCsJtcjJEcl53k=; b=LRlHqoQw2HulDzfwcDoZVVMlmSkrWbQMuyJN/iMSzsGIpl3k31bDPRKQrA+20i7cHm 4BCaFKKK0gqZPNzGcQNHQF5JJDoOf86/g3KVer1vu6VyBTFBp5BdiqpJIJKor0cBBzCH 4SpFS+kQNurgO7eG/2JmXjtZIQDQSw8N5LCU4plm6qUlIgX9AAK6/8kCwjSkrzox8mr4 JYno4FNSqwSQ4edzbUHqbAwBwkt6vz1r/x1Z2AueY5Vhz0PeZC/a3ctKtygWTqC8teaW waGHwWlyxaO8mLh3yusXDaXIbt7nV45akEDu97TJ8qEUovf4jD0OePJcmlf68AYLZrXT GfjQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y16si509023jat.77.2021.06.23.09.46.36; Wed, 23 Jun 2021 09:46:49 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229794AbhFWQsL (ORCPT + 99 others); Wed, 23 Jun 2021 12:48:11 -0400 Received: from mga06.intel.com ([134.134.136.31]:48226 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbhFWQsK (ORCPT ); Wed, 23 Jun 2021 12:48:10 -0400 IronPort-SDR: vAfAGzikqyxdrMGwtwlsu1j6ElsJ7OPpyU5A9VaRCxXIcwhbNYe9bmU4UPwkraIlh8q+9nTqUA j37r3/C9b7tg== X-IronPort-AV: E=McAfee;i="6200,9189,10024"; a="268441964" X-IronPort-AV: E=Sophos;i="5.83,294,1616482800"; d="scan'208";a="268441964" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2021 09:45:51 -0700 IronPort-SDR: 2kKySzKhEEuaKqA1xVeNcgH+CcKpBVAuw8ohiGI7FILIaeXgEIcZBUQEZlYydjms64l/87Kwir 4lfHSYHZXQFg== X-IronPort-AV: E=Sophos;i="5.83,294,1616482800"; d="scan'208";a="454714788" Received: from crystalc-mobl1.amr.corp.intel.com ([10.212.148.72]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2021 09:45:50 -0700 Date: Wed, 23 Jun 2021 09:45:49 -0700 (PDT) From: Mat Martineau To: Paolo Abeni cc: Pavel Machek , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, stable@vger.kernel.org, "David S. Miller" , Sasha Levin Subject: Re: [PATCH 5.10 038/146] mptcp: do not warn on bad input from the network In-Reply-To: <254a0b83518083416abdae4cd27659bc10760773.camel@redhat.com> Message-ID: References: <20210621154911.244649123@linuxfoundation.org> <20210621154912.589676201@linuxfoundation.org> <20210623142235.GA27348@amd> <254a0b83518083416abdae4cd27659bc10760773.camel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 23 Jun 2021, Paolo Abeni wrote: > Hello, > > On Wed, 2021-06-23 at 16:22 +0200, Pavel Machek wrote: >> Hi! >> >>> From: Paolo Abeni >>> >>> [ Upstream commit 61e710227e97172355d5f150d5c78c64175d9fb2 ] >>> >>> warn_bad_map() produces a kernel WARN on bad input coming >>> from the network. Use pr_debug() to avoid spamming the system >>> log. >> >> So... we switched from WARN _ONCE_ to pr_debug, as many times as we >> detect the problem. >> >> Should this be pr_debug_once? > > Thank you for double checking this! > > 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. > > There are (a few) similar use in the plain TCP code. > > pr_debug() is not supposed to be enabled on any production system, > while the WARN_ONCE could trigger automated tools for irrelevant > network noise. > > I thing pr_debug() is fine here. > Hi Pavel - I agree with Paolo. This is not a frequently encountered condition, even when turning on this specific pr_debug(). I'd say the previous use of the _ONCE() variant was mostly because the effects were not optional (not because of frequency). For protocol development, pr_debug() is both off by default and more useful when it _is_ enabled. I'd prefer to keep this patch as-is. Thanks, -- Mat Martineau Intel