]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:02:11 +0000 (16:02 +0200)
commit701a8896ca5b6244b2f9ed9e8dc2c8652a044d3a
tree404c466537aef0350f1e9e91f44a51dbb749b9ea
parentb28035cb5690cea8e3d01deab3023d56e99751ff
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