diff options
| author | Dan Carpenter <[email protected]> | 2019-06-08 09:23:57 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2019-06-13 01:39:48 +0000 |
| commit | 99f304beb82a86713dc4bc1fd65b8dfda25b1f5e (patch) | |
| tree | ac015e389c4cc3d91bf0d4efcb57ac41f69f3d55 /drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |
| parent | drm/amdgpu/{uvd,vcn}: fetch ring's read_ptr after alloc (diff) | |
| download | kernel-99f304beb82a86713dc4bc1fd65b8dfda25b1f5e.tar.gz kernel-99f304beb82a86713dc4bc1fd65b8dfda25b1f5e.zip | |
drm/amdgpu: Fix bounds checking in amdgpu_ras_is_supported()
The "block" variable can be set by the user through debugfs, so it can
be quite large which leads to shift wrapping here. This means we report
a "block" as supported when it's not, and that leads to array overflows
later on.
This bug is not really a security issue in real life, because debugfs is
generally root only.
Fixes: 36ea1bd2d084 ("drm/amdgpu: add debugfs ctrl node")
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c')
0 files changed, 0 insertions, 0 deletions
