aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
diff options
context:
space:
mode:
authorAl Viro <[email protected]>2017-09-29 17:43:15 +0000
committerAl Viro <[email protected]>2017-09-29 17:43:15 +0000
commit6c85501f2fabcfc4fc6ed976543d252c4eaf4be9 (patch)
tree7ae62970c63295669f955f60b78dbada3e564d30 /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
parentfix a typo in put_compat_shm_info() (diff)
downloadkernel-6c85501f2fabcfc4fc6ed976543d252c4eaf4be9.tar.gz
kernel-6c85501f2fabcfc4fc6ed976543d252c4eaf4be9.zip
fix infoleak in waitid(2)
kernel_waitid() can return a PID, an error or 0. rusage is filled in the first case and waitid(2) rusage should've been copied out exactly in that case, *not* whenever kernel_waitid() has not returned an error. Compat variant shares that braino; none of kernel_wait4() callers do, so the below ought to fix it. Reported-and-tested-by: Alexander Potapenko <[email protected]> Fixes: ce72a16fa705 ("wait4(2)/waitid(2): separate copying rusage to userland") Cc: [email protected] # v4.13 Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c')
0 files changed, 0 insertions, 0 deletions