drm/amdgpu: add upper bound check on user inputs in signal ioctl
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu/userq: Fix reference leak in amdgpuuserqwaitioctl
Drop reference to syncobj and timeline fence when aborting the ioctl due output array being too small.
(cherry picked from commit 68951e9c3e6bb22396bc42ef2359751c8315dd27)
drm/amdgpu: add upper bound check on user inputs in wait ioctl
drm/amdgpu/ras: Move ras data alloc before bad page check