]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
selftests/x86: Disable tests requiring 32-bit support on pure 64-bit systems
authorDominik Brodowski <linux@dominikbrodowski.net>
Tue, 13 Feb 2018 08:15:19 +0000 (09:15 +0100)
committerSeth Forshee <seth.forshee@canonical.com>
Fri, 23 Feb 2018 14:27:03 +0000 (08:27 -0600)
commit5a7f2198cb7c373cf67648baee6e11f5e6b90422
treea9a42508932d312f0c30eac7ed67fafb55407ea4
parent74b173a41b2d7a16e759358e8e5349c307e00e41
selftests/x86: Disable tests requiring 32-bit support on pure 64-bit systems

BugLink: http://bugs.launchpad.net/bugs/1751131
commit 9279ddf23ce78ff2676e8e8e19fec0f022c26d04 upstream.

The ldt_gdt and ptrace_syscall selftests, even in their 64-bit variant, use
hard-coded 32-bit syscall numbers and call "int $0x80".

This will fail on 64-bit systems with CONFIG_IA32_EMULATION=y disabled.

Therefore, do not build these tests if we cannot build 32-bit binaries
(which should be a good approximation for CONFIG_IA32_EMULATION=y being enabled).

Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Dmitry Safonov <dsafonov@virtuozzo.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kselftest@vger.kernel.org
Cc: shuah@kernel.org
Link: http://lkml.kernel.org/r/20180211111013.16888-6-linux@dominikbrodowski.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
tools/testing/selftests/x86/Makefile