Message ID | 20200203161912.772712580@linuxfoundation.org |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=s+JW=3X=vger.kernel.org=stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7E085C35249 for <stable@archiver.kernel.org>; Mon, 3 Feb 2020 16:31:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 55F0522527 for <stable@archiver.kernel.org>; Mon, 3 Feb 2020 16:31:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580747482; bh=/nOdczqKjWmmQm4bHY76A4S/KlufdHVq5oohak6Mrto=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=Up4md09KBAidNIKdVHJd6PtfAOkP/OYIEVLdqlgf2yOkW5TVtrEc6Mg/mbQ4sh7Pt LKWCJRJRhzOMqOHndvwsZimH/NR1MXjBF7ToIfIaH9Qp3saNAuSUPOMZpwb46h6A7N 7jS/yL5ZL0sgprcGU5fFc/sLWn1me4dWErV1LJcw= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729978AbgBCQbT (ORCPT <rfc822;stable@archiver.kernel.org>); Mon, 3 Feb 2020 11:31:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:44414 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730192AbgBCQbT (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 3 Feb 2020 11:31:19 -0500 Received: from localhost (unknown [104.132.45.99]) (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 A792121741; Mon, 3 Feb 2020 16:31:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580747478; bh=/nOdczqKjWmmQm4bHY76A4S/KlufdHVq5oohak6Mrto=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ufIo+vaY5Bv1f3STLQAcjk0HGDT15u/5F5LkV+jUC4yDnh5GEzgEeZVv9UI7w23qr KwCF2UpjLH9QMU7QQxGhHunejSc2jutQrhP3D1OR+kj0cmYUbaET4A7VAID8GXUKN0 SsKzdFH0zfQL7mL73TOnwjgmSlZsP2mMe6y/obg0= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Reinette Chatre <reinette.chatre@intel.com>, Xiaochen Shen <xiaochen.shen@intel.com>, Borislav Petkov <bp@suse.de>, Tony Luck <tony.luck@intel.com>, Thomas Gleixner <tglx@linutronix.de>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 4.19 03/70] x86/resctrl: Fix use-after-free due to inaccurate refcount of rdtgroup Date: Mon, 3 Feb 2020 16:19:15 +0000 Message-Id: <20200203161912.772712580@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200203161912.158976871@linuxfoundation.org> References: <20200203161912.158976871@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c index db22ba0bf9167..77770caeea242 100644 --- a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c +++ b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c @@ -2877,13 +2877,13 @@ static int rdtgroup_rmdir_ctrl(struct kernfs_node *kn, struct rdtgroup *rdtgrp, closid_free(rdtgrp->closid); free_rmid(rdtgrp->mon.rmid); + rdtgroup_ctrl_remove(kn, rdtgrp); + /* * Free all the child monitor group rmids. */ free_all_child_rdtgrp(rdtgrp); - rdtgroup_ctrl_remove(kn, rdtgrp); - return 0; }