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>
Thu, 19 Jan 2017 19:18:01 +0000 (20:18 +0100)
commit88d3670a1de4246cd40dfacdc21289b313caf5ed
tree7a137776da737663fdefe6002a0a16957315004d
parent99ff99b830c1d70d0c6ec50c64588d9bd8bd5d05
wusbcore: Fix one more crypto-on-the-stack bug

commit 620f1a632ebcc9811c2f8009ba52297c7006f805 upstream.

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.

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