crypto: omap-crypto - fix userspace copied buffer access
authorTero Kristo <t-kristo@ti.com>
Wed, 27 May 2020 12:24:25 +0000 (15:24 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 4 Jun 2020 12:03:40 +0000 (22:03 +1000)
commit7e34e0bbc6449458a8de675814ffa22dec003698
treef2bd36258761a2e231f1e1c3a980e2faf8fd205c
parent8dc43636e39a89ec51188b012a789625fa83bbe0
crypto: omap-crypto - fix userspace copied buffer access

In case buffers are copied from userspace, directly accessing the page
will most likely fail because it hasn't been mapped into the kernel
memory space. Fix the issue by forcing a kmap / kunmap within the
cleanup functionality.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-crypto.c