aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorAlex Deucher <[email protected]>2020-08-25 11:43:45 -0400
committerAlex Deucher <[email protected]>2020-08-26 15:45:51 -0400
commitb5b97cab55eb71daba3283c8b1d2cce456d511a1 (patch)
tree84d8c39d26ada4d6cd32db4eaa58b4bee0b86ffa /scripts/gcc-plugins/cyc_complexity_plugin.c
parente2bf3723db563457c0abe4eaeedac25bbbbd1d76 (diff)
drm/amdgpu: Fix buffer overflow in INFO ioctl
The values for "se_num" and "sh_num" come from the user in the ioctl. They can be in the 0-255 range but if they're more than AMDGPU_GFX_MAX_SE (4) or AMDGPU_GFX_MAX_SH_PER_SE (2) then it results in an out of bounds read. Reported-by: Dan Carpenter <[email protected]> Acked-by: Dan Carpenter <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions