Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1019376pxb; Wed, 6 Apr 2022 06:53:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrA6K8/2BmqsLcg9e97rHZkBgQLjt6ROYEGwxnV3fkPCi9YmZ7nA+DKyZah/dTo1mvVCOO X-Received: by 2002:a05:6a00:140f:b0:4e0:6995:9c48 with SMTP id l15-20020a056a00140f00b004e069959c48mr9075463pfu.59.1649253202484; Wed, 06 Apr 2022 06:53:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649253202; cv=none; d=google.com; s=arc-20160816; b=iRsZKOHc+XFoFjZvUmnfbik0NmCp/2GGZirO0tYfkaD4h4g+ng7g2vTbqhN/VqudlL cPqSvekOQlb6yNkg54jgvJ3XNJ/m4eqvYlwJ7GAJ228j8FxcVYt0vEPALdFVUnafVAa7 7QbkTxVtFfSW2p+mh1em6t5pWQgAnQP/jvJHDDdwgOabdulfbEnvLdnwdre4Is7Z6MNv MHEjfFehwihIrmTN8fmklo144b4WOl9/itsX6Lxfi5c1OjF7zhqF/wOA8u36TrDPpzJS 0ArZjejv6dcxHmyi4uMdv5NLmF6nBZx8QOmQVEQq5FHBvMCIWPllL/3C2sb7LMvt0q2k 5ECQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=CAqULhfnidQZUNb7Ao8bbN1kecuPI8TaTpNr40aNJMA=; b=xKTSeK99aRShlJdSddw/Z69lXrcYDFEZUNvAnXjVqGV76chkFxBcv4d/LeEl9p4Lgl l9083Rruk8idkBo5tTjYGd/6ABMU6D9Ye1HfU2PV3Z31jfNpainzlCYFSzQGM6U52d1j qnE2fzi5R2WPDyMcxL8+MxOOvhSqhjcZGhdioupzgDn4T51EJgNT/B3Xz5yg/o1CQziJ PO4eVo49234+R/8GNI4beOskrsRS2CGMw7RBAC1JLSFFaGvI69CsBMKz7lFI9edi7PK0 FOVDnocRDa8tjjTR8NKlcwUQfBu7bNYm1omAvifzciUyy9TX61PPtZn0yZMi5P2VHy77 Y9Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=r4McnWtK; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id na10-20020a17090b4c0a00b001cac43b54c7si5544322pjb.107.2022.04.06.06.53.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 06:53:22 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=r4McnWtK; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0414931871B; Wed, 6 Apr 2022 04:47:46 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1455358AbiDEW7D (ORCPT + 99 others); Tue, 5 Apr 2022 18:59:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349155AbiDEJtP (ORCPT ); Tue, 5 Apr 2022 05:49:15 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A261055B5; Tue, 5 Apr 2022 02:41:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5432DB81C14; Tue, 5 Apr 2022 09:41:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 956C3C385A2; Tue, 5 Apr 2022 09:41:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649151700; bh=rlFhRVc8ynRlyfX9WdX+N6hMopQiKNSSEzEufzT5nN0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r4McnWtKVs1DZ4OJapP1YUdQ7g0CWUDkSD74HgZKEZNibCk8eTKaB5rrDyyT6URW6 fY6CJO8NUVD5yNVJg0nGyKIJOixGXGugCX1SDOUWfbhZO2/GJjkfX6AwCi61zZr6kX WOOzdfu3Dn1oLMUPW6agu3w3X9kLzzxv9LSCkbBE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Anssi Hannula , Michael Kelley , Wei Liu , Sasha Levin Subject: [PATCH 5.15 511/913] hv_balloon: rate-limit "Unhandled message" warning Date: Tue, 5 Apr 2022 09:26:13 +0200 Message-Id: <20220405070355.171817720@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Anssi Hannula [ Upstream commit 1d7286729aa616772be334eb908e11f527e1e291 ] For a couple of times I have encountered a situation where hv_balloon: Unhandled message: type: 12447 is being flooded over 1 million times per second with various values, filling the log and consuming cycles, making debugging difficult. Add rate limiting to the message. Most other Hyper-V drivers already have similar rate limiting in their message callbacks. The cause of the floods in my case was probably fixed by 96d9d1fa5cd5 ("Drivers: hv: balloon: account for vmbus packet header in max_pkt_size"). Fixes: 9aa8b50b2b3d ("Drivers: hv: Add Hyper-V balloon driver") Signed-off-by: Anssi Hannula Reviewed-by: Michael Kelley Link: https://lore.kernel.org/r/20220222141400.98160-1-anssi.hannula@bitwise.fi Signed-off-by: Wei Liu Signed-off-by: Sasha Levin --- drivers/hv/hv_balloon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c index f2d05bff4245..439f99b8b5de 100644 --- a/drivers/hv/hv_balloon.c +++ b/drivers/hv/hv_balloon.c @@ -1563,7 +1563,7 @@ static void balloon_onchannelcallback(void *context) break; default: - pr_warn("Unhandled message: type: %d\n", dm_hdr->type); + pr_warn_ratelimited("Unhandled message: type: %d\n", dm_hdr->type); } } -- 2.34.1