fs-verity: use memcpy_from_page()
authorEric Biggers <ebiggers@google.com>
Thu, 18 Aug 2022 22:39:03 +0000 (15:39 -0700)
committerEric Biggers <ebiggers@google.com>
Fri, 19 Aug 2022 22:19:55 +0000 (15:19 -0700)
commitc987918a3fdf2d361c48839ec324f2547418f9d6
treefb212796d32c906a52fe8e11223b4fcc95cda6c7
parent568035b01cfb107af8d2e4bd2fb9aea22cf5b868
fs-verity: use memcpy_from_page()

Replace extract_hash() with the memcpy_from_page() helper function.

This is simpler, and it has the side effect of replacing the use of
kmap_atomic() with its recommended replacement kmap_local_page().

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
Link: https://lore.kernel.org/r/20220818223903.43710-1-ebiggers@kernel.org
fs/verity/verify.c