]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita32a110dabb9fa74c3b1a8771ee57e58cb75b027
treef2bd36258761a2e231f1e1c3a980e2faf8fd205c
parent2e4be4338b46fc59458290b57c951f0f8d82efab
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