Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1552353

[PATCH] selftests: x86 protection_keys remove dead code

From Shuah Khan <shuahkh@osg.samsung.com>
Newsgroups linux.kernel
Subject [PATCH] selftests: x86 protection_keys remove dead code
Date 2017-01-05 22:50 +0100
Message-ID <sWo53-eL-21@gated-at.bofh.it> (permalink)
References <sWo53-eL-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Remove commented out calls to pkey_get().

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
---
 tools/testing/selftests/x86/protection_keys.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/tools/testing/selftests/x86/protection_keys.c b/tools/testing/selftests/x86/protection_keys.c
index 70402cd..46f53ec 100644
--- a/tools/testing/selftests/x86/protection_keys.c
+++ b/tools/testing/selftests/x86/protection_keys.c
@@ -1114,11 +1114,6 @@ void test_pkey_syscalls_on_non_allocated_pkey(int *ptr, u16 pkey)
 		err = sys_pkey_free(i);
 		pkey_assert(err);
 
-		/* not enforced when pkey_get() is not a syscall
-		err = pkey_get(i, 0);
-		pkey_assert(err < 0);
-		*/
-
 		err = sys_pkey_free(i);
 		pkey_assert(err);
 
@@ -1133,11 +1128,6 @@ void test_pkey_syscalls_bad_args(int *ptr, u16 pkey)
 	int err;
 	int bad_pkey = NR_PKEYS+99;
 
-	/* not enforced when pkey_get() is not a syscall
-	err = pkey_get(bad_pkey, bad_flag);
-	pkey_assert(err < 0);
-	*/
-
 	/* pass a known-invalid pkey in: */
 	err = sys_mprotect_pkey(ptr, PAGE_SIZE, PROT_READ, bad_pkey);
 	pkey_assert(err);
-- 
2.7.4

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] selftests: gpio add .gitignore for generated files Shuah Khan <shuahkh@osg.samsung.com> - 2017-01-05 22:50 +0100
  [PATCH] selftests: x86 protection_keys fix unused variable compile warnings Shuah Khan <shuahkh@osg.samsung.com> - 2017-01-05 22:50 +0100
  [PATCH] tools: gpio add .gitignore for generated files Shuah Khan <shuahkh@osg.samsung.com> - 2017-01-05 22:50 +0100
    Re: [PATCH] tools: gpio add .gitignore for generated files Linus Walleij <linus.walleij@linaro.org> - 2017-01-10 10:30 +0100
      Re: [PATCH] tools: gpio add .gitignore for generated files Shuah Khan <shuahkh@osg.samsung.com> - 2017-01-10 15:20 +0100
        Re: [PATCH] tools: gpio add .gitignore for generated files Linus Walleij <linus.walleij@linaro.org> - 2017-01-11 16:20 +0100
          Re: [PATCH] tools: gpio add .gitignore for generated files Shuah Khan <shuahkh@osg.samsung.com> - 2017-01-11 17:10 +0100
  [PATCH] selftests: x86 protection_keys remove dead code Shuah Khan <shuahkh@osg.samsung.com> - 2017-01-05 22:50 +0100
  [PATCH] selftests: ipc add missing generated file to .gitignore Shuah Khan <shuahkh@osg.samsung.com> - 2017-01-05 22:50 +0100

csiph-web