diff options
author | Vlad Tsyrklevich <[email protected]> | 2019-01-11 14:34:38 +0100 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <[email protected]> | 2019-01-11 14:34:38 +0100 |
commit | a01421e4484327fe44f8e126793ed5a48a221e24 (patch) | |
tree | 9775a2ba7656377541b5ce2ff581948164c08080 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 399382f8018204407174f0229b4087d40e1cdc82 (diff) |
omap2fb: Fix stack memory disclosure
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 <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Fixes: b39a982ddecf ("OMAP: DSS2: omapfb driver")
Cc: [email protected]
[b.zolnierkie: prefix patch subject with "omap2fb: "]
Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions