Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp279325pxb; Mon, 16 Aug 2021 05:25:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyleMK04SvDWHc9lBPHC/L2VOsy7PYy+lV4U+IjZBkAUoykhi4mm3v3lqs6Y64aeVbh0/FQ X-Received: by 2002:a05:6402:22b0:: with SMTP id cx16mr20021533edb.185.1629116715941; Mon, 16 Aug 2021 05:25:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629116715; cv=none; d=google.com; s=arc-20160816; b=0K4JRP2vH9/6/3aN/ihnGDlwa4nSh+vnrZC7zjinxUEqsUp1O4kJiwQ0hV2WWBOhE4 rhibjjesue+/Sgkgkxf+p8F3GPP5lbj8f48jgrEOGehokSMUGlObHFbE7XPEMaw48Gm8 1jpZoPJ+vdCQcHk+bLfeudNmoX6EChz+IIR230vYl+PkRzfybKKwqJjWmV8coOoO2r4C nIDEO1DhKKl47TWEYWPoY4+bA8W7a7Om5syAR3YCU8ScCjuNUDRnf0TKp7c4O7FNJnoy E/7KSYuRaGweuwn912ISvh0DC5hKfFs98D5iNODV0R+6ogRpL+O88lQRdIpVsAefCb8U fwIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=OFxJhb5ChaydorJtYsN/zuRAZ1Omn83stZGoS+7n3JU=; b=LX12ILCYOoEJyL92syr5NDsibIFYu0sLohKvRTY1Mf26N7tpCriuYSAymi1TQKFLKk u93Hcuz+MeivLvVLS67AbjYtvQ9Wmg8Fr0A1dAWtt0iOGAuOf9T3xhNT8sztFbx9L5AV /XIeSOjk4XV6w40hTsznrg/aypeC4hfW+slMgu7WqKoB36nikeaL/eba1Rd/gswFeGNh yKiubtxT6oSW9WTfbTdUBPe1Mx6X+cMUq/Airti5BL9Uba1UlYeIXKHAx0FyZnE4zP/q RUO5M2oQnFT+uE426al4MCGy3XaWvb/GNpIhpyTAYESFW0x+Z0VkuufU1Ujr7huwtH+Y myWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=s6ZX6FOY; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x8si9404973edd.516.2021.08.16.05.24.47; Mon, 16 Aug 2021 05:25:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=s6ZX6FOY; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229622AbhHPMXY (ORCPT + 99 others); Mon, 16 Aug 2021 08:23:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229737AbhHPMXN (ORCPT ); Mon, 16 Aug 2021 08:23:13 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5938BC061764 for ; Mon, 16 Aug 2021 05:22:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: 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=OFxJhb5ChaydorJtYsN/zuRAZ1Omn83stZGoS+7n3JU=; b=s6ZX6FOYm/rasv3s29dyRmqvHW ZklGhjacYIZjkRnGMdCtjyhGSQM+L+Erm+rC8Zhnn44FFAareb6c5ks/bFODUQ/Xj6/2h1bDCEUiN +kTSWrjR8mgyxQiABphRaNWPATjM0mWQTZEhX0hmljC9DT2qfWiQb9tU5gVRTwj7RQnI=; Received: from p4ff13206.dip0.t-ipconnect.de ([79.241.50.6] helo=nf.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1mFbdX-0006xf-OD; Mon, 16 Aug 2021 14:22:39 +0200 Subject: Re: [PATCH 1/2] mac80211: Fix ieee80211_amsdu_aggregate frag_tail bug To: Ping-Ke Shih , johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, gary.chang@realtek.com References: <20210816085128.10931-1-pkshih@realtek.com> From: Felix Fietkau Message-ID: <1a7bdf33-046a-b67b-f650-7b4c3d7e2859@nbd.name> Date: Mon, 16 Aug 2021 14:22:30 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210816085128.10931-1-pkshih@realtek.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2021-08-16 10:51, Ping-Ke Shih wrote: > From: Chih-Kang Chang > > In ieee80211_amsdu_aggregate() set a pointer frag_tail point to the > end of skb_shinfo(head)->frag_list, and use it to bind other skb in > the end of this function. But when execute ieee80211_amsdu_aggregate() > ->ieee80211_amsdu_realloc_pad()->pskb_expand_head(), the address of > skb_shinfo(head)->frag_list will be changed. However, the > ieee80211_amsdu_aggregate() not update frag_tail after call > pskb_expand_head(). That will cause the second skb can't bind to the > head skb appropriately.So we update the address of frag_tail to fix it. I think instead of iterating over fragments a second time, we should move the ieee80211_amsdu_prepare_head call further up. - Felix