diff options
| author | Andy Lutomirski <[email protected]> | 2017-11-04 11:19:49 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2017-11-07 10:13:42 +0000 |
| commit | d60ad744c9741586010d4bea286f09a063a90fbd (patch) | |
| tree | 151677d1e329c26a86024662a12c74387ea3bd2d /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
| parent | selftests/x86/protection_keys: Fix syscall NR redefinition warnings (diff) | |
| download | kernel-d60ad744c9741586010d4bea286f09a063a90fbd.tar.gz kernel-d60ad744c9741586010d4bea286f09a063a90fbd.zip | |
selftests/x86/ldt_gdt: Robustify against set_thread_area() and LAR oddities
Bits 19:16 of LAR's result are undefined, and some upcoming
improvements to the test case seem to trigger this. Mask off those
bits to avoid spurious failures.
commit 5b781c7e317f ("x86/tls: Forcibly set the accessed bit in TLS
segments") adds a valid case in which LAR's output doesn't quite
agree with set_thread_area()'s input. This isn't triggered in the
test as is, but it will be if we start calling set_thread_area()
with the accessed bit clear. Work around this discrepency.
I've added a Fixes tag so that -stable can pick this up if neccesary.
Signed-off-by: Andy Lutomirski <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Fixes: 5b781c7e317f ("x86/tls: Forcibly set the accessed bit in TLS segments")
Link: http://lkml.kernel.org/r/b82f3f89c034b53580970ac865139fd8863f44e2.1509794321.git.luto@kernel.org
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions
