]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
crypto: hash - Fix page length clamping in hash walk
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 4 May 2016 09:52:56 +0000 (17:52 +0800)
committerKamal Mostafa <kamal@canonical.com>
Fri, 10 Jun 2016 13:32:25 +0000 (06:32 -0700)
commit9b1f63efed81a11b260b1d95a44faf902d022793
tree1deb9587aeb59cf501c4c52fc98aed1c5927d79f
parent89535afab4d3d05b9dc884ba80251c423d25b6aa
crypto: hash - Fix page length clamping in hash walk

BugLink: http://bugs.launchpad.net/bugs/1584912
commit 13f4bb78cf6a312bbdec367ba3da044b09bf0e29 upstream.

The crypto hash walk code is broken when supplied with an offset
greater than or equal to PAGE_SIZE.  This patch fixes it by adjusting
walk->pg and walk->offset when this happens.

Reported-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
crypto/ahash.c