aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <[email protected]>2021-07-29 14:35:32 +0000
committerWolfram Sang <[email protected]>2021-08-10 20:54:10 +0000
commit86ff25ed6cd8240d18df58930bd8848b19fce308 (patch)
tree1b2325b3d9f8ce0546492daabb86144b4fdcf9fa /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parenti2c: iproc: fix race between client unreg and tasklet (diff)
downloadkernel-86ff25ed6cd8240d18df58930bd8848b19fce308.tar.gz
kernel-86ff25ed6cd8240d18df58930bd8848b19fce308.zip
i2c: dev: zero out array used for i2c reads from userspace
If an i2c driver happens to not provide the full amount of data that a user asks for, it is possible that some uninitialized data could be sent to userspace. While all in-kernel drivers look to be safe, just be sure by initializing the buffer to zero before it is passed to the i2c driver so that any future drivers will not have this issue. Also properly copy the amount of data recvieved to the userspace buffer, as pointed out by Dan Carpenter. Reported-by: Eric Dumazet <[email protected]> Cc: [email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions