diff options
author | Andy Lutomirski <luto@kernel.org> | 2015-03-23 16:04:44 -0700 |
---|---|---|
committer | Andy Lutomirski <luto@kernel.org> | 2015-03-23 16:09:45 -0700 |
commit | f00f9e0df47ddde1c86b81aad444febab4c254af (patch) | |
tree | 1ccb05100e5b7cefba4d24be818f136c28ac7eea | |
parent | 304f26cb6ced52d009b65c98204543c1612c720b (diff) | |
download | misc-tests-f00f9e0df47ddde1c86b81aad444febab4c254af.tar.gz |
sigreturn: Improve comment about #SS
Signed-off-by: Andy Lutomirski <luto@kernel.org>
-rw-r--r-- | sigreturn.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sigreturn.c b/sigreturn.c index 1286be4..a205494 100644 --- a/sigreturn.c +++ b/sigreturn.c @@ -515,7 +515,11 @@ int main() /* IRET will fail with #NP */ test_bad_iret(32, my_ss, npcode32_sel); - /* IRET will fail with #SS on the espfix stack */ + /* + * IRET will fail with #SS on the espfix stack + * Note that, if espfix is enabled, Linux will lose track of + * the actual cause of failure and report #GP(0) instead. + */ test_bad_iret(32, npdata32_sel, -1); /* IRET will fail with #SS on the normal stack */ |