UPSTREAM: USB: usbfs: fix potential infoleak in devio
authorKangjie Lu <kangjielu@gmail.com>
Tue, 3 May 2016 20:32:16 +0000 (16:32 -0400)
committerMark Salyzyn <salyzyn@google.com>
Fri, 24 Jun 2016 21:19:51 +0000 (21:19 +0000)
commit659740adf180779d0177a086656880bc7a43cfd1
tree38f743c3d06acc853318d076ede75cdfb3f79bc4
parent3d1e8cf7ef81f13d4da5218174d12a40e8bf1116
UPSTREAM: USB: usbfs: fix potential infoleak in devio

(cherry pick from commit 681fef8380eb818c0b845fca5d2ab1dcbab114ee)

The stack object “ci” has a total size of 8 bytes. Its last 3 bytes
are padding bytes which are not initialized and leaked to userland
via “copy_to_user”.

Signed-off-by: Kangjie Lu <kjlu@gatech.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Bug: 28619695
Change-Id: I170754d659d0891c075f85211b5e3970b114f097
drivers/usb/core/devio.c