OSDN Git Service

msm: mdss: fix possible out-of-bounds and overflow issue in mdp debugfs
authorVeera Sundaram Sankaran <veeras@codeaurora.org>
Wed, 16 Mar 2016 01:42:27 +0000 (18:42 -0700)
committerKyle Yan <kyan@codeaurora.org>
Wed, 25 May 2016 21:22:26 +0000 (14:22 -0700)
commit2870836ed80515950f953d922be9d45914a245ef
tree71b6efe568db645af8a952c9d5009334e31b5d3d
parentb97da4469bcf76f330d5b2b691ade01c4bda110a
msm: mdss: fix possible out-of-bounds and overflow issue in mdp debugfs

There are few cases where the count argument passed by the user
space is not validated, which can potentially lead to out of bounds
or overflow issues. In some cases, kernel might copy more data than
what is requested. Add necessary checks to avoid such cases.

Change-Id: Ifa42fbd475665a0ca581c907ce5432584ea0e7ed
[veeras@codeaurora.org: Resolve conflicts in mdss_debug.c]
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
drivers/video/fbdev/msm/mdss_debug.c