gma/gma500: fix a memory disclosure bug due to uninitialized bytes
authorKangjie Lu <kjlu@umn.edu>
Fri, 18 Oct 2019 04:29:53 +0000 (23:29 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Oct 2020 18:40:01 +0000 (20:40 +0200)
commit88aed7fb5d6d3e63ef1b618a6824a3e45595d92f
tree12bc20407c31b231d42942c881bcbb1ea4956a20
parente06cea110b18085f607a8eb74078960998edc914
gma/gma500: fix a memory disclosure bug due to uninitialized bytes

[ Upstream commit 57a25a5f754ce27da2cfa6f413cfd366f878db76 ]

`best_clock` is an object that may be sent out. Object `clock`
contains uninitialized bytes that are copied to `best_clock`,
which leads to memory disclosure and information leak.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20191018042953.31099-1-kjlu@umn.edu
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/gma500/cdv_intel_display.c