selftests: x86: add version check in test_syscall_vdso

Since 4.17 registers r8-r11 are not clobbered/zeroed by a 64-bit kernel
handling a 32-bit syscall, and this behavior is enforced by the
test_syscall_vdso testcase (commit 8bb2610bc496, 'x86/entry/64/compat:
Preserve r8-r11 in int $0x80').

Permit the old behavior in the testcase for kernels prior to 4.17.

Bug: 79702574
Test: run vts-kernel -m VtsKernelLinuxKselftest
Change-Id: I02aedf272a64655a578774618820a10d2205a1ab
Signed-off-by: Steve Muckle <smuckle@google.com>
1 file changed