Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp652182rwb; Fri, 7 Oct 2022 02:14:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5oNM81Pcy0LAxianBp7qy2L89AkP9Ll55Rjg31t1I0LDmjQ7HGw/sKhlejc3FBaTJirWjN X-Received: by 2002:a17:90b:3ec1:b0:202:f490:e508 with SMTP id rm1-20020a17090b3ec100b00202f490e508mr4409976pjb.156.1665134044351; Fri, 07 Oct 2022 02:14:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665134044; cv=none; d=google.com; s=arc-20160816; b=IkSmJ9JTYgJI6ngWsH5aLy+QewA8YIYvc4+ayhbuilEv/rCrj9OXi8JVPg/7mLFMYo ROV4G3bK+8QLjG6xnP4DqD+mNmedmZ2vGt0aIWyI1Roh7iI5hSLVJU/l3eZuqt5Gw2Cu 9wEdJ1ZrlIzHVbVSlTyCsvwZc1h6/D1gX/dWvbvovLHElgR+JR228ZgAO3pBUt2xSbbi 2uwiSO6EJVt4BpF9zBw7/zNmEEOY0MXyTrPMrNrr7D9gp6vRooPzqCRDEFGl4rgGanpD BhNXqpBzFCQMUco7oEhWGWzpQC/o3mq09oi+JgPcCaw5PV24rll3B/21e2ujXJxbt8AR JwNA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KLnUyUxmIoYwBmiwoJN9ZWyuBI+oze9qdKD7WvSerEk=; b=z/KyBs13NecJp1aWmSLbFetwu2QejRbdOhQMWetvzEvHXzuaAogFko/YP6ppGdivpe nkoUYV0aCCE5uoq/kmHGdlQwY/V6ehWXf4UM//OSGPc81IRedkE/lw3xL/Rwr1R59Rur g1ljMQ9T9NwyEYnKqacji/zdJSX6ItKfikVa/ketU26NKztnooWVqaoYw1SjaYQos7Rn R9cXvw0zi42AurWUTsWdmJR1koJhLpFkHyKfHdAohtdJ5Zbn9xlpXBSIlEmwTAoPs9/J 5QdAAtyGJdR7rAc7kp81ZPxmquPqzZBd0YUZfWND62+z4YHTEsWHPGq9bC5VvMdr24PS JK+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=PucM57S5; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nbd.name Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f9-20020a639c09000000b00439d071c11fsi2342766pge.118.2022.10.07.02.13.54; Fri, 07 Oct 2022 02:14:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=PucM57S5; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nbd.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229658AbiJGJFT (ORCPT + 61 others); Fri, 7 Oct 2022 05:05:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229513AbiJGJFR (ORCPT ); Fri, 7 Oct 2022 05:05:17 -0400 Received: from nbd.name (nbd.name [46.4.11.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 619AF7F138 for ; Fri, 7 Oct 2022 02:05:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=KLnUyUxmIoYwBmiwoJN9ZWyuBI+oze9qdKD7WvSerEk=; b=PucM57S5XFvh58kleH3kAFEm3/ 28lUs1tl8JhdrZebtnxtDOGJNS55LulSHw8otud1WWvAb4ygz5ipiLOGQH45SraUWuyUg/01p57pU 371OL2XwUYvJUuDi9hfT23k8f9p++u8+ZVr9nd0MN9RKul+ROb34435JZKDE2eGeIURo=; Received: from p200300daa7301d00c861250ac39289eb.dip0.t-ipconnect.de ([2003:da:a730:1d00:c861:250a:c392:89eb] helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 (Exim 4.94.2) (envelope-from ) id 1ogjI8-00Ayi8-04; Fri, 07 Oct 2022 11:05:12 +0200 From: Felix Fietkau To: linux-wireless@vger.kernel.org Cc: johannes@sipsolutions.net, Chad Monroe Subject: [PATCH 6.1 2/2] wifi: mac80211: do not drop packets smaller than the LLC-SNAP header on fast-rx Date: Fri, 7 Oct 2022 11:05:09 +0200 Message-Id: <20221007090509.18503-2-nbd@nbd.name> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20221007090509.18503-1-nbd@nbd.name> References: <20221007090509.18503-1-nbd@nbd.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE autolearn=ham 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-wireless@vger.kernel.org Since STP TCN frames are only 7 bytes, the pskb_may_pull call returns an error. Instead of dropping those packets, bump them back to the slow path for proper processing. Fixes: 49ddf8e6e234 ("mac80211: add fast-rx path") Reported-by: Chad Monroe Signed-off-by: Felix Fietkau --- net/mac80211/rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index 9183e5f1ad29..589521717c35 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -4709,7 +4709,7 @@ static bool ieee80211_invoke_fast_rx(struct ieee80211_rx_data *rx, if (!(status->rx_flags & IEEE80211_RX_AMSDU)) { if (!pskb_may_pull(skb, snap_offs + sizeof(*payload))) - goto drop; + return false; payload = (void *)(skb->data + snap_offs); -- 2.36.1