🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #18185

[PATCH v4 2/4] drm/drm_ras: Remove admin-perm flag from list-nodes operation

#18185
From: Zack McKevitt
Date: Tue, 17 Nov 2026 23:34
46 lines
13295 bytes
Drivers may want to avoid requiring CAP_NET_ADMIN for subsequent
drm-ras operations. However, userspace must still be able to access
the list of RAS nodes to determine the node IDs. So, drop the
CAP_NET_ADMIN requirement for dumping RAS nodes so that drivers
with different permission requirements are still able to use the
interface.

This prepares the interface to be used for telemetry by the qaic
driver.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Signed-off-by: Zack McKevitt <zachary.mckevitt@oss.qualcomm.com>
---
 Documentation/netlink/specs/drm_ras.yaml | 1 -
 drivers/gpu/drm/drm_ras_nl.c             | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/Documentation/netlink/specs/drm_ras.yaml b/Documentation/netlink/specs/drm_ras.yaml
index 4c2ac9a1ba3f..a88fdab7a1c7 100644
--- a/Documentation/netlink/specs/drm_ras.yaml
+++ b/Documentation/netlink/specs/drm_ras.yaml
@@ -112,7 +112,6 @@ operations:
            the node IDs. These IDs are required for all subsequent
            operations on nodes, such as querying error counters.
       attribute-set: node-attrs
-      flags: [admin-perm]
       dump:
         reply:
           attributes:
