From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] net/hyperv: fix the issue that large packets be dropped by bridge Date: Wed, 01 Feb 2012 23:07:33 -0500 (EST) Message-ID: <20120201.230733.583713340649766843.davem@davemloft.net> References: Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: haiyangz@microsoft.com, kys@microsoft.com, netdev@vger.kernel.org To: weiyj.lk@gmail.com Return-path: Received: from shards.monkeyblade.net ([198.137.202.13]:38136 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754939Ab2BBEHm (ORCPT ); Wed, 1 Feb 2012 23:07:42 -0500 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: From: Wei Yongjun Date: Thu, 2 Feb 2012 10:43:50 +0800 > On 02/02/2012 03:28 AM, David Miller wrote: >> From: Wei Yongjun >> Date: Mon, 30 Jan 2012 16:12:45 +0800 >> >>> + /* >>> + * Make sure we got a valid packet message, now total_data_buflen >>> + * should be the data packet size plus the trailer padding size >>> + */ >>> + if (pkt->total_data_buflen < rndis_pkt->data_len) { >>> + netdev_err(dev->net_dev->ndev, "incoming packet message " >>> + "buffer overflow detected (got %u, min %u)" >>> + "...dropping this message!\n", >>> + pkt->total_data_buflen, rndis_pkt->data_len); >>> + return; >>> + } >> This is inappropriate. Any logging message that is potentially remotely >> triggerable must at a minimum be rate limited. But to be honest I'd >> much prefer a statistic counter for this kind of event, rather then >> a log message. > Maybe the badly described error message confuse you, this error can not be > triggered remotely, it is the RNDIS control messages, which is sent > between the host and the RNDIS device. > > Remain this error message may help us to detect the host device driver > bugs or the netvsc ringbuffer bugs. > > So how about to change the error message? Ok.