Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp61395ybt; Thu, 9 Jul 2020 15:29:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5BMguwTLM0pDDqgpQVG9xhidBmqCBdS1KCG4ZpWRj2pMrMvC3f9TzOqmlyemePf5Svx0T X-Received: by 2002:a05:6402:1d35:: with SMTP id dh21mr70365073edb.186.1594333743432; Thu, 09 Jul 2020 15:29:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594333743; cv=none; d=google.com; s=arc-20160816; b=i3eE92Yls1k0uhbTiNqH244MP9jpn7T+2Lz24a4rOsJCD3mK/Zn0EB/vxDcGgcRtGF oQFVbYH4SA2r7leB+nwt4TF34vtbs5njxQkS7Q//P1aSvcuYM+LcxDrKC+2xx7Pw/z3R 7tFySMvBmfz9gCRn4TzzevzRkTZPWg9PLAs48xGUp9A6KwbspFfnJnvjm4Jmo4gFaquE KEEhYXdVHFPk+ce26uTcamz5VHOnGcMKuiv8slgCv+Uv8CEQ8a6OA7LvHnAMjNWwxwap Kd8LU1ddjmgbgRxV9BWC/2HuGuYYa7C4ihQslxJy7yiqFlp9jOSgND2v0naCzeDeiqrA c/7w== 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:to:from:date :dkim-signature; bh=q1si4eGGBfCveZLSLWCFHDd2SUnybt8iVmHA2xGpEr0=; b=JNgK37gaM8ai/J/KprfbZMeioVCjCdTKxIutboVKe4CEFLpq1TDht6UN28PGepeomb RE20GtIjYaSTOdTx8yzd/4Er94vqmCMofu9JDYM8YTSL4TDxGk7XQ557zkmkL56nWPTu YyeVYT9/yXgASTqvy/wXq7i4326Gpo+urpwztXJO28pYqtyj5mrGXmuck3YEAXxJvJE4 T/s5QiqrXTCiPfEmzVcDrtC9+MOfEPO+7b916c2U7X3gc6TfudUJFZaibbt236NYDiHv j2uS+nq+1A8dZP6dz1r0YAQxNDFozklOsas3ins1G8Hhcx02AmYsavaP746azk+xsfUw /WlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DJmyEEKS; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m1si3012868edr.207.2020.07.09.15.28.39; Thu, 09 Jul 2020 15:29:03 -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=DJmyEEKS; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726509AbgGIW2S (ORCPT + 99 others); Thu, 9 Jul 2020 18:28:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:53414 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726213AbgGIW2R (ORCPT ); Thu, 9 Jul 2020 18:28:17 -0400 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (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 1504B2070E; Thu, 9 Jul 2020 22:28:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594333697; bh=vth7oOQ5CwiMgzvmWzAb0BCz7GgvktX0waV9e0XtVoc=; h=Date:From:To:Subject:References:In-Reply-To:From; b=DJmyEEKSnVjzen9FvYhBmCdwG6lqyHu4BDgbKQ8uVt8Lpl3sgaoHu0pMq6zjhHXFj 3uSN+MA8SFzj1nW1NNAgPvf1ccok2ekLcrkXjSZmyOvMT4z5G+7LSoqGydB23cwTVR qEG3t/NbMbswdLntV59tSOUjQZPS6DREr/PPtqPE= Date: Thu, 9 Jul 2020 18:28:15 -0400 From: Sasha Levin To: dsterba@suse.cz, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Waiman Long , David Sterba , linux-btrfs@vger.kernel.org Subject: Re: [PATCH AUTOSEL 5.7 11/53] btrfs: use kfree() in btrfs_ioctl_get_subvol_info() Message-ID: <20200709222815.GB2722994@sasha-vm> References: <20200702012202.2700645-1-sashal@kernel.org> <20200702012202.2700645-11-sashal@kernel.org> <20200702082558.GH27795@twin.jikos.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20200702082558.GH27795@twin.jikos.cz> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 02, 2020 at 10:25:58AM +0200, David Sterba wrote: >On Wed, Jul 01, 2020 at 09:21:20PM -0400, Sasha Levin wrote: >> From: Waiman Long >> >> [ Upstream commit b091f7fede97cc64f7aaad3eeb37965aebee3082 ] >> >> In btrfs_ioctl_get_subvol_info(), there is a classic case where kzalloc() >> was incorrectly paired with kzfree(). According to David Sterba, there >> isn't any sensitive information in the subvol_info that needs to be >> cleared before freeing. So kzfree() isn't really needed, use kfree() >> instead. > >I don't think this patch is necessary for any stable tree, it's meant >only to ease merging a tree-wide patchset to rename kzfree. In btrfs >code there was no point using it so it's plain kfree. I've dropped it, thanks! -- Thanks, Sasha