Revert "x86/ptrace: Prevent ptrace from clearing the FS/GS selector" and fix the...
authorAndy Lutomirski <luto@kernel.org>
Mon, 15 Jul 2019 14:21:44 +0000 (07:21 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 15 Jul 2019 15:12:31 +0000 (17:12 +0200)
commitc7ca0b614513afba57824cae68447f9c32b1ee61
tree59f54e34f9a3b9aee5abad16813894adf20a19b5
parentfec88ab0af9706b2201e5daf377c5031c62d11f7
Revert "x86/ptrace: Prevent ptrace from clearing the FS/GS selector" and fix the test

This reverts commit 48f5e52e916b55fb73754833efbacc7f8081a159.

The ptrace ABI change was a prerequisite to the proposed design for
FSGSBASE.  Since FSGSBASE support has been reverted, and since I'm not
convinced that the ABI was ever adequately tested, revert the ABI change as
well.

This also modifies the test case so that it tests the preexisting behavior.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/fca39c478ea7fb15bc76fe8a36bd180810a067f6.1563200250.git.luto@kernel.org
arch/x86/kernel/ptrace.c
tools/testing/selftests/x86/fsgsbase.c