From nobody Sun Jun 14 08:36:49 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 197BC388E46; Wed, 1 Apr 2026 22:35:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775082941; cv=none; b=YG+GXFW/uv6557/YFbsocep0G4tBAkdCRaWzMMjARLdhHGRHHNJmzUvkbfz7MM2VTDvb0pRzeC9dOZGLWk0wSX/O3usoK3qGA2AU6cHxmOmkJ86BVJ8uU3PiZPiMAXMRqVvEyDGJ8MxgR55NBAPulZ3wSNsDvCU6sCsP+685YOI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775082941; c=relaxed/simple; bh=4vcfdS7E+dwPA9JIMlAAu7yrF8ja0/UU49PVluHnysI=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=Me+in7TjaQHOJAxejHOnksgf63YmST/e4sGOELhIfISTwBA+YBph00lsL5CLKjoNNPhTq8mz/wYg6XCYCasuf7DAlX4sNuoJlX+xaLsNayIllDOICPDu5UsWepj+YPQHXHI1GCzu1tSReoVpUx/dleNLpj30fh8kSlp0zLRS5tk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=mpVxeT4O; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=CKVjKx/H; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="mpVxeT4O"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="CKVjKx/H" Date: Wed, 01 Apr 2026 22:35:29 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1775082931; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AaDJd2QBGs3rpRRNnkTGd59oNupvLVtexAb9ouU4E3M=; b=mpVxeT4ONUC9o4fp7sTv0QFx0YD2lrojZycoIyQ6G3Ihu14nBDce3sMNFsz4nKRd9RtzDb raU2JnDIax2mIdGCEMcmb6+HhzJpmAOorOGcI610Kpz9PJTbk2qtVqDnN6ZF5HhqH9EPqM T100iOHXVSKQXQ7oUplwMRQXuSB8DR18TIV0ruvlw9dg0jclLTuYvGVT3iJnrhQ4Wap+qS 3PbTVBR0fq2cHwWPwbk0UMx43Tmsuat0uRDQUSfmeGfc7uFWiAYhBTjaPWO6PQ8XgWLUcf 7iFytsUJgz7nLelAdc0JaRNFgXWtibQpHGRjVfwBesjrOqXU4BeVrFytOfxbSA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1775082931; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AaDJd2QBGs3rpRRNnkTGd59oNupvLVtexAb9ouU4E3M=; b=CKVjKx/H/yoYP0wxMt+hn6Fj/Cqg/Rz68Bx38qKQo17D4mJbsnCFCoIrsEtFl8qGpwQw+I 6nSOHEPGGNnwcwAw== From: "tip-bot2 for Aaron Tomlin" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cache] fs/resctrl: Report invalid domain ID when parsing io_alloc_cbm Cc: Reinette Chatre , Aaron Tomlin , "Borislav Petkov (AMD)" , Babu Moger , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260325001159.447075-2-atomlin@atomlin.com> References: <20260325001159.447075-2-atomlin@atomlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177508292983.1647592.4924478274363547920.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the x86/cache branch of tip: Commit-ID: d06b8e7c97c3290e61006e30b32beb9e715fab82 Gitweb: https://git.kernel.org/tip/d06b8e7c97c3290e61006e30b32beb9e7= 15fab82 Author: Aaron Tomlin AuthorDate: Tue, 24 Mar 2026 20:11:58 -04:00 Committer: Borislav Petkov (AMD) CommitterDate: Thu, 02 Apr 2026 00:11:35 +02:00 fs/resctrl: Report invalid domain ID when parsing io_alloc_cbm The last_cmd_status file is intended to report details about the most recent resctrl filesystem operation, specifically to aid in diagnosing failures. However, when parsing io_alloc_cbm, if a user provides a domain ID that does not exist in the resource, the operation fails with -EINVAL without updating last_cmd_status. This results in inconsistent behaviour where the system ca= ll returns an error, but last_cmd_status misleadingly reports "ok", leaving the user unaware that the failure was caused by an invalid domain ID. Write an error message to last_cmd_status when the target domain ID cannot be found. Fixes: 28fa2cce7a83 ("fs/resctrl: Introduce interface to modify io_alloc ca= pacity bitmasks") Suggested-by: Reinette Chatre Signed-off-by: Aaron Tomlin Signed-off-by: Borislav Petkov (AMD) Reviewed-by: Reinette Chatre Reviewed-by: Babu Moger Tested-by: Babu Moger Link: https://patch.msgid.link/20260325001159.447075-2-atomlin@atomlin.com --- fs/resctrl/ctrlmondata.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/resctrl/ctrlmondata.c b/fs/resctrl/ctrlmondata.c index cc4237c..2ef5316 100644 --- a/fs/resctrl/ctrlmondata.c +++ b/fs/resctrl/ctrlmondata.c @@ -992,6 +992,7 @@ next: } } =20 + rdt_last_cmd_printf("Invalid domain %lu\n", dom_id); return -EINVAL; } =20