Files
linux/drivers/video/fbdev
Vlad Tsyrklevich 9171634695 omap2fb: Fix stack memory disclosure
commit a01421e448 upstream.

Using [1] for static analysis I found that the OMAPFB_QUERY_PLANE,
OMAPFB_GET_COLOR_KEY, OMAPFB_GET_DISPLAY_INFO, and OMAPFB_GET_VRAM_INFO
cases could all leak uninitialized stack memory--either due to
uninitialized padding or 'reserved' fields.

Fix them by clearing the shared union used to store copied out data.

[1] https://github.com/vlad902/kernel-uninitialized-memory-checker

Signed-off-by: Vlad Tsyrklevich <vlad@tsyrklevich.net>
Reviewed-by: Kees Cook <keescook@chromium.org>
Fixes: b39a982dde ("OMAP: DSS2: omapfb driver")
Cc: security@kernel.org
[b.zolnierkie: prefix patch subject with "omap2fb: "]
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-01-23 08:09:49 +01:00
..
2018-02-25 11:07:51 +01:00
2017-09-04 16:00:49 +02:00
2016-02-26 13:28:35 +02:00
2016-02-26 13:28:35 +02:00
2017-09-04 16:00:49 +02:00
2017-05-27 15:41:17 -04:00
2018-11-04 14:52:39 +01:00
2017-12-20 10:10:23 +01:00