]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/msm: Fix potential buffer overflow issue
authorKasin Li <donglil@codeaurora.org>
Mon, 19 Jun 2017 21:36:53 +0000 (15:36 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Nov 2017 09:03:49 +0000 (10:03 +0100)
commitf449835963f47a3755d2f893a49928cf8d7ca58e
tree441d4c681ecf66804b474f6a7fde22b5e76099d3
parent163e8355bbe9af2bb3ce7c4cc7a11ed6124b76bf
drm/msm: Fix potential buffer overflow issue

commit 4a630fadbb29d9efaedb525f1a8f7449ad107641 upstream.

In function submit_create, if nr_cmds or nr_bos is assigned with
negative value, the allocated buffer may be small than intended.
Using this buffer will lead to buffer overflow issue.

Signed-off-by: Kasin Li <donglil@codeaurora.org>
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
Cc: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/msm/msm_gem_submit.c