aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
diff options
context:
space:
mode:
authorMichal Luczaj <[email protected]>2024-11-19 13:31:41 +0000
committerPaolo Abeni <[email protected]>2024-11-28 07:57:42 +0000
commit1465036b10be4b8b00eb31c879e86de633ad74c1 (patch)
tree1094d8a2f4978549b5d2999fbd7abe780305dcf8 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
parentMerge branch 'bnxt_en-bug-fixes' (diff)
downloadkernel-1465036b10be4b8b00eb31c879e86de633ad74c1.tar.gz
kernel-1465036b10be4b8b00eb31c879e86de633ad74c1.zip
llc: Improve setsockopt() handling of malformed user input
copy_from_sockptr() is used incorrectly: return value is the number of bytes that could not be copied. Since it's deprecated, switch to copy_safe_from_sockptr(). Note: Keeping the `optlen != sizeof(int)` check as copy_safe_from_sockptr() by itself would also accept optlen > sizeof(int). Which would allow a more lenient handling of inputs. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Suggested-by: David Wei <[email protected]> Signed-off-by: Michal Luczaj <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions