Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36755949rwd; Tue, 11 Jul 2023 05:27:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlH3RCFg9yw6JwAIwmGa98UpkD5eEJWkfLEerHIcd4pyvrFaCGAWotHTbLMKrluOQn76odH1 X-Received: by 2002:a05:6a20:734e:b0:12e:cce6:62a6 with SMTP id v14-20020a056a20734e00b0012ecce662a6mr19403877pzc.29.1689078464750; Tue, 11 Jul 2023 05:27:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689078464; cv=none; d=google.com; s=arc-20160816; b=SOIjplfbTnXp6rDVE+5LutNVTfutk6qujnYm7gPupbP6T+PYg1FmBkdWG+6RZRmzXT jVk/JYHb5t39zip+3zbpDIPNo7GHdJ2x/H3x/EV7NgUkFWqFLJo21jkdHEmHz5hixdw7 +jrNhEn0GBhW8uNDO+t2Km9yzAgnI17Z1a2htAXsoy0RZM4c4y8Au0+IQ+3kxCw393+4 4nTJZRT5hUAzlynXkTiPiruawEJix5cn7hGJuBC20/IdXVaaoAdAWyZBI/GfcuyUqe3M 5qKGTb1D8KgXL4T+NR2iz06Py9i8LzBzsZBTS1+4017P7BRR5M0FpxOxAry2pns08A47 NxHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:cc:to:from:subject :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=j8qL+FKB3NRMZQtW5eTuMeVwqoQBnBSAfsF2IIW3bbc=; fh=PYUEV1xM1yfyw+/ol3pS2VNo2tHyTh/MW62o9XjTJPs=; b=C3aKrO2H48Eqhjy6z0PR1TKIwa9XF4dKTvSXEtC7Ohu7eqWhzNImpAmtnCNQ8rR1Zx uJycJOWJtrVQ9wAlfvHUCcSUcudYjvKOq/KcrW/Y5C2JKasq9w1MeI2Ehx55JAC1WvsF TrYYHkVH/Li+6bScYJrsW8ekELTJ69e3h93SHESSY4yffnb3fBka87a75t9xvpXe6Wcl +hMV+FI9E3eHpVTFPn6iJCowuIzK2c57NcucszQRi2jdsWciKOtT9eCu6k3Q6W75DCRV Qkna6v7LKm0Szj8YVciyRpxKlwTTDOq7qFrIZVmoOQYYK+McNEgS7zrj3QeJBrquKglU 5QoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=kuM1GEoD; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w71-20020a63824a000000b0054ff7740abfsi1363027pgd.482.2023.07.11.05.27.33; Tue, 11 Jul 2023 05:27:44 -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=pass header.i=@gmail.com header.s=20221208 header.b=kuM1GEoD; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229911AbjGKMYz (ORCPT + 61 others); Tue, 11 Jul 2023 08:24:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231646AbjGKMYh (ORCPT ); Tue, 11 Jul 2023 08:24:37 -0400 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B1651BC5 for ; Tue, 11 Jul 2023 05:23:49 -0700 (PDT) Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-3fbc656873eso69892315e9.1 for ; Tue, 11 Jul 2023 05:23:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689078084; x=1691670084; h=in-reply-to:references:cc:to:from:subject:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=j8qL+FKB3NRMZQtW5eTuMeVwqoQBnBSAfsF2IIW3bbc=; b=kuM1GEoDt8Mocq9w/zJDYB5c9ttnEgfS5VXxqxZD/5oq0wwmArHOtCTNas3Av7JeNQ ufZAx7KjT/yMBMFSjxlCmvyRicdHAZokN8PJ0Z2zUcQ6QW4rraND/03Sn+GWrjZ56wgT Tw/F68zO6r/gjzl0JGqzGFMtkGuto4tZStEzNKzJQsad6lq1zZxYTwxvRYROzgGel1RD y/puRb38aWOdZY5wIUVchDBkmJ6sx71cUY865Luno1tN8z0VevwqejVG1AWr3+NrSIAZ JXS6BPDvxGQ2vD/NgFh8uUDz0VsMf6F4PkXsDuSENigk+gTOA+6MhEaS3hcF7aoE0+0I GsJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689078084; x=1691670084; h=in-reply-to:references:cc:to:from:subject:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=j8qL+FKB3NRMZQtW5eTuMeVwqoQBnBSAfsF2IIW3bbc=; b=A36704ZzautmBXW4Wq0GJ//zNhXtNUDOINaedUcpX8w36xtRuBxI+YVIOJW+nHhx+M vrBJv+CFZxtaQf++n0jSWjK/0HBYPydbnnJV77HWK3Nje18G3Ec7N1G+LXZOvCCt5+Ek UEADBLYnb9WbO+Zsngdk15Zah9XPzY38Qf1r2SB+AtIcwz62eAhpfGySUB9pZFfruChv 1YMtAj4M2sxD2FJSLoZfa2v4EgB8ESigZ5shnBuqqhhXjtZn82GXuMnQ6TZ7m0wHD6hI G7JCWcG1mfWPtuEs4sG7ZTMhc5IZ3UsBWklTb9yLHR1IC219XJWlu3BKN7ZslukiYTw+ 312A== X-Gm-Message-State: ABy/qLaHaq2i95ACHuKuBg8LSCNl0+KEG0+XLdjRzkjFNng0wc0Wpfyu GNhf1aaJwxvKH36TWQ+raSQ= X-Received: by 2002:a7b:cd94:0:b0:3f7:f2d0:b904 with SMTP id y20-20020a7bcd94000000b003f7f2d0b904mr20170516wmj.8.1689078083530; Tue, 11 Jul 2023 05:21:23 -0700 (PDT) Received: from localhost (freebox.vlq16.iliad.fr. [213.36.7.13]) by smtp.gmail.com with ESMTPSA id e14-20020a5d65ce000000b0031437ec7ec1sm2166600wrw.2.2023.07.11.05.21.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Jul 2023 05:21:23 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 11 Jul 2023 14:21:22 +0200 Message-Id: Subject: Re: [PATCH wireless] wifi: cfg80211: fix receving mesh packets without RFC1042 header From: "Nicolas Escande" To: "Felix Fietkau" , Cc: X-Mailer: aerc 0.15.1 References: <20230711115052.68430-1-nbd@nbd.name> In-Reply-To: <20230711115052.68430-1-nbd@nbd.name> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 On Tue Jul 11, 2023 at 1:50 PM CEST, Felix Fietkau wrote: > Fix ethernet header length field after stripping the mesh header > > Cc: stable@vger.kernel.org > Link: https://lore.kernel.org/all/CT5GNZSK28AI.2K6M69OXM9RW5@syracuse/ > Fixes: 986e43b19ae9 ("wifi: mac80211: fix receiving A-MSDU frames on mesh= interfaces") > Reported-by: Nicolas Escande > Signed-off-by: Felix Fietkau > --- > net/wireless/util.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/net/wireless/util.c b/net/wireless/util.c > index 89c9ad6c886e..1783ab9d57a3 100644 > --- a/net/wireless/util.c > +++ b/net/wireless/util.c > @@ -580,6 +580,8 @@ int ieee80211_strip_8023_mesh_hdr(struct sk_buff *skb= ) > hdrlen +=3D ETH_ALEN + 2; > else if (!pskb_may_pull(skb, hdrlen)) > return -EINVAL; > + else > + payload.eth.h_proto =3D htons(skb->len - hdrlen); > =20 > mesh_addr =3D skb->data + sizeof(payload.eth) + ETH_ALEN; > switch (payload.flags & MESH_FLAGS_AE) { I tested this on my side and everything works again, so if you want/need it= : Tested-by: Nicolas Escande