Re: [PATCH v3 RESEND] x86/asm/entry/32, selftests: Add test_syscall_vdso test

2015-07-07 Thread Denys Vlasenko
On 07/06/2015 02:46 PM, Ingo Molnar wrote: > > * Ingo Molnar wrote: > >>> tools/testing/selftests/x86/test_syscall_vdso.c | 401 >>> >>> tools/testing/selftests/x86/thunks_32.S | 55 >>> 2 files changed, 456 insertions(+) >>> create mode 100644 tools/tes

Re: [PATCH v3 RESEND] x86/asm/entry/32, selftests: Add test_syscall_vdso test

2015-07-06 Thread Ingo Molnar
* Ingo Molnar wrote: > > tools/testing/selftests/x86/test_syscall_vdso.c | 401 > > > > tools/testing/selftests/x86/thunks_32.S | 55 > > 2 files changed, 456 insertions(+) > > create mode 100644 tools/testing/selftests/x86/test_syscall_vdso.c > > creat

Re: [PATCH v3 RESEND] x86/asm/entry/32, selftests: Add test_syscall_vdso test

2015-07-06 Thread Ingo Molnar
* Denys Vlasenko wrote: > The test checks that all registers are preserved across > 32-bit syscalls. It tests syscalls through VDSO > (if available) and through INT 0x80, normally > and under ptrace. > > If kernel is a 64-bit one, high registers (r8..r15) are poisoned > before call and checked

[PATCH v3 RESEND] x86/asm/entry/32, selftests: Add test_syscall_vdso test

2015-07-03 Thread Denys Vlasenko
The test checks that all registers are preserved across 32-bit syscalls. It tests syscalls through VDSO (if available) and through INT 0x80, normally and under ptrace. If kernel is a 64-bit one, high registers (r8..r15) are poisoned before call and checked afterwards. They must be either preserved