From patchwork Wed Nov 16 20:21:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Cabaj X-Patchwork-Id: 1704818 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=rm7nNAew; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NCDvy4f3xz23nB for ; Thu, 17 Nov 2022 07:21:17 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1ovOuD-0001iu-UJ; Wed, 16 Nov 2022 20:21:09 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1ovOuB-0001iP-8t for kernel-team@lists.ubuntu.com; Wed, 16 Nov 2022 20:21:07 +0000 Received: from mail-il1-f200.google.com (mail-il1-f200.google.com [209.85.166.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id C6F9E3F0A2 for ; Wed, 16 Nov 2022 20:21:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1668630066; bh=pPlOrDdCHX4Ftcd6aEXotNYlNCi9fXG8l/jUNoHd2Mc=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=rm7nNAewc5zgtj7NkCpapDgUH4tnVew5qtfVRmHUV/zzVGZ8Yjs1uGeXLitcnXLEC GEVlqA8VONp86WPIUBSZ/k8QPlMWADFEY/Z9tzBtOVTjLgA6sWoONdPayeLNoBDMlG hxKV7EXySG7GStTCQBj42lW7z50qxiasByOJfp47soBxyCyoRQopAJFLeXpOLAus7l aQvb5Tmz0HyBL4/e+LmV8XpEgGv3F5h38EfquiD7kInHJGxOLyTfGIKVyNGfaex0mr eyZLUFK1gs6DWACQoOR5hzdTZkBc+8Rt3ZufcvFfB4CUJTdtkodDaAzNNr5xAHQdo+ cXsZZyK4DpuIg== Received: by mail-il1-f200.google.com with SMTP id l4-20020a056e021aa400b00300ad9535c8so13925328ilv.1 for ; Wed, 16 Nov 2022 12:21:06 -0800 (PST) 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:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pPlOrDdCHX4Ftcd6aEXotNYlNCi9fXG8l/jUNoHd2Mc=; b=iMxIN0QQIFdbcCZQjkmmg1BIuqzTwUQ/MeAeeXzy5vpMO+Ep0liXkaWCNTc2dZ/NbE nmPfltCUNz7yQt+NXDQ99G4uce4oCsheXXKlmRUPH0GEMrIpjYDjXgahaFBy/yBVxdAO SypW8WmY/rXLOdWbxKjMRkk5IqCFVKAfNNgz0RMCDdi3cK7YX4Rh09fWZdQKcfN+Ddkj NOGyXx++bOvRKKmWT6NSdnES/1IVWZ6m8vLKSQE4vuDerYYzzgf3DSbvjaUePfULvPhy fydiSKskAEA17khztvaGCBBQyT0zo/XZ0WbQTX7jM+Vww6/GdPqnnEOQWJHFr8WdK1OV OJ5g== X-Gm-Message-State: ANoB5plYGULd23j5HaFUNe9xOdfxMMj1sWXLNjCiJD8oS3xYe0q1UG83 B8iNOU9Bno2zDIbuu10yPG1vXfrpSc5xOXfFLGLfwgu2s3M1jkTFvIQFg1AqKFO7ugKLExHIqgq FD8Qso8QliJ2ZBiUVTLnL2AWu/wd0pj4ZPJixyUcFsw== X-Received: by 2002:a05:6638:4714:b0:375:7316:c56b with SMTP id cs20-20020a056638471400b003757316c56bmr11084856jab.39.1668630065393; Wed, 16 Nov 2022 12:21:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf5b7BdAH6VM/pgIYND2ZYaur2O8RYDtpzyN4z9ehoe3FhNUBgNPA4uoUcFC2tOZQ4974HivJQ== X-Received: by 2002:a05:6638:4714:b0:375:7316:c56b with SMTP id cs20-20020a056638471400b003757316c56bmr11084846jab.39.1668630065160; Wed, 16 Nov 2022 12:21:05 -0800 (PST) Received: from smtp.gmail.com (h69-130-246-116.mdtnwi.broadband.dynamic.tds.net. [69.130.246.116]) by smtp.gmail.com with ESMTPSA id z12-20020a92cd0c000000b002f90d038403sm6538229iln.63.2022.11.16.12.21.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 12:21:04 -0800 (PST) From: John Cabaj To: kernel-team@lists.ubuntu.com Subject: [SRU][K/J/HWE-5.17/F/OEM-5.14/B/X/T][PATCH 1/1] r8152: Rate limit overflow messages Date: Wed, 16 Nov 2022 14:21:03 -0600 Message-Id: <20221116202103.72275-2-john.cabaj@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221116202103.72275-1-john.cabaj@canonical.com> References: <20221116202103.72275-1-john.cabaj@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Andrew Gaul CVE-2022-3594 My system shows almost 10 million of these messages over a 24-hour period which pollutes my logs. Signed-off-by: Andrew Gaul Link: https://lore.kernel.org/r/20221002034128.2026653-1-gaul@google.com Signed-off-by: Jakub Kicinski (cherry picked from commit 93e2be344a7db169b7119de21ac1bf253b8c6907) Signed-off-by: John Cabaj Acked-by: Thadeu Lima de Souza Cascardo --- drivers/net/usb/r8152.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index 7e821bed91ce..c7169243aa6e 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c @@ -1871,7 +1871,9 @@ static void intr_callback(struct urb *urb) "Stop submitting intr, status %d\n", status); return; case -EOVERFLOW: - netif_info(tp, intr, tp->netdev, "intr status -EOVERFLOW\n"); + if (net_ratelimit()) + netif_info(tp, intr, tp->netdev, + "intr status -EOVERFLOW\n"); goto resubmit; /* -EPIPE: should clear the halt */ default: