Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp17343pxb; Wed, 27 Jan 2021 00:27:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJ/8I+HE3vfat11tJsw8FAOcL/ShCPtI1J2jSl2jXCWlBpUDvhQTTT764ro2jyS6aJz2RO X-Received: by 2002:aa7:d64b:: with SMTP id v11mr7549413edr.16.1611736030747; Wed, 27 Jan 2021 00:27:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611736030; cv=none; d=google.com; s=arc-20160816; b=C3VZrcJfEeXtsVycJqLNf9P3w57YyMyMdjd9Xx0+Rj4ikmdExXKIskkQn7a66S0DBR M0EHJyhVTZ22R753Hq6OX6nOST+n1YaV8rLQUzrBloR1IMl0Vjlmyk9yJ2QqARkFc2jf 0fxmS6wnc7q6e/FTfBZLdOVOhk9Z6v2ql/rN7wpIAOokPzm9zCpDqOot9pHdJfqWgfwm pR8ftWwzzWFAG9xfzT0PA97wRL0XcFQsHwJIrB7rVirrKz9gnInXlGmixIEUJM/vQrCS 3HNaTFEiUSFNIgv9kCm/2HTHIRapU2g8c8QygJTP9ir6AjsobUu2mYf2FUKzHsfRU86M W/Ag== 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=M/lGEXeRX94IlylSgvYqAduXyuhDR2CNPAlu4Y3bTng=; b=aacMo/tFNkAQzEqsRP6hpYZBC7BIfHjAJL3UFBDlpKL0maOky8htu4GCGdxa4Yiqea QGd2nX+9+fLbKBbyXxZ7OntI3FSU08lRyrGPBTs/1/kuZKXdmU3GtCaHFwN6dxBK/zmd 6zhwKMNgKq7OGb4jvTknXbY2Gh3ZXGOxYovRQDNzYjVtVY4k83N8ta6KteG5rEsjoFym fSoaDzcbPmiVqbYXTbCwzuRyHHL1Ruzxzr56qJxlEnFIFERdIEfQY1ZQssNnlsJllgQz j/Mlia2oHwoFgkfMJp+YREWnHls8mzMZ5sWCU1CTc62m9x3D4/JwsXTFv9L0YDkD3Ctj G00Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=JcA67nVH; 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 du19si569251ejc.206.2021.01.27.00.26.46; Wed, 27 Jan 2021 00:27:10 -0800 (PST) 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=JcA67nVH; 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 S231288AbhA0GUv (ORCPT + 99 others); Wed, 27 Jan 2021 01:20:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232846AbhA0GDX (ORCPT ); Wed, 27 Jan 2021 01:03:23 -0500 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5980FC0613ED for ; Tue, 26 Jan 2021 22:02:43 -0800 (PST) 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=M/lGEXeRX94IlylSgvYqAduXyuhDR2CNPAlu4Y3bTng=; b=JcA67nVHQ2KMoVAjGwyVxp3OtB XO2MstpGJ8Z1lNXFvja8PHoMtxFoHi3yym7CoWVwbkFvUVuxaps0D5ed/dKWd6cy9Kvwlf1ZNS8Pd 5o+e5Xn60AJ/WO3xy+/3itKDSwsZxPZkCXQ/A4xUSAGQ9himbhw/AlISGtecVNpkQKes=; Received: from p54ae953c.dip0.t-ipconnect.de ([84.174.149.60] helo=nf.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1l4duc-0008NI-0X; Wed, 27 Jan 2021 07:02:42 +0100 Subject: Re: [PATCH wireless-drivers] mt76: dma: fix a possible memory leak in mt76_add_fragment() To: Lorenzo Bianconi , linux-wireless@vger.kernel.org Cc: lorenzo.bianconi@redhat.com References: <4f9dd73407da88b2a552517ce8db242d86bf4d5c.1611616130.git.lorenzo@kernel.org> From: Felix Fietkau Message-ID: <9ff610a9-78f1-0ffc-5728-d89b4e604ced@nbd.name> Date: Wed, 27 Jan 2021 07:02:41 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <4f9dd73407da88b2a552517ce8db242d86bf4d5c.1611616130.git.lorenzo@kernel.org> 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-01-26 12:02, Lorenzo Bianconi wrote: > Fix a memory leak in mt76_add_fragment routine returning the buffer > to the page_frag_cache when we receive a new fragment and the > skb_shared_info frag array is full. > > Fixes: b102f0c522cf6 ("mt76: fix array overflow on receiving too many fragments for a packet") > Signed-off-by: Lorenzo Bianconi Acked-by: Felix Fietkau Thanks, - Felix