CHROMIUM: verity: don't call page_address on unmapped highmem pages
authorMandeep Singh Baines <msb@chromium.org>
Wed, 13 Apr 2011 21:37:51 +0000 (14:37 -0700)
committerOlof Johansson <olof@lixom.net>
Fri, 1 Jun 2012 06:59:35 +0000 (23:59 -0700)
commit913a9233e1b27ac5223856198732faa68d690a95
treee4c8f1e056c6d5a9c335b48f9d279da0ab875ce7
parent71388a772b33e81cf8751c3b1ee98ff8f43802be
CHROMIUM: verity: don't call page_address on unmapped highmem pages

This fixes a bug that is preventing ARM systems from booting with verity.

We were calling page_address on what could potentially have been an
unmapped highmem page. Fix is to pass the struct page to the crypto code
and let crypto handle the kmap/kunmap.

BUG=chromium-os:14089,chrome-os-partner:3287
TEST=Ran dm-verity.git unit tests. Ran platform_DMVerityCorruption on H/W.
Verified that ARM now boots.

Change-Id: Id2074052aab9eec8fa0aead39aded2b40cd19bad
Signed-off-by: Mandeep Singh Baines <msb@chromium.org>
R=wad@chromium.org,olofj@chromium.org,taysom@chromium.org

Review URL: http://codereview.chromium.org/6835032
drivers/md/dm-bht.c
drivers/md/dm-verity.c
include/linux/dm-bht.h