projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e06cea1
)
gma/gma500: fix a memory disclosure bug due to uninitialized bytes
author
Kangjie Lu
<kjlu@umn.edu>
Fri, 18 Oct 2019 04:29:53 +0000
(23:29 -0500)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 1 Oct 2020 18:40:01 +0000
(20:40 +0200)
[ 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
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/gma500/cdv_intel_display.c
b/drivers/gpu/drm/gma500/cdv_intel_display.c
index 17db4b4749d5aec46df17ff3654d4c9284e8fe8d..2e8479744ca4a21c4c8cfaa6eec7a72ef2b59c57 100644
(file)
--- a/
drivers/gpu/drm/gma500/cdv_intel_display.c
+++ b/
drivers/gpu/drm/gma500/cdv_intel_display.c
@@
-415,6
+415,8
@@
static bool cdv_intel_find_dp_pll(const struct gma_limit_t *limit,
struct gma_crtc *gma_crtc = to_gma_crtc(crtc);
struct gma_clock_t clock;
+ memset(&clock, 0, sizeof(clock));
+
switch (refclk) {
case 27000:
if (target < 200000) {