]> git.baikalelectronics.ru Git - kernel.git/commit
selftests, arm64: add a selftest for passing tagged pointers to kernel
authorAndrey Konovalov <andreyknvl@google.com>
Tue, 23 Jul 2019 17:58:52 +0000 (19:58 +0200)
committerWill Deacon <will@kernel.org>
Tue, 6 Aug 2019 17:08:45 +0000 (18:08 +0100)
commit76b2610370a3750d6c461498fa3bb72b21834998
tree3493eed1ee8d30f3fa859e2a48b72614058ca06a
parent2f4789d55449db1726c4fac6104266072ca6648b
selftests, arm64: add a selftest for passing tagged pointers to kernel

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.

This patch adds a simple test, that calls the uname syscall with a
tagged user pointer as an argument. Without the kernel accepting tagged
user pointers the test fails with EFAULT.

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Will Deacon <will@kernel.org>
tools/testing/selftests/arm64/.gitignore [new file with mode: 0644]
tools/testing/selftests/arm64/Makefile [new file with mode: 0644]
tools/testing/selftests/arm64/run_tags_test.sh [new file with mode: 0755]
tools/testing/selftests/arm64/tags_test.c [new file with mode: 0644]