aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
diff options
context:
space:
mode:
authorMathias Krause <[email protected]>2016-06-22 18:29:37 +0000
committerHerbert Xu <[email protected]>2016-06-23 09:39:25 +0000
commit055ddaace03580455a7b7dbea8e93d62acee61fc (patch)
treecbeb3d328b71c83c4d84dec131abec09d2ccff7f /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
parentcrypto: ux500 - memmove the right size (diff)
downloadkernel-055ddaace03580455a7b7dbea8e93d62acee61fc.tar.gz
kernel-055ddaace03580455a7b7dbea8e93d62acee61fc.zip
crypto: user - re-add size check for CRYPTO_MSG_GETALG
Commit 9aa867e46565 ("crypto: user - Add CRYPTO_MSG_DELRNG") accidentally removed the minimum size check for CRYPTO_MSG_GETALG netlink messages. This allows userland to send a truncated CRYPTO_MSG_GETALG message as short as a netlink header only making crypto_report() operate on uninitialized memory by accessing data beyond the end of the netlink message. Fix this be re-adding the minimum required size of CRYPTO_MSG_GETALG messages to the crypto_msg_min[] array. Fixes: 9aa867e46565 ("crypto: user - Add CRYPTO_MSG_DELRNG") Cc: [email protected] # v4.2 Signed-off-by: Mathias Krause <[email protected]> Cc: Steffen Klassert <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c')
0 files changed, 0 insertions, 0 deletions