Return-Path: Received: from cantor2.suse.de ([195.135.220.15]:60235 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751017AbbGFQ6A (ORCPT ); Mon, 6 Jul 2015 12:58:00 -0400 Date: Mon, 6 Jul 2015 09:57:58 -0700 From: Mark Fasheh To: fdmanana@kernel.org Cc: linux-btrfs@vger.kernel.org, Filipe Manana , stable@vger.kernel.org Subject: Re: [PATCH v2] Btrfs: fix memory leak in the extent_same ioctl Message-ID: <20150706165758.GE7507@wotan.suse.de> Reply-To: Mark Fasheh References: <1435909702-2094-1-git-send-email-fdmanana@kernel.org> <1435919809-8348-1-git-send-email-fdmanana@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1435919809-8348-1-git-send-email-fdmanana@kernel.org> Sender: linux-btrfs-owner@vger.kernel.org List-ID: Thanks for this Filipe, On Fri, Jul 03, 2015 at 11:36:49AM +0100, fdmanana@kernel.org wrote: > From: Filipe Manana > > We were allocating memory with memdup_user() but we were never releasing > that memory. This affected pretty much every call to the ioctl, whether > it deduplicated extents or not. > > This issue was reported on IRC by Julian Taylor and on the mailing list > by Marcel Ritter, credit goes to them for finding the issue. > > Reported-by: Julian Taylor > Reported-by: Marcel Ritter > Cc: stable@vger.kernel.org > Signed-off-by: Filipe Manana Reviewed-by: Mark Fasheh --Mark -- Mark Fasheh