Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp915065rwb; Fri, 7 Oct 2022 06:00:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5HNCL5n0kkEJYpNsGtPBEp2AfMsAUsaHo+yXpRA76SBWiyx2/c2wWKQ4Nnfjtu9g6IxUca X-Received: by 2002:a05:6402:156:b0:440:b458:93df with SMTP id s22-20020a056402015600b00440b45893dfmr4627680edu.337.1665147628665; Fri, 07 Oct 2022 06:00:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665147628; cv=none; d=google.com; s=arc-20160816; b=tXm7CqiNs5DDMn7sy/XEPlxjkEqiBtxFruuvhd/1ghHHE/kFX/hKobI3dRkAUEm2gg z/XJzhfRbjO3UeIgMbRKtL/oD/XtuPChEfEoDsd01ru7gNNGOEBxotyYmsh5ekEjsEoe s4mLjVJx/bhRE2tJBoH7QMyPEMgaIO/KSSU8+dpi37080PcNnIKJEElsT81hGoPsAp7e qiLF+vY5pRtdLXX7gzwKKpi+LOq2rcgmfi+Edd33LrDC7PN/NI1FDy2SNAgS/cdEKKTc nSH2v/yOOO8spdN8UujqyU/Mxa8os8Y8R+WYl8k92ptqKNZjx6zd4UlCqWgjH2TKoeKv u63w== 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=p2Coyhr4kvKpJHiECsX3ULQ3e8XfF/2qWRHwFwY+rU/RDAxr/y1kZKidTXsP8+HidV SHz4u2S1AP1BFL+T+yxHjtArux8nJxVygYcallG3vsDbUnlQha0BHzQE9Sb7a+7YSprW YXwG1MdMzqaQvGF5HpgflZLLkXdxyhAhRW1p11pPoukc3IQVR85FDJ1zMfATOfNavxR6 9dncXVxNpCpiEuR9Yjjqk68aBvHZoKFtE6zMQE5pFiGMF08zaGNXNOk/WfqXly9G4FQz 3gyVWLknHxRrDbjLs8lWfwxKEiV4Qy/PzvPBkXc3/+DBBXSTECBjxOCfkCPJpYjcWbg4 OmPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b="SR/1hjov"; 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 hr22-20020a1709073f9600b007879bb73291si2886505ejc.807.2022.10.07.06.00.13; Fri, 07 Oct 2022 06:00:28 -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="SR/1hjov"; 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 S229723AbiJGM4W (ORCPT + 61 others); Fri, 7 Oct 2022 08:56:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229656AbiJGM4T (ORCPT ); Fri, 7 Oct 2022 08:56:19 -0400 Received: from nbd.name (nbd.name [46.4.11.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06F7FB8C18 for ; Fri, 7 Oct 2022 05:56:15 -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=SR/1hjovhw1UTOaqNJlqibkzYU zhou6seiBrvATPycHO6Sa3no/eUnaBFVG6HE+zWwlE8npEgnB4qrBqde2GK/sM9chLj5/a0z5UWPt XVz5AOPXiP5DJyp1qf0GKlBOOrN2dKsymB6aaRTC40evydzAdnMSsh3eDRu9m3N25opU=; 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 1ogmti-00B0Mq-5H; Fri, 07 Oct 2022 14:56:14 +0200 From: Felix Fietkau To: linux-wireless@vger.kernel.org Cc: johannes@sipsolutions.net, Chad Monroe Subject: [PATCH v2 6.1 2/2] wifi: mac80211: do not drop packets smaller than the LLC-SNAP header on fast-rx Date: Fri, 7 Oct 2022 14:56:12 +0200 Message-Id: <20221007125612.88211-2-nbd@nbd.name> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20221007125612.88211-1-nbd@nbd.name> References: <20221007125612.88211-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