On 10/29/2026 2:29 PM, Zack McKevitt wrote:
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.
Additionally, initialize the return value to zero in
drm_ras_nl_list_nodes_dumpit to avoid leaking uninitialized kernel
memory (especailly now that this function no longer requires admin
permissions).
This prepares the interface to be used for telemetry by the qaic
driver.
Reviewed-by: Rodrigo Vivi <[email protected]>
Signed-off-by: Zack McKevitt <[email protected]>
Reviewed-by: Jeff Hugo <[email protected]>