Commit 979c2c42 authored by Andy Lutomirski's avatar Andy Lutomirski Committed by Thomas Gleixner

selftests/x86/fsgsbase: Fix a comment in the ptrace_write_gsbase test

A comment was unclear.  Fix it.

Fixes: 5e7ec857 ("selftests/x86/fsgsbase: Test ptracer-induced GS base write with FSGSBASE")
Signed-off-by: default avatarAndy Lutomirski <luto@kernel.org>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/901034a91a40169ec84f1f699ea86704dff762e4.1593192140.git.luto@kernel.org
parent a5d25e01
...@@ -498,7 +498,8 @@ static void test_ptrace_write_gsbase(void) ...@@ -498,7 +498,8 @@ static void test_ptrace_write_gsbase(void)
* base would zero the selector. On newer kernels, * base would zero the selector. On newer kernels,
* this behavior has changed -- poking the base * this behavior has changed -- poking the base
* changes only the base and, if FSGSBASE is not * 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) if (gs == 0)
printf("\tNote: this is expected behavior on older kernels.\n"); printf("\tNote: this is expected behavior on older kernels.\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment