Received: by 10.223.185.116 with SMTP id b49csp8409913wrg; Fri, 2 Mar 2018 00:58:34 -0800 (PST) X-Google-Smtp-Source: AG47ELvJO1Wkg+UzJ8unLEoEwy1KPcgMLBR67jxQJAmq9NgQB+9o5wsTWGh/x4xK21LSEkxeaf/u X-Received: by 2002:a17:902:5481:: with SMTP id e1-v6mr4646778pli.300.1519981114370; Fri, 02 Mar 2018 00:58:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519981114; cv=none; d=google.com; s=arc-20160816; b=gWRD3E0l16tw8TtEOEmrT9PjDtC0vfbLhhnH4/JYCMvpwiwLBTuNRJBAZrM2hrOLFa D9H6ku+E9+9yOolmUkm1LVdDLoJS81O0+II0mmA+hZn2dfpCgPvkR9Szy4ibvGUwv8Iu MjLdlyZSEDwe51i1eScbRUOdaDFfoXAnEPT6YrieBO+L7tmbG9ai8LHSKx3fRMufxOfs TIIHga8YR0uxC+3ZYtyiyh1vH8oQH/D794PYnQDAgTyZBMwEjtyYJ5hdQnnTuFZel9Lo BjuUEX1n54DN2sX0oJkW3cT5B34Rw4iT+MqcodhBRHGWpldb9WrpzJqtwSMW5hoxU1CY oVUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=YWExMJ6IJDk6HeZPtTJxMi9i+lYYemlfU3yAJaYtGAk=; b=ySjiNjtt8wW/IRdNL9UTqFb0bw65LWcrmMtdaNH1R8SF0/XBCOJnRT0bbWY7aWxL8l OieK6UzvxxdT+FCwKX7sMRpS3y7Nl1tbMGveeS8zDhE6bd1rzjoxpnDZDsgsIonVzf8p uFMy5xPwGKubIain/qGwBqSOFWtdiPdvaZ4W73uPDGE4/Afy8mtW6hgHC8P3T5vVUO+Y kSLBJG0Ep6sFPDk0MhPUkuC/D4tSY+c0v1LbNEISA4LB3cBsrn5UZ9gRN/lWbOdfS/zr RjZFtYII3MC7kF6sRFVN/5Zd1Pkcdnkjt8bevMnRYYEjlRdg8UJEtIEDniiih2kIwr36 roQQ== ARC-Authentication-Results: i=1; mx.google.com; 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 t195si3723115pgb.692.2018.03.02.00.58.19; Fri, 02 Mar 2018 00:58:34 -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; 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 S1423561AbeCBIyq (ORCPT + 99 others); Fri, 2 Mar 2018 03:54:46 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:50530 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423524AbeCBIym (ORCPT ); Fri, 2 Mar 2018 03:54:42 -0500 Received: from localhost (clnet-b04-243.ikbnet.co.at [83.175.124.243]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id D546A110C; Fri, 2 Mar 2018 08:54:41 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Aliaksei Karaliou , "Darrick J. Wong" , Sasha Levin Subject: [PATCH 4.4 20/34] xfs: quota: fix missed destroy of qi_tree_lock Date: Fri, 2 Mar 2018 09:51:16 +0100 Message-Id: <20180302084437.258714392@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180302084435.842679610@linuxfoundation.org> References: <20180302084435.842679610@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Aliaksei Karaliou [ Upstream commit 2196881566225f3c3428d1a5f847a992944daa5b ] xfs_qm_destroy_quotainfo() does not destroy quotainfo->qi_tree_lock while destroys quotainfo->qi_quotaofflock. Signed-off-by: Aliaksei Karaliou Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- fs/xfs/xfs_qm.c | 1 + 1 file changed, 1 insertion(+) --- a/fs/xfs/xfs_qm.c +++ b/fs/xfs/xfs_qm.c @@ -701,6 +701,7 @@ xfs_qm_destroy_quotainfo( IRELE(qi->qi_pquotaip); qi->qi_pquotaip = NULL; } + mutex_destroy(&qi->qi_tree_lock); mutex_destroy(&qi->qi_quotaofflock); kmem_free(qi); mp->m_quotainfo = NULL;