]> Git Repo - linux.git/commitdiff
drm/amdgpu: Adjust debugfs eviction and IB access permissions
authorAlex Deucher <[email protected]>
Wed, 23 Oct 2024 20:39:36 +0000 (16:39 -0400)
committerAlex Deucher <[email protected]>
Tue, 5 Nov 2024 15:35:56 +0000 (10:35 -0500)
Users should not be able to run these.

Reviewed-by: Yang Wang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c

index a635a0a62e97e8171ec62bdddcb58054901a561d..0cb3ba448c6cf11caca47fcea85cec6cde1b9e16 100644 (file)
@@ -2105,11 +2105,11 @@ int amdgpu_debugfs_init(struct amdgpu_device *adev)
        amdgpu_securedisplay_debugfs_init(adev);
        amdgpu_fw_attestation_debugfs_init(adev);
 
-       debugfs_create_file("amdgpu_evict_vram", 0444, root, adev,
+       debugfs_create_file("amdgpu_evict_vram", 0400, root, adev,
                            &amdgpu_evict_vram_fops);
-       debugfs_create_file("amdgpu_evict_gtt", 0444, root, adev,
+       debugfs_create_file("amdgpu_evict_gtt", 0400, root, adev,
                            &amdgpu_evict_gtt_fops);
-       debugfs_create_file("amdgpu_test_ib", 0444, root, adev,
+       debugfs_create_file("amdgpu_test_ib", 0400, root, adev,
                            &amdgpu_debugfs_test_ib_fops);
        debugfs_create_file("amdgpu_vm_info", 0444, root, adev,
                            &amdgpu_debugfs_vm_info_fops);
This page took 0.057329 seconds and 4 git commands to generate.