]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4b18f9fdd057818f41daf492615d08ea4d506aaa
tree59f54e34f9a3b9aee5abad16813894adf20a19b5
parentf74391bdb675d539baf6dab439ba7c435c288488
Revert "x86/ptrace: Prevent ptrace from clearing the FS/GS selector" and fix the test

This reverts commit 599055da67f315948841593098a00c5937402293.

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