]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
security: tlk_driver: Pin user space page(s).
authorSharif Inamdar <isharif@nvidia.com>
Tue, 3 Jun 2014 11:09:58 +0000 (16:39 +0530)
committerKevin Kranzusch <kevink@nvidia.com>
Wed, 3 Sep 2014 01:16:50 +0000 (18:16 -0700)
commit40981010cc89ff6c514237e414ea9d91f44e72dc
tree88cb79b628e37e3a74a43f3ffbc46aa63794f3ba
parentb8d60fa792bf3bcef8a5509084996c4ab5d3c246
security: tlk_driver: Pin user space page(s).

Pin user space pages based on the type of memory i.e.
read or write.

TE_PARAM_TYPE_MEM_RO or TE_PARAM_TYPE_MEM_RW param
indicates whether the TLK kernel will setup a RO/RW
mapping for the TA to this buffer.

Based on the type of memory we should pin the pages
using get_user_pages() as RO/RW.

Bug 1519770

Change-Id: Ib937433b64602f10cd1114f19845e9f6b4f8bf06
Signed-off-by: Sharif Inamdar <isharif@nvidia.com>
Reviewed-on: http://git-master/r/418897
(cherry picked from commit a37d707aff592dc868ae554b026191bd9f4951a5)
Reviewed-on: http://git-master/r/488997
Reviewed-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Tested-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-by: Kevin Kranzusch <kevink@nvidia.com>
security/tlk_driver/ote_comms.c