]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit620f1a632ebcc9811c2f8009ba52297c7006f805
tree024e93423a712ae7cb4231f8b421060ca87fb95a
parenta121103c922847ba5010819a3f250f1f7fc84ab8
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