Skip to content

Commit 979c2c4

Browse files
amlutoKAGA-KOKO
authored andcommitted
selftests/x86/fsgsbase: Fix a comment in the ptrace_write_gsbase test
A comment was unclear. Fix it. Fixes: 5e7ec85 ("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
1 parent a5d25e0 commit 979c2c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/testing/selftests/x86/fsgsbase.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,8 @@ static void test_ptrace_write_gsbase(void)
498498
* base would zero the selector. On newer kernels,
499499
* this behavior has changed -- poking the base
500500
* changes only the base and, if FSGSBASE is not
501-
* available, this may not effect.
501+
* available, this may have no effect once the tracee
502+
* is resumed.
502503
*/
503504
if (gs == 0)
504505
printf("\tNote: this is expected behavior on older kernels.\n");

0 commit comments

Comments
 (0)