Files
android_kernel_xiaomi_sm8450/drivers/gpu/drm/amd/amdgpu
Dan Carpenter 99f304beb8 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: 36ea1bd2d0 ("drm/amdgpu: add debugfs ctrl node")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-06-12 20:39:48 -05:00
..
2018-10-24 20:04:03 -05:00
2015-06-03 21:03:15 -04:00
2019-05-02 02:25:53 -04:00
2017-10-20 13:28:44 -04:00
2019-01-14 10:58:37 +01:00
2015-06-03 21:03:15 -04:00
2019-01-14 15:04:47 -05:00
2019-01-14 15:04:47 -05:00
2015-06-03 21:03:17 -04:00
2016-08-31 15:21:09 -04:00
2019-01-14 15:04:47 -05:00
2019-05-20 12:48:43 -05:00
2019-03-19 15:36:50 -05:00
2019-01-14 15:04:47 -05:00