From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1020B33F360 for ; Fri, 8 May 2026 18:21:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778264512; cv=none; b=mWAI7OQ5i68CV4WcquzSXwIBTOD2ienJAKc9DrECFHuOIRTZO8tcUfoKsM/iE9wrRORytMWo9SI0DSySRJfeU5OAcoC3SBUbiegOR9x4L/+FKSWAgyTDZiIn7Yu67k5ztJaxCauVBi//ttojopGZ+fUXU2G2xB8mL7OnnmtfAIg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778264512; c=relaxed/simple; bh=k6A3ZUpU/Ys/URHWsSBJxfnT8LSTRRhtMAx8tDA9Q0k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tlycAVkoB9cocDvsonHMDZ0NWqjPwq3xIfItME38W+7rhBkprWmdDnX9dX3vb+tS874D6gmEKdHUtP++/fnSqVphNDbtuV91/f2qbqnG6+AOAQujHhPkuEVqWU9LH1zWNnWkqY/idy7FxUO04Y5qMZ7EeOLv1qWBtyx08o/jI44= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=abVh2t0O; arc=none smtp.client-ip=198.175.65.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="abVh2t0O" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1778264510; x=1809800510; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=k6A3ZUpU/Ys/URHWsSBJxfnT8LSTRRhtMAx8tDA9Q0k=; b=abVh2t0OvHq9D/liI+hrczElUOjNu5wA6PV6JzPND9vHsXEt4cO+BURx 8kQchpOUMBF3YeAOhiz2OG9/gbcoLtBmIjDrAXP+Ci9tUenQiuRooouyF 05cbzr0kwL5tf5WIKMNbsCKYzXpAzvnnntjPPf17DhJ28xb5q0ZpZYQtW V+R8x8dBdtx8ozoePERp5w4SqmdvQRJLAt7tg46C/ksMXRXixAcaD6eXP 78ahevtlBrp6VOTRB9zwN5I0m/tW9FyJ0Wacom1Q6n5Dy69pwgyPLI0KZ BPLkmeG7HdaqJ/89fyaXnrXwRKOsqz3uM4QE28N1AKKCNnRop1D25pC9U g==; X-CSE-ConnectionGUID: KW73HCIaTJO4jBMmVDWtEg== X-CSE-MsgGUID: sj21M45UTuiVQHtfXKZsUw== X-IronPort-AV: E=McAfee;i="6800,10657,11780"; a="79264138" X-IronPort-AV: E=Sophos;i="6.23,224,1770624000"; d="scan'208";a="79264138" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2026 11:21:49 -0700 X-CSE-ConnectionGUID: /WCE5CrgTqy2+nCpjmtyYA== X-CSE-MsgGUID: tIG88zQERy6TskzGkRQmfw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,224,1770624000"; d="scan'208";a="233776422" Received: from mdroper-mobl2.amr.corp.intel.com (HELO agluck-desk3.intel.com) ([10.124.220.98]) by fmviesa007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2026 11:21:48 -0700 From: Tony Luck To: Fenghua Yu , Reinette Chatre , Maciej Wieczor-Retman , Peter Newman , James Morse , Babu Moger , Drew Fustini , Dave Martin , Chen Yu Cc: Borislav Petkov , x86@kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Tony Luck Subject: [PATCH 0/4] fs/resctrl: Fix three long-standing issues Date: Fri, 8 May 2026 11:21:39 -0700 Message-ID: <20260508182143.14592-1-tony.luck@intel.com> X-Mailer: git-send-email 2.54.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sashiko reported[0] a deadlock during mount, and a use-after-free when an L3 domain is removed during CPU offline. Reinette found a memory leak in the mount error path while refactoring code for a solution to the mount hang. Patch 1 just reorders some code so that fixes can be applied without adding additional forward declaration of functions. Patch 2 fixes the memory leak found by Reinette Patch 3 fixes the mount deadlock[1] Patch 4 fixes issues with CPU offline.[2] N.B. Reinette did all the work for patches 3 & 4, so I listed her as author an me as Co-developer. Those patches need her sign-off. [0] Sashiko report: Link: https://sashiko.dev/#/patchset/20260429184858.36423-1-tony.luck%40intel.com [1] This is v3 of the deadlock fix. Previous version is here: Link: https://lore.kernel.org/all/20260504220149.157753-1-tony.luck@intel.com/ [2] This is v2 of the CPU offline fix. Previous version is here: Link: https://lore.kernel.org/all/20260501213611.25600-1-tony.luck@intel.com/ Reinette Chatre (2): fs/resctrl: Fix deadlock for errors during mount fs/resctrl: Fix issues with worker threads when CPUs are taken offline Tony Luck (2): fs/resctrl: Move functions to avoid forward references in subsequent fixes fs/resctrl: Free mon_data structures on rdt_get_tree() failure fs/resctrl/monitor.c | 55 ++++++ fs/resctrl/rdtgroup.c | 440 ++++++++++++++++++++++-------------------- 2 files changed, 287 insertions(+), 208 deletions(-) -- 2.54.0