Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp33325imu; Mon, 26 Nov 2018 16:41:49 -0800 (PST) X-Google-Smtp-Source: AFSGD/VBnU7PrTWBCh/Zi5Fgyartmx0erxWaCqHKpGp2z0gB8wpQyngfkDBQnzp9tJtkXf2WmEfb X-Received: by 2002:a17:902:6113:: with SMTP id t19mr29248862plj.248.1543279309608; Mon, 26 Nov 2018 16:41:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543279309; cv=none; d=google.com; s=arc-20160816; b=G/mP1h0leQfrUYA3+Un4hRedFmf0wWdCrrzVPdH1Kg3cV7YoPADBmlxXBPxu7aEXe7 Ox7aLK/vBdcE0aN7dD4YVOTsFYR4FDZZzTyC1HbPCDXtVay4JFG8J+qyzHBJHYP2z1LL wu9TEsAbCtZe0/ap1EhlIzP7Cxj+UOIn7RoJovl4LIhiGoGcq84TrDgvYfaQyu0fPBbe acHcIf3z+KX7Sar/KCuzV9jYrTao+QeazJYIC/VBFKSZXhuWMayDlY4NEdMXBEEXeP9D I6Bgv6L0G0O9z1BBVv/0/J+G3MMkFcflfQjb/pCFQpR4wt6AX+zw1gjyLBxpgSQsfjr6 5MqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=TS4fef9aq7XO/7xzsOLa+pT0EnCnuuUd0avShpHW6Tg=; b=flx5rDUvvKei6iX8XkptzWnm/bgp0JMo03CYmaGi9yplGD5hlYyqLz90LF7h/Rfj8k xpArK03bq4C8f4WIutTl6pjJloKNchAHLbs/7WPEhqKNfkNvBb6r+rjC13/UM99BcIK0 32Xp43BqLpBwd7npKpmJ4sOl43U9Q78DHqBXVrXzfrY2E5L0eLoL9sH+zptRe559LkCz CEScY2AplcvTHYiXpAInuPTNRxCVAz28UOuMa1NMceq7Ax/m1hXky/PB4yeCmFS5EPnE 981Jm2g9mGj3NRIvIbsQmBXoLvgDbWSj9XHNwglPKsR/lt9RA43xRZPFnKokTpxiWV+3 Kb4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=Ry3c0q0H; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 186si1814089pgi.424.2018.11.26.16.41.33; Mon, 26 Nov 2018 16:41:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=Ry3c0q0H; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727615AbeK0Lg6 (ORCPT + 99 others); Tue, 27 Nov 2018 06:36:58 -0500 Received: from m12-15.163.com ([220.181.12.15]:34928 "EHLO m12-15.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727456AbeK0Lg6 (ORCPT ); Tue, 27 Nov 2018 06:36:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:From:Subject:Message-ID:MIME-Version; bh=TS4fe f9aq7XO/7xzsOLa+pT0EnCnuuUd0avShpHW6Tg=; b=Ry3c0q0H1OytDJEARjcib 43I2Fvj+6RUFN3/hWR9VGmSpqtqUdjoRG8tJZ971oJqRtKiJoSp43heX6Pdp4MlY /Nx9spvYdzBu4Fp8bxrJ69qzX11AqQNhiSMg4YoDWyGLmk8AqWxb4AAh4F8rsTJV +NzsaCeBBgUdaevVOZ50kU= Received: from bp (unknown [106.120.213.96]) by smtp11 (Coremail) with SMTP id D8CowAA3Y1h+kvxboJZ2AA--.4618S2; Tue, 27 Nov 2018 08:40:30 +0800 (CST) Date: Tue, 27 Nov 2018 08:40:31 +0800 From: PanBian To: Andreas Gruenbacher Cc: Bob Peterson , Christoph Hellwig , cluster-devel , LKML Subject: Re: [PATCH] gfs2: get rid of potential double free Message-ID: <20181127004031.GA125510@bp> Reply-To: PanBian References: <1543221809-86560-1-git-send-email-bianpan2016@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-CM-TRANSID: D8CowAA3Y1h+kvxboJZ2AA--.4618S2 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjxU6j2MUUUUU X-Originating-IP: [106.120.213.96] X-CM-SenderInfo: held01tdqsiiqw6rljoofrz/xtbBZAwMclQHCrrn3wAAsN Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 27, 2018 at 12:19:48AM +0100, Andreas Gruenbacher wrote: > Pan, > > On Mon, 26 Nov 2018 at 09:44, Pan Bian wrote: > > > __gfs2_set_acl will not increase the reference count of acl if it fails. > > In this case, posix_acl_release are called twice, one after > > __gfs2_set_acl and one in the error handling block. This patch does not > > release acl when __gfs2_set_acl fails. > > > > thanks for the bug report and patch; I think this should be fixed more > clearly as in the patch I've posted earlier today. I have seen the patch. It is really much clearer. Thank you! Pan > > Andreas