Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:39230 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750836AbdG0GPZ (ORCPT ); Thu, 27 Jul 2017 02:15:25 -0400 From: Kalle Valo To: Daniel Stone Cc: linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, brcm80211-dev-list@cypress.com, Arend Van Spriel , James Hughes , Hante Meuleman , Pieter-Paul Giesberts , Franky Lin Subject: Re: [PATCH for-v4.13 V4] brcmfmac: Don't grow SKB by negative size References: <20170726084924.27546-1-daniels@collabora.com> <20170726112410.22353-1-daniels@collabora.com> Date: Thu, 27 Jul 2017 09:15:20 +0300 In-Reply-To: <20170726112410.22353-1-daniels@collabora.com> (Daniel Stone's message of "Wed, 26 Jul 2017 12:24:10 +0100") Message-ID: <87d18mxv5z.fsf@purkki.adurom.net> (sfid-20170727_081529_565758_3A80CCC0) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-wireless-owner@vger.kernel.org List-ID: Daniel Stone writes: > The commit to rework the headroom check in start_xmit() now calls > pxskb_expand_head() unconditionally if the header is CoW. Unfortunately, > it does so with the delta between the extant headroom and the header > length, which may be negative if there is already sufficient headroom. > > pskb_expand_head() does allow for size being 0, in which case it just > copies, so clamp the header delta to zero. > > Opening Chrome (and all my tabs) on a PCIE device was enough to reliably > hit this. > > Fixes: 270a6c1f65fe ("brcmfmac: rework headroom check in .start_xmit()") > Signed-off-by: Daniel Stone > Cc: Arend Van Spriel > Cc: James Hughes > Cc: Hante Meuleman > Cc: Pieter-Paul Giesberts > Cc: Franky Lin I'll queue this for 4.13. -- Kalle Valo