]> git.baikalelectronics.ru Git - kernel.git/commit
wusbcore: Fix one more crypto-on-the-stack bug
authorAndy Lutomirski <luto@kernel.org>
Wed, 14 Dec 2016 02:50:13 +0000 (18:50 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Jan 2017 16:03:42 +0000 (17:03 +0100)
commit35dd3adfd1a125398213923916c05310d33f2cde
tree024e93423a712ae7cb4231f8b421060ca87fb95a
parent56bfd77d2de4945a1b3920bf962cd2407ff74379
wusbcore: Fix one more crypto-on-the-stack bug

The driver put a constant buffer of all zeros on the stack and
pointed a scatterlist entry at it.  This doesn't work with virtual
stacks.  Use ZERO_PAGE instead.

Cc: stable@vger.kernel.org # 4.9 only
Reported-by: Eric Biggers <ebiggers3@gmail.com>
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/wusbcore/crypto.c