]> Git Repo - linux.git/commit
tee/shm: untag user pointers in tee_shm_register
authorAndrey Konovalov <[email protected]>
Wed, 25 Sep 2019 23:48:58 +0000 (16:48 -0700)
committerLinus Torvalds <[email protected]>
Thu, 26 Sep 2019 00:51:41 +0000 (17:51 -0700)
commit78063a9dd9637c0450cf6eacc03f42eb1295917f
treef5c00fb926b7bb88bc8639e05e0fca1f4e365524
parente275faf367e3a3b9db06a71924b199f429d3d508
tee/shm: untag user pointers in tee_shm_register

This patch is a part of a series that extends kernel ABI to allow to pass
tagged user pointers (with the top byte set to something else other than
0x00) as syscall arguments.

tee_shm_register()->optee_shm_unregister()->check_mem_type() uses provided
user pointers for vma lookups (via __check_mem_type()), which can only by
done with untagged pointers.

Untag user pointers in this function.

Link: http://lkml.kernel.org/r/4b993f33196b3566ac81285ff8453219e2079b45.1563904656.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Acked-by: Jens Wiklander <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Eric Auger <[email protected]>
Cc: Felix Kuehling <[email protected]>
Cc: Khalid Aziz <[email protected]>
Cc: Mauro Carvalho Chehab <[email protected]>
Cc: Mike Rapoport <[email protected]>
Cc: Vincenzo Frascino <[email protected]>
Cc: Will Deacon <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/tee/tee_shm.c
This page took 0.046155 seconds and 4 git commands to generate.