diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2021-02-02 08:56:36 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-02-02 20:12:55 +0300 |
commit | c915ef890d5dc79f483e1ca3b3a5b5f1a170690c (patch) | |
tree | 026abda0448ad3b1cf339c1587c00f83c20c4e39 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 4b1d6831b379b341971b694808ad7065a22cd90a (diff) | |
download | linux-c915ef890d5dc79f483e1ca3b3a5b5f1a170690c.tar.xz |
drm/amdgpu: Prevent shift wrapping in amdgpu_read_mask()
If the user passes a "level" value which is higher than 31 then that
leads to shift wrapping. The undefined behavior will lead to a
syzkaller stack dump.
Fixes: 5632708f4452 ("drm/amd/powerplay: add dpm force multiple levels on cz/tonga/fiji/polaris (v2)")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions