Received: by 10.223.176.5 with SMTP id f5csp799146wra; Sat, 3 Feb 2018 10:32:10 -0800 (PST) X-Google-Smtp-Source: AH8x224VGvx8wpVLEoWTI3sCzDLi6mo6uHLj8MO6SzY/LexwgtIj2snMqp6TudbI3eQLSOEMgvau X-Received: by 2002:a17:902:8215:: with SMTP id x21-v6mr39186475pln.381.1517682730031; Sat, 03 Feb 2018 10:32:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517682730; cv=none; d=google.com; s=arc-20160816; b=Lkyq1q5PKGVlU055LY2WOieedPAgpReAeicgWai0kUkh0X+POdtyWtVJJjgFaRaJxO 9cCdjcJt6XxySh5RZZt3MfCcEDEFnV1//0tvUJzwz8+7ErSgQXiXDKJ5Qx7KwZsquoas 0nMrnkB6bUWIpzlRd8pRO6J0KBbxbMpP5Nf4kBV61PkXL3pXEaRMaGcW3aELSimOqMG8 dIQo9+urzzynYJKjp8lCGoYbbnXgbBkSzswn3hyHVGY64Dbvaci/S6nMEsLT0QQa8Z1/ 5K61DscVn5Ji8qS8Gv6spq6Ygew5L7pjkH+X2wJeGFTb9xqPfsiNm+nzR45OWXCmwilY bIFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=qvuCMNmlAEn5rY6Cv5BBsof0rbgOP85OS5U7KmQ9hqo=; b=WlY1Ve1dd3m37OBi9eXRAIzBYWtNKiFyEEtmBJWM3Of0z8K5tnbulmJyKT+25X/RxF 3BGMJUeqAeemb7tShTnJklVFoMMMOZdj93cZ4BFtlVUR5g1nhBCC9/QK89+r1lQy+VGI SuUFqA4wj0SVUhnAahOB7yfdsBXDnNESL2wGQHzbayxOBHL+WMoTOnix+qpXSVCcrNAU E+ueI4Ha6hgm8lHuBinU3FTiwUNAWuFzG1BKIaT6vWazNwYWzam2VpOAtlKjsYf6v95m otvcgjxd/61eyFoDGHByGe9oRYMPFgbCBieq5a67v0I2XGIws7G2TX1dWXBYrSfh1o/8 AqHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=hzK6wwi8; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e29si1507008pga.146.2018.02.03.10.31.55; Sat, 03 Feb 2018 10:32:09 -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=@microsoft.com header.s=selector1 header.b=hzK6wwi8; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754717AbeBCSax (ORCPT + 99 others); Sat, 3 Feb 2018 13:30:53 -0500 Received: from mail-by2nam03on0136.outbound.protection.outlook.com ([104.47.42.136]:45129 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753041AbeBCSEr (ORCPT ); Sat, 3 Feb 2018 13:04:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=qvuCMNmlAEn5rY6Cv5BBsof0rbgOP85OS5U7KmQ9hqo=; b=hzK6wwi8l05lw8ICPF4p1Fgk1BPViVVcOzOeNp8W1J0SWKjBa1iDI2llTYmrN7ReW2CVcqJ1ZFRZEWIDjfD9J/RVRFIA6HcbXdO9IQ8icDLpkzyfhRAKFp9+xarb6/g/Yj3Vy4B0DLLtIYskjyrpTH5kVa0ppQtMWDSXWUmajPU= Received: from BL0PR2101MB1027.namprd21.prod.outlook.com (52.132.20.161) by BL0PR2101MB1105.namprd21.prod.outlook.com (52.132.24.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.485.5; Sat, 3 Feb 2018 18:02:09 +0000 Received: from BL0PR2101MB1027.namprd21.prod.outlook.com ([fe80::a8da:b5d9:d710:9bf9]) by BL0PR2101MB1027.namprd21.prod.outlook.com ([fe80::a8da:b5d9:d710:9bf9%3]) with mapi id 15.20.0485.006; Sat, 3 Feb 2018 18:02:09 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Aliaksei Karaliou , "Darrick J . Wong" , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 075/110] xfs: quota: fix missed destroy of qi_tree_lock Thread-Topic: [PATCH AUTOSEL for 4.14 075/110] xfs: quota: fix missed destroy of qi_tree_lock Thread-Index: AQHTnRj9zOW/ncaLNUyvZ3knoNpkHw== Date: Sat, 3 Feb 2018 18:01:17 +0000 Message-ID: <20180203180015.29073-75-alexander.levin@microsoft.com> References: <20180203180015.29073-1-alexander.levin@microsoft.com> In-Reply-To: <20180203180015.29073-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BL0PR2101MB1105;6:52O/cGL2+m+BEDgnLDpS4EKWbSDx2PyQAcU1vs3rWe00eXZPfgVVP2W0DXV141YWYVr8QgG4exBo68jnXHrNwMRyi5WyOwAHT9D8NjT6TJkDdIITysRy4gvdbKUPfGrgerWOlO+zG1lMt31hiQb1PxOSUL3v/rhilaVtBeNULmz6oLHpba+uQjUAavsmVJqciuxVuwAsbJS2ET8Z2nhh9PA52yNx47fLkcX+KPkwmDO3EPCCWgtWsvDRJ928Jj+68r+fCjGWHx544TGt7/uXYqQR5H9y2VmORuYkWhu6xXrYtW4y7Ad5eK7N8cEaxDfxRh/x4WAay182ngAnK2Gt8bL1IPkQfB0W5XycsH3cHxgbTO3SV8fB7x1iMTtWzxnJ;5:lcci7RiTlgGp+bUb2ARuDEdRzYegQGJxKeRDysOF0lUNZpxz1FMqG4LRDUwldyRAcVJq+pcvr4KxI2J05z3F1avqxcDHZcvst3jUAFELHSPoYLJ2eD4OOLfzUHzSapUPehIsN0+kfmySXpdFSxlzTodEwOIAAp8d3zGwM/5iy5w=;24:kAbDs5zqXWVYmcK2M2DiI+3OnhvPkqoN2V9yK3okXXeKCsQo+kPjOUnCcHvk1TcqCUWMECEf0Wb8W3db/wIA5e6i0+pizHQcO4ZxveNrl8c=;7:Ai9IrNW/7CfZHi4+/hdMhu5EzzlSDdgmr9de8EuAOrjwOYALoORuG5L2dADCpD3fSpJbw/gzsfgnK5iPFnXgDi5rBrt0Vj87+1mibhrYMUWNJfhyTFSfvQ5EPl5h2Gr1KjoQK6R3hJjBlP8G2UvRrip9dwGsTLbVRwG2ZXt2c7QsfnQRkP+eB3A6IC4BKCo5a2HE6bKppAivD3F48oM2UzxIyogTEyCCnomOm0F/lFe2VrSnD1jQgsShec9Bw6p3 x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 998a1c74-0eb9-48b8-b8f4-08d56b303e7a x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(2017052603307)(7193020);SRVR:BL0PR2101MB1105; x-ms-traffictypediagnostic: BL0PR2101MB1105: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(85827821059158)(146099531331640); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(61425038)(6040501)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231101)(2400082)(944501161)(93006095)(93001095)(6055026)(61426038)(61427038)(6041288)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(6072148)(201708071742011);SRVR:BL0PR2101MB1105;BCL:0;PCL:0;RULEID:;SRVR:BL0PR2101MB1105; x-forefront-prvs: 05724A8921 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(396003)(39380400002)(39860400002)(346002)(376002)(199004)(189003)(6346003)(97736004)(6512007)(7736002)(26005)(305945005)(102836004)(105586002)(68736007)(5250100002)(8936002)(59450400001)(6486002)(6436002)(106356001)(6506007)(81166006)(81156014)(2501003)(2906002)(10090500001)(99286004)(66066001)(54906003)(6116002)(3846002)(36756003)(1076002)(8676002)(110136005)(39060400002)(107886003)(72206003)(2950100002)(478600001)(10290500003)(22452003)(6666003)(5660300001)(2900100001)(4326008)(25786009)(14454004)(316002)(86362001)(53936002)(3280700002)(15650500001)(186003)(3660700001)(76176011)(86612001)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:BL0PR2101MB1105;H:BL0PR2101MB1027.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-message-info: yDMfi9SwCMCn2BZVNjY6HvSdCbzJ0YRdiAB0l8oYOYdlvqcnoyi+ByqvY2hWPSG9PXwzJuITMAYkqKqoZgxpsw== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 998a1c74-0eb9-48b8-b8f4-08d56b303e7a X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Feb 2018 18:01:17.8003 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR2101MB1105 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- fs/xfs/xfs_qm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/xfs/xfs_qm.c b/fs/xfs/xfs_qm.c index 010a13a201aa..2ec4269971df 100644 --- a/fs/xfs/xfs_qm.c +++ b/fs/xfs/xfs_qm.c @@ -736,6 +736,7 @@ xfs_qm_destroy_quotainfo( IRELE(qi->qi_pquotaip); qi->qi_pquotaip =3D NULL; } + mutex_destroy(&qi->qi_tree_lock); mutex_destroy(&qi->qi_quotaofflock); kmem_free(qi); mp->m_quotainfo =3D NULL; --=20 2.11.0