drm/amd: Tighten permissions on VBIOS flashing attributes
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 7 Jun 2023 06:45:20 +0000 (01:45 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jun 2023 14:00:56 +0000 (16:00 +0200)
commitb69a10df900386871703a4cc3be974485f52ff7c
treeced87653b3d8b8284d03c93ff43034c817857696
parentb2706d862b6577b8218bdef1c238e175624b906d
drm/amd: Tighten permissions on VBIOS flashing attributes

commit 7ab1a4913d0051cf5196ef7987b5fa42c25e13b6 upstream.

Non-root users shouldn't be able to try to trigger a VBIOS flash
or query the flashing status.  This should be reserved for users with the
appropriate permissions.

Cc: stable@vger.kernel.org
Fixes: 8424f2ccb3c0 ("drm/amdgpu/psp: Add vbflash sysfs interface support")
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c