diff --git a/drivers/gpu/drm/drm_ras_nl.c b/drivers/gpu/drm/drm_ras_nl.c
index c9f5e0ceb3b5..ff0dc406c27c 100644
--- a/drivers/gpu/drm/drm_ras_nl.c
+++ b/drivers/gpu/drm/drm_ras_nl.c
@@ -46,7 +46,7 @@ static const struct genl_split_ops drm_ras_nl_ops[] = {
 	{
 		.cmd	= DRM_RAS_CMD_LIST_NODES,
 		.dumpit	= drm_ras_nl_list_nodes_dumpit,
-		.flags	= GENL_ADMIN_PERM | GENL_CMD_CAP_DUMP,
+		.flags	= GENL_CMD_CAP_DUMP,
 	},
 	{
 		.cmd		= DRM_RAS_CMD_GET_ERROR_COUNTER,
-- 
2.43.0
Technical Details
Message-ID: <20261117233442.407877-3-zachary.mckevitt@oss.qualcomm.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365712-linux-kernel-netdev=dewy.ru
References: <20261117233442.407877-1-zachary.mckevitt@oss.qualcomm.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365712-linux-kernel-netdev=dewy.ru
From: zachary.mckevitt@oss.qualcomm.com (Zack McKevitt)
Newsgroups: linux.kernel.netdev
Subject: [PATCH v4 2/4] drm/drm_ras: Remove admin-perm flag from list-nodes operation
Date: Tue, 17 Nov 2026 15:34:32 -0800
Organization: Usenet Network
Message-ID: <20261117233442.407877-3-zachary.mckevitt@oss.qualcomm.com>
References: <20261117233442.407877-1-zachary.mckevitt@oss.qualcomm.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2455020"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:+sh7kIZIzHXuCa/g4U6459680U0= sha256:uu5mdS4bx98l6MY1NsMmUt7TkwdpPNTJqkEFpWiFOLY=
	sha1:8+YyiqrHwPi+oslputTj+anpxmU= sha256:niA1ltzL3tVzZ8RegOOBabrRznZNeWk72SvVZNneehU=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 8D17B1150F5; Wed, 18 Nov 2026 02:35:25 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.95
X-Spam-Status: No, score=-2.95 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
	URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=qualcomm.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id vwQFpxfxtFRS;
	Wed, 18 Nov 2026 02:35:21 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-365712-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=oss.qualcomm.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 11AEB1150FA; Wed, 18 Nov 2026 02:35:12 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 6E0D4444F4; Tue, 17 Nov 2026 23:35:07 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794958506;
	b=Ird6s83X4GWyUtKbmXOLbcMbbyd/dyueH4bNduHSmQ/J4jSJPTSTl7ma+SZ5vs3qgUTK
	 9Y8ebf4bKd0h8ZxSFYUpF0kneUussa+LfqeE9WH2zicioWmhUTuzGV3WtY2AblVlU5H4B
	 YrAoMa8VHHJBEiCcA/NgtkbUat8FnWbXplaScrCT5rAacfaC7HowHMvb8tImUkpe2wqXv
	 T4KvhOksVXWMd/WOD0VmgJ8lY4bfONbDcD+fQZqp1G1unZqqoQyE6ld8tTt2Jb18h4PPj
	 jTgw204Zlu3a/oQjVp8LRimfw9rKSf3u1HAyxAVNvZvmYZ0v4QaSrHSroOJmwxSXT1w==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794958506;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:Received:
	 Received:Received:Received:From:To:Cc:Subject:Date:Message-ID:
	 X-Mailer:In-Reply-To:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Transfer-Encoding:X-Proofpoint-Reinject:
	 X-QCInternal:X-QCInternal:X-Proofpoint-GUID:X-Proofpoint-ORIG-GUID:
	 X-Authority-Analysis:X-Proofpoint-Spam-Info:
	 X-Proofpoint-Spam-Details-Enc:X-Proofpoint-Virus-Version:
	 X-Proofpoint-Spam-Details;
	bh=7vVL+O22Fy4xfBwvf4r81a/dEA1a/72qiNfr/2FpCxM=;
	b=iveLSR02H1up+/e+GFCwX6v04CQ8+D4jPDigo8vtNwiJ6dSp9FCHPXnyvz1xlnKGHgHD
	 A7KREeATEj+s+iNafFMLCk04XZnlAWSE0JT5tI2xA7oD9eQzcHGtZ/a5/zbmIkZuYjnH8
	 aK+mJGZla7wdp3uZ96BEQGa6e0wNt7vmWlty0QvefwS2XSZpQMRYYL/oa+8beh1M5EC/S
	 CdWQoUzYoqL3nNi0pt1ANH8wsy8SZlblfANj+KNmzftzhNC/xyuF7hOvQyEiyNd7IM+Ih
	 t3rpgSSGaIu98wBf7KRGeJgMsfewmt8WzMuBzBNPJRuqay4nrQX5oXotzz04DG0an6A==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=gDVrfEft;
	dmarc=pass header.from=oss.qualcomm.com;
	spf=pass smtp.mailfrom=qualcomm.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id A0B09606A881;
	Tue, 17 Nov 2026 23:35:06 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=gDVrfEft
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.168.131
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794958505;
	b=PK0BdkQpPbglcmFWgfosD5gF9ReRq1aFVXtYxmXspsVp4QWnpFmhGanhImb/3JSqvLE7
	 ghpp2VBqTepdSSbF9EQKq2fVJ8aIjAyF497KHb2ahNDjwf6o0xw0ynCNegn50ywPA9hGY
	 psbH+Wn3QhUTJNQXKbYNnd2UacY3OCq95XY1QIvfOMFmH2eQtwPB/WMiy1efFv08hG0ZT
	 dd22DVtaf4NIouNU1SIlQPWq0s0RNQyMNF9MQo8eo776ClEkQro+XH9K/doUR32vNzOAy
	 xp7XuJBGhKBwVaIVJHjhwDXDyMX62qPOEU6w4RPpK4CT+ktTYkFO0gtg6Ntu96OXBNg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794958505;
	h=DMARC-Filter:Received:DKIM-Signature:Received:Received:Received:
	 Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:
	 References:MIME-Version:Content-Transfer-Encoding:
	 X-Proofpoint-Reinject:X-QCInternal:X-QCInternal:X-Proofpoint-GUID:
	 X-Proofpoint-ORIG-GUID:X-Authority-Analysis:X-Proofpoint-Spam-Info:
	 X-Proofpoint-Spam-Details-Enc:X-Proofpoint-Virus-Version:
	 X-Proofpoint-Spam-Details;
	bh=7vVL+O22Fy4xfBwvf4r81a/dEA1a/72qiNfr/2FpCxM=;
	b=1vKB9LjkH1v3/oGbOXcAoWh32f2QHT1rYm4St3rF4kbMfZ3dJiX/VFnMj1MwVMrk47wI
	 Avna5Sy0mAVQZswOXp/KIKae1POUmbDEHZ9kbkZumQ+9L4LLspXllKnP0LL6VeujF7ZqO
	 nyTJBt7l/XOTew7azddLDwv/E5E2EY9Ls8zFAD1G/+BrklDYN5h6ZNcpwgCsRJKeWDfdJ
	 3dXA1ttorP4b9lyeCmk43CYepQkqocFWRYtVZ5NwSlnYz8MJzSqV6ohLhvHfLiDQb4DIf
	 5XxjDp/cR0dAghURkievjjXU5y3uO2asBOIn8VRMt6Zs2/+RvM3rzNcn2OlRRvSAPdw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=oss.qualcomm.com;
	spf=pass smtp.mailfrom=qualcomm.com;
	dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=gDVrfEft;
	arc=none smtp.remote-ip=205.220.168.131
X-Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4A32C606A330
	for <netdev@vger.kernel.org>; Tue, 17 Nov 2026 23:35:04 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4A32C606A330
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=qualcomm.com
X-Received: from pps.filterd (m0279864.ppops.net [127.0.0.1])
	by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AHMfEbE269758;
	Tue, 17 Nov 2026 23:34:52 GMT
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=
	cc:content-transfer-encoding:date:from:in-reply-to:message-id
	:mime-version:references:subject:to; s=qcppdkim1; bh=7vVL+O22Fy4
	xfBwvf4r81a/dEA1a/72qiNfr/2FpCxM=; b=gDVrfEftvuTNSYjOmd5AH1TjJbQ
	+L2OKrQESZn5O/1d6pCsD3OJFsKZadQGfDBYTAu5Y0cbRpkqwmXas13VGahLrnSa
	MH2pbQ4I0Yk175Wx45rSkWdsBdPnNK+mjJ09kZD7iRelVpjq9yqOVjeCgE8T32C6
	xWk686uuxa6MmpP70GCPVbo9enQtKk1KrysOPZyzyH7bVXBWkxzf1IdtL+lgau39
	newMcHXS+2Gy+pngG7wTDD2rE/KMdyFSAQ8UVtai+IVBFLeGxp9y8Yrv3X2aGZbp
	t+XNgEj2dgnk70bD+RScITDI5MsjCsoQ0VhkBF+GrS1HrkdnHvBkM8yeTrQ==
X-Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20])
	by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j0yvb85y1-1
	(version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);
	Tue, 17 Nov 2026 23:34:52 +0000 (GMT)
X-Received: from pps.filterd (nalasppmta04.qualcomm.com [127.0.0.1])
	by NALASPPMTA04.qualcomm.com (8.18.1.11/8.18.1.11) with ESMTP id 6AHNYptR3572841;
	Tue, 17 Nov 2026 23:34:51 GMT
X-Received: from hu-devc-lv-u24-a.qualcomm.com (hu-zmckevit-lv.qualcomm.com [10.81.84.220])
	by NALASPPMTA04.qualcomm.com (PPS) with ESMTPS id 6AHNYp7Q3572833
	(version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);
	Tue, 17 Nov 2026 23:34:51 +0000 (GMT)
X-Received: by hu-devc-lv-u24-a.qualcomm.com (Postfix, from userid 4696302)
	id 4A5B722B03; Tue, 17 Nov 2026 15:34:51 -0800 (PST)
X-Cc: jeff.hugo@oss.qualcomm.com, carl.vanderlip@oss.qualcomm.com,
        troy.hanson@oss.qualcomm.com, youssef.abdulrahman@oss.qualcomm.com,
        Zack McKevitt <zachary.mckevitt@oss.qualcomm.com>
X-Mailer: git-send-email 2.43.0
X-In-Reply-To: <20261117233442.407877-1-zachary.mckevitt@oss.qualcomm.com>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-Proofpoint-Reinject: loops=2 maxloops=12
X-QCInternal: smtphost
X-QCInternal: smtphost
X-Proofpoint-GUID: 6m6-wabHie86zbhek30JOYUGmKHXJrCo
X-Proofpoint-ORIG-GUID: 6m6-wabHie86zbhek30JOYUGmKHXJrCo
X-Authority-Analysis: v=2.4 cv=YfgodARf c=1 sm=1 tr=0 ts=6afce49c cx=c_pps
 a=ouPCqIW2jiPt+lZRy3xVPw==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17
 a=zJRp6_cAMcgA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22
 a=DJpcGTmdVt4CTyJn9g5Z:22 a=QyXUC8HyAAAA:8 a=EUspDBNiAAAA:8
 a=CU0-bA9xmp4BjaDge1wA:9
X-Proofpoint-Spam-Info: AW1haW4tMjYxMTE3MDA5MyBTYWx0ZWRfXzetd45caiFhc
 K3sfBgKGzY7piXS961FLZYMX9I1nB+rDWglIvPvn7QFJV9C1dd2/NnrvzyctQ+siqKRKS0SW/nK
 HLgQWeM23VJQFiaKjVqkMl+8tT6j+kA=
X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTE3MDA5MyBTYWx0ZWRfX8kHi32OXQjjU
 40m8hxmD77fHyoRzMCKQPNEkk+r0njOj2mAj1922YZH7vwBy7FvyRLvZhjqCRwfc3zfj2nXIsKv
 M3vuTVB+xJc6zXatNns3Bhn/J5ggv/ZVxUcbxt3jvfza0hOP4wdpxEPZAYitt2YFf3M1e+vtrtK
 fD1bD5lYgru5994LmBgMQPvXQmme1HFmV9rbPVbaYXWwdfxHaSExuDhkpLksEX6KPsveBrB0dml
 BLllVCR/vmPTJ2HRwRWlIUA50ZtRRh6enjz07C/F8Nd4hqs7dbPODBk2KxyY3Zyao/XOms0dTfy
 QLty2ffrr3LG6HyHSIXtDXnwjcqdteRhWyrEyKlgJVAIPDx4aYQ4jm+5W/I105tIa1zR+lBsMyW
 3kjPFoI+q3uwV856u2lITwmYgTDLAdpoEEz1dN3cgkJNEPHH1jYUpnt8zubL8Cb9NJZUcqMjJQu
 c9PVtYzt+rvxVTOjkpg==
X-Proofpoint-Virus-Version: vendor=baseguard
 engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49
 definitions=2026-11-17_05,2026-11-16_01,2025-10-01_01
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0
 clxscore=1015 lowpriorityscore=0 phishscore=0 impostorscore=0 malwarescore=0
 adultscore=0 priorityscore=1501 spamscore=0 bulkscore=0 suspectscore=0
 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0
 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611170093