summaryrefslogtreecommitdiff
path: root/Documentation/mmc
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2016-10-18 16:54:02 +0200
committerLinus Walleij <linus.walleij@linaro.org>2016-10-21 14:46:28 +0200
commit3eded5d83bf4e36ad78775c7ceb44a45480b0abd (patch)
tree45b0a65137fc1418273424150e99f6e34ebc6d7c /Documentation/mmc
parentb8b0e3d303654b3bb7b31b0266c513fd6f4132ce (diff)
gpio: GPIOHANDLE_GET_LINE_VALUES_IOCTL: Fix information leak
The GPIOHANDLE_GET_LINE_VALUES_IOCTL handler allocates a gpiohandle_data struct on the stack and then passes it to copy_to_user(). But depending on the number of requested line handles the struct is only partially initialized. This exposes the previous, potentially sensitive, stack content to the issuing userspace application. To avoid this make sure that the struct is fully initialized. Cc: stable@vger.kernel.org Fixes: d7c51b47ac11 ("gpio: userspace ABI for reading/writing GPIO lines") Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'Documentation/mmc')
0 files changed, 0 insertions, 0 deletions