From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CA8BD3A7D63 for ; Thu, 6 Aug 2026 14:46:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786027605; cv=none; b=IVz3DIpViTlNik55dPZk6uz8h4kJfM3BUFx+Or05nIxy4ZOApG9FqgZQuz3JEs3pRjTCNOPmdAv3piFCUSv58K1IUqEF+7zwirN8QnSvyBHIVSm4qk2/RXSVNhJ72ElK8UGsnrCHIEer/chWHpE9hqFNDO2Y8d274ReqZwqTTpA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786027605; c=relaxed/simple; bh=N5PYz8L08pcG1X2UIa4YSQHaZDUoTg72wd0fTuL/1Mw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XVNStzc6FtmFbeRiVLNGxLEgUfROiH7FzYgsgWpbCFQVeey0MRGqfFw5OIkKP0GcIA4/TLn65b+d5QCM+aD/BB7XR6Yf4TUK/QWVr+aacAF9e2aHy7kimz7C2x6LB/hKaB1Vb9z2YXzKYKo2DjzCVECqi+1O5IeNkqiIDGCxd84= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=f/vePDVo; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="f/vePDVo" Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2AE32153B; Thu, 6 Aug 2026 07:46:39 -0700 (PDT) Received: from e134344.cambridge.arm.com (e134344.arm.com [10.2.212.8]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 892B73F9A2; Thu, 6 Aug 2026 07:46:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1786027603; bh=N5PYz8L08pcG1X2UIa4YSQHaZDUoTg72wd0fTuL/1Mw=; h=From:To:Cc:Subject:Date:From; b=f/vePDVoEnXdQMrk+C6mbM/2/vUjplJcg+WK0Mo3rMOjkWE7tMOi4z9f0BQS7x9bO lS6Kuz0+tJt1wFTGKLhkP3w1Kon7ecerOUuIiDIFo6Sx1shok5UnxySN7kdNRgtUXQ 1dgN70UHeo2Dp4U9D9yLW5gNUyMCfttUHDKuQW6g= From: Ben Horgan To: ben.horgan@arm.com Cc: james.morse@arm.com, reinette.chatre@intel.com, fenghuay@nvidia.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, dave.martin@arm.com, andre.przywara@arm.com, will@kernel.org, catalin.marinas@kernel.org Subject: [PATCH v1 0/2] MPAM Fixes for UAF and NPE on unbind Date: Thu, 6 Aug 2026 15:46:29 +0100 Message-ID: <20260806144631.2502918-1-ben.horgan@arm.com> X-Mailer: git-send-email 2.43.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 The MPAM driver expects to manage all the MSC in a system. At boot it delays its initialization until it has probed all of them but once running it is unprepared to have the MSC taken away and that can trigger UAF and NPE. Workaround this by ensuring it never relinquishes the MSC. Ben Horgan (2): arm_mpam: Fix a NULL pointer dereference on unbinding after an error interrupt arm_mpam: Disable driver unbind to avoid UAF drivers/resctrl/mpam_devices.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.43.0