Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1983315pxa; Mon, 24 Aug 2020 01:22:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1Ycvo5RqiO6Lw2rn6IPg1vPEKJ0VU7TcfmlACXhDUwowmaOfeASKwRma0swvF/UquJWB/ X-Received: by 2002:aa7:c50b:: with SMTP id o11mr4167207edq.59.1598257365339; Mon, 24 Aug 2020 01:22:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598257365; cv=none; d=google.com; s=arc-20160816; b=hCzEhyMfHQTw32VbQl19Oq2vz2VtKEle2o7xDbyBGhEHmzXC/drNF0bxAEZpWFu+b9 SUgDCoUA+veulwbX434t7nHfkKTxwW7tQWPaeHaAaP5YX/Bdc7yfu2obDe6AZqBzedNm 0S0d/nxcgPbMQX/ZOJ5iK+fBmLYUoXIsgimhYkKMM0+BRK1Opj+Q2KqN7RiSIGBqwNVo kwI6PRGqIn8d4bFKEMqLJznk2WY/1yT2r/xSuXWQndBgGYVn8jmmO8O8Mz61r7uXAVhZ eHnTPBTNZLcrAruHedoJ/hxmop8pA8sSsrLyZ6Kzgez0gu0MBYbDadRMC16k6VusQ+US 8QOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Q1j7vynfdsoYqb+dbnktYnXWeSHBi/CqLS0nhD28tSc=; b=oQDt+nAYEJYO3HZ2CohACj/ZRQVTwGmRf0N9IJg+gZLXhHSoTSs6XTKPD16uvdjfvB E+/TkzzttQkL5NZhy+pQPYUVWWrKepLGUWSkvDyCci54FX7oK+0OOk5Qui2q0Em3NbLI KZIHjI6caH3TqxmYITJVjXV51o2LBpedC7yOuUa8rK/+6TpO175voDWVwe8HTbaarlCS yTNsOFUi1eF0bCLJL5Zx84qv/O3QwKtBFOwZ4r2GQb8IZNrjfURFq+/rltQXgLWSV1oC ODRICkaFeLEuRsCs58qovzGDBGUG46WokfV3gycKEaqnhBO+i2pdO+l7P8e5WqrFeIZQ nuSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QaG3LqfK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v20si6876237edl.269.2020.08.24.01.22.21; Mon, 24 Aug 2020 01:22:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QaG3LqfK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726158AbgHXIVa (ORCPT + 99 others); Mon, 24 Aug 2020 04:21:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:57152 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726037AbgHXIV3 (ORCPT ); Mon, 24 Aug 2020 04:21:29 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6F9C72074D; Mon, 24 Aug 2020 08:21:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598257289; bh=QzEX0Q0X7UQ0E+od+HjoUCNPygMXV4J3DojKFe3+NZk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QaG3LqfKOISmBY156FLtaptY51AFWM7Jij4KCYaZTciGnWrpUKCeO2eOQu+8p/4X1 6ELe3WbbbBvJO4ZZ+SlLYMwPQOCA5EAkfwLz8kmG+Z69XB8rIL1ZtWdaMq2bVjkcT0 S8srWmV5J3Vc/CriWvDQbMf8KddAESW1z8M3lkh0= Date: Mon, 24 Aug 2020 10:21:47 +0200 From: Greg KH To: Takashi Iwai Cc: Prateek Sood , mcgrof@kernel.org, rafael@kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v3] firmware_loader: fix memory leak for paged buffer Message-ID: <20200824082147.GB336539@kroah.com> References: <1597957070-27185-1-git-send-email-prsood@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 24, 2020 at 10:19:50AM +0200, Takashi Iwai wrote: > On Thu, 20 Aug 2020 22:57:50 +0200, > Prateek Sood wrote: > > > > vfree() is being called on paged buffer allocated > > using alloc_page() and mapped using vmap(). > > > > Freeing of pages in vfree() relies on nr_pages of > > struct vm_struct. vmap() does not update nr_pages. > > It can lead to memory leaks. > > > > Fixes: ddaf29fd9bb6 ("firmware: Free temporary page table after vmapping") > > Signed-off-by: Prateek Sood > > Reviewed-by: Takashi Iwai > > Cc: stable@vger.kernel.org > > Greg, could you review and merge this one please? It's in my to-review queue, thanks. greg k-h