Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4671049ybb; Tue, 7 Apr 2020 12:02:03 -0700 (PDT) X-Google-Smtp-Source: APiQypId7Fhey0fpsqo4eigzqffHQ1eC4adR9hTSWTy90fBfibfr5y8kwXBQb6WABBi9uvZ4o0Pt X-Received: by 2002:a4a:e08b:: with SMTP id w11mr3150187oos.62.1586286123231; Tue, 07 Apr 2020 12:02:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586286123; cv=none; d=google.com; s=arc-20160816; b=PCTEHAVuXetpcm5uzuMVofsJGTMmlylXRLMDQW2rU9mbqC93cv6jJ5yUAEh+pCrkz2 mAC/WC71MgOSs20XH6oJ3Ds+JLK8GYCRizJvsgUqmooFyrLv3ZeIpbv+cp2vN6zTmFQC H54Z63MEgfuTTKEM+YmOESb9B6fR4c/zEu0OO4lJjSPEngUCCA9V8MZtvlVT8ORJGFur eSdKeE2gyhINLG6/TWs7x1tZd5PH+GUI1ctOmZMD/vMve/KA1vOnO2PWlO7Js+kv4qjq OEAwDEPxwcTgH4bVQ5icQ3z+7pEAEriOJSFXDcsospxXWgd5xH2kdrUug3LCNzZHiMPp NL1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=i6Rke21c7HzyIE71azx+YQ2nW1pQCz0twQ+N1utavcs=; b=HjHdzAp/hb/9u6tjg7LEY7jhiTmusdP+b2Y2QVhtKANiLDF1n5v2kFWr4y+8414Tk9 V/pDSSLxcxXcA7N7O2qJriRgfBiMhIYs+aZWBN3E2xvEijYDb9HKMqaFSDBYMxaLXKqq 3i/hMtkALb+YKSW6GCuSjOLX3j8I/H2T3M3xLBhwPkbZkQfphXTtOzI2hddoYKLduuCM iLu2DabtlEIME9DmOH8iZZKyIiPjVJpjE+5bYuFlsdfGjcNakCyAtKXQb0bP1IQlNyEp v8KW9xJGvfRmv4jLW+ch0hdb18CvhBEcHcP6qEB0IGfFHwB3DIqAgZrjQRadX6dsAJnH EKsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=jPj8NKg0; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g81si1385707oia.8.2020.04.07.12.01.35; Tue, 07 Apr 2020 12:02:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=jPj8NKg0; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726885AbgDGTA5 (ORCPT + 99 others); Tue, 7 Apr 2020 15:00:57 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:40091 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726332AbgDGTA4 (ORCPT ); Tue, 7 Apr 2020 15:00:56 -0400 Received: by mail-ot1-f67.google.com with SMTP id q2so1512260otk.7; Tue, 07 Apr 2020 12:00:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=i6Rke21c7HzyIE71azx+YQ2nW1pQCz0twQ+N1utavcs=; b=jPj8NKg0WYgoAO+45DKwLOhaP4AukUCrZr8EPlWBKEyrrOhsClxMi0q0ot59czhts2 ZTvuhzN4BvSa5hiL78unndB4vfTk1cZjLtoRQRXN+sos6duXtVm3Q2STdGIeyKWHzFCG oMySyzMZHEzGRo/wfJJagmR5PLmrFfN1SF3B6D4atT+HLF71P0Z+lqkt7Idw75wkvF5U tNYlLgVc2AzMFFIBfmfVTl0ZG5E2/P4yjdt1h57q4Ni9S+VL6s6oHlYgR7ROuGNSWbg7 5PhEhFz4JoVMOVwEvX5aevDwiNgV7J0Uq526RkcbvfAQj1aGhP7hvaFAuIgPLEupguJP IKSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=i6Rke21c7HzyIE71azx+YQ2nW1pQCz0twQ+N1utavcs=; b=kIjXVNfvGjZqzEMXImFWAhHCfBtdwu6P3Fas+th1q54kS+fLzhe8tl3+RlzGpPmK+k oY7GMLk2cAmdeQJgvI8SeuaD4OaS07SUBGnHLtRoc//hkBpoM4cWN+P20Lg/MtcRTfKv JqKmySj2zTcD13ikYv6IC3oot3t2hHjghtI+FKnVIky4dfvi9UOHCjkQxh/31KoeG6Hq TNN1dd1tYnja1ByVXxMlo0ecXy8VE7luoUDN5G2evv5qGRPZfUfZek0m+7obXMSk2gd+ rpFlHPlAZvrEDnT2Zc742fF3mg4ipm1md7vrCg901t/H40BguCdx3Z7EJQs2sjEfBxrF e6eA== X-Gm-Message-State: AGi0Puar9ir3OsAvLJQplxjqhX9zntZT50gi7aObXkJy8a4M6EYqMPuD Tk/XvCKmh9+cCb9XgNRL+1iWAony X-Received: by 2002:a9d:12a6:: with SMTP id g35mr2778402otg.333.1586286054777; Tue, 07 Apr 2020 12:00:54 -0700 (PDT) Received: from localhost.localdomain (cpe-24-31-245-230.kc.res.rr.com. [24.31.245.230]) by smtp.gmail.com with ESMTPSA id w13sm5399983otm.7.2020.04.07.12.00.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Apr 2020 12:00:54 -0700 (PDT) From: Larry Finger To: kvalo@codeaurora.org Cc: linux-wireless@vger.kernel.org, Larry Finger , Stable Subject: [PATCH] b43legacy: Fix case where channel status is corrupted Date: Tue, 7 Apr 2020 14:00:43 -0500 Message-Id: <20200407190043.1686-1-Larry.Finger@lwfinger.net> X-Mailer: git-send-email 2.26.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org This patch fixes commit 75388acd0cd8 ("add mac80211-based driver for legacy BCM43xx devices") In https://bugzilla.kernel.org/show_bug.cgi?id=207093, a defect in b43legacy is reported. Upon testing, thus problem exists on PPC and X86 platforms, is present in the oldest kernel tested (3.2), and has been present in the driver since it was first added to the kernel. The problem is a corrupted channel status received from the device. Both the internal card in a PowerBook G4 and the PCMCIA version (Broadcom BCM4306 with PCI ID 14e4:4320) have the problem. Only Rev, 2 (revision 4 of the 802.11 core) of the chip has been tested. No other devices using b43legacy are available for testing. Various sources of the problem were considered. Buffer overrun and other sources of corruption within the driver were rejected because the faulty channel status is always the same, not a random value. It was concluded that the faulty data is coming from the device, probably due to a firmware bug. As that source is not available, the driver must take appropriate action to recover. At present, the driver reports the error, and them continues to process the bad packet. This is believed that to be a mistake, and the correct action is to drop the correpted packet. Fixes: 75388acd0cd8 ("add mac80211-based driver for legacy BCM43xx devices") Cc: Stable Signed-off-by: Larry Finger Reported-and-tested by: F. Erhard --- Kali This bug has been present since 2007 with no complaints. In addition, the user with a problem already has the fix. I see no rush with this one. Larry --- drivers/net/wireless/broadcom/b43legacy/xmit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/broadcom/b43legacy/xmit.c b/drivers/net/wireless/broadcom/b43legacy/xmit.c index e9b23c2e5bd4..efd63f4ce74f 100644 --- a/drivers/net/wireless/broadcom/b43legacy/xmit.c +++ b/drivers/net/wireless/broadcom/b43legacy/xmit.c @@ -558,6 +558,7 @@ void b43legacy_rx(struct b43legacy_wldev *dev, default: b43legacywarn(dev->wl, "Unexpected value for chanstat (0x%X)\n", chanstat); + goto drop; } memcpy(IEEE80211_SKB_RXCB(skb), &status, sizeof(status)); -- 2.26.0