Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp936709ybl; Wed, 8 Jan 2020 08:17:25 -0800 (PST) X-Google-Smtp-Source: APXvYqyVYkgbOyS79MCiFxK9tY7USPBNxeYwqiutd/PLAHJFFrgexXtpIyPjP0IN69UVy3Wz/zTo X-Received: by 2002:a05:6830:3014:: with SMTP id a20mr4914264otn.29.1578500244896; Wed, 08 Jan 2020 08:17:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578500244; cv=none; d=google.com; s=arc-20160816; b=G/aeZCP4xvbANqplfYKCkvhAWMatPQ5YxYVYTQsud4BwhZucadbiUQ62G0o1sD9v4s dKY9XIZAHWTu0hl1PaWVWHCtCliPiFUQhMuF1CahuownryLNl61iDlSfPf9DnZM7SywF l6UginOC1ZRpwZhf9eNX9UPQkJdooqCWB76n3KsCX9dsj0zZ4vrnARLjxkAA2mF0qcJE 1Rpg5xjjffdqolgjAPfAK8ysNSWflgqiLopW0SllTrFEmG3kd5bsMkMZP6U5TkGNbZNC YCwgFKnxnmmM6LLyxqyn0J+LRySHEaal90NyJKmJpxUEJisWxMwrv6Ij8X8EyO4gqrMY 7wqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=pIthzFHm8mpHuBNxB85B/Mo/g0zBWYuXNfzbkg+y+Wo=; b=Vq+N4E1kaeG+53qMQvrnCShH6YfkNFEimpa6sb9GxZ2Mucj15W+F9f6UjbLDO1ElPI 1prFbcTwwgoOwUi3zagLpmVdzKIfXVttoGVJewBACvbcWfcS+QXAHb88KlHKWHaZfvO5 l0aSiqKKhxQrcm5Lxr24OJu+lcogxOyQOd7QtLbx+NExveJy6DT3bNGnIXejtNt+84Xl SY9CauHJjBSmhZuBpI1sxFHXs1jLY1Jclhx8kRwRp7HsPBAs5O2NKtqSHE5CL5xGZ3L7 uddVAPpnNsHX/UtoTrQCojtNYR/R2cdDvE1tTzu5tM1FfXyhgf79BfhaIMSB9r4bibc6 UXMg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s20si2169817otq.28.2020.01.08.08.16.54; Wed, 08 Jan 2020 08:17:24 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729301AbgAHP7X (ORCPT + 99 others); Wed, 8 Jan 2020 10:59:23 -0500 Received: from mga11.intel.com ([192.55.52.93]:64327 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729289AbgAHP7W (ORCPT ); Wed, 8 Jan 2020 10:59:22 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Jan 2020 07:59:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,410,1571727600"; d="scan'208";a="395782691" Received: from xshen14-linux.bj.intel.com ([10.238.155.105]) by orsmga005.jf.intel.com with ESMTP; 08 Jan 2020 07:59:19 -0800 From: Xiaochen Shen To: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, tony.luck@intel.com, fenghua.yu@intel.com, reinette.chatre@intel.com Cc: x86@kernel.org, linux-kernel@vger.kernel.org, pei.p.jia@intel.com, xiaochen.shen@intel.com Subject: [PATCH 0/4] Fix use-after-free and deadlock issues Date: Thu, 9 Jan 2020 00:28:02 +0800 Message-Id: <1578500886-21771-1-git-send-email-xiaochen.shen@intel.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix several use-after-free and deadlock issues: (1) Fix use-after-free when deleting resource groups. (2) Fix use-after-free due to inaccurate refcount of rdtgroup. (3) Fix a deadlock due to inaccurate active reference of kernfs node. (4) Follow-up cleanup for the change in previous patch. Xiaochen Shen (4): x86/resctrl: Fix use-after-free when deleting resource groups x86/resctrl: Fix use-after-free due to inaccurate refcount of rdtgroup x86/resctrl: Fix a deadlock due to inaccurate active reference of kernfs node x86/resctrl: Clean up unused function parameter in mkdir path arch/x86/kernel/cpu/resctrl/rdtgroup.c | 48 ++++++++++++++++++---------------- 1 file changed, 25 insertions(+), 23 deletions(-) -- 1.8.3.1