diff options
author | Andy Lutomirski <luto@kernel.org> | 2020-06-26 19:24:27 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2020-07-01 15:27:20 +0200 |
commit | 979c2c4247cafd8a91628a7306b6871efbd12fdb (patch) | |
tree | 305b85075219ea526e6eb80cbe0c2537ad0f42b3 /tools/testing/selftests/x86 | |
parent | selftests/x86: Add a syscall_arg_fault_64 test for negative GSBASE (diff) | |
download | linux-979c2c4247cafd8a91628a7306b6871efbd12fdb.tar.xz linux-979c2c4247cafd8a91628a7306b6871efbd12fdb.zip |
selftests/x86/fsgsbase: Fix a comment in the ptrace_write_gsbase test
A comment was unclear. Fix it.
Fixes: 5e7ec8578fa3 ("selftests/x86/fsgsbase: Test ptracer-induced GS base write with FSGSBASE")
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/901034a91a40169ec84f1f699ea86704dff762e4.1593192140.git.luto@kernel.org
Diffstat (limited to 'tools/testing/selftests/x86')
-rw-r--r-- | tools/testing/selftests/x86/fsgsbase.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testing/selftests/x86/fsgsbase.c b/tools/testing/selftests/x86/fsgsbase.c index 9a4349813a30..f47495d2f070 100644 --- a/tools/testing/selftests/x86/fsgsbase.c +++ b/tools/testing/selftests/x86/fsgsbase.c @@ -498,7 +498,8 @@ static void test_ptrace_write_gsbase(void) * base would zero the selector. On newer kernels, * this behavior has changed -- poking the base * changes only the base and, if FSGSBASE is not - * available, this may not effect. + * available, this may have no effect once the tracee + * is resumed. */ if (gs == 0) printf("\tNote: this is expected behavior on older kernels.\n"); |