aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorMichal Luczaj <[email protected]>2024-11-19 13:31:42 +0000
committerPaolo Abeni <[email protected]>2024-11-28 07:57:42 +0000
commit02020056647017e70509bb58c3096448117099e1 (patch)
tree23f7ebe3126a6c9988c1f53cfd9cf5aa74ce3f79 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentllc: Improve setsockopt() handling of malformed user input (diff)
downloadkernel-02020056647017e70509bb58c3096448117099e1.tar.gz
kernel-02020056647017e70509bb58c3096448117099e1.zip
rxrpc: Improve setsockopt() handling of malformed user input
copy_from_sockptr() does not return negative value on error; instead, it reports the number of bytes that failed to copy. Since it's deprecated, switch to copy_safe_from_sockptr(). Note: Keeping the `optlen != sizeof(unsigned int)` check as copy_safe_from_sockptr() by itself would also accept optlen > sizeof(unsigned int). Which would allow a more lenient handling of inputs. Fixes: 17926a79320a ("[AF_RXRPC]: Provide secure RxRPC sockets for use by userspace and kernel both") Signed-off-by: Michal Luczaj <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions