diff options
author | Andy Lutomirski <luto@kernel.org> | 2019-11-20 22:58:32 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-29 12:09:59 +0300 |
commit | 92f8c688b2ce3600dab434eb0c97d458db00f742 (patch) | |
tree | 92e10bf4bd3799471a6ddf719adfaa4a3fc642ee /arch/x86/include/asm/vga.h | |
parent | 72e521b167ffba300d3381699718f8757e5559e7 (diff) | |
download | linux-92f8c688b2ce3600dab434eb0c97d458db00f742.tar.xz |
selftests/x86/sigreturn/32: Invalidate DS and ES when abusing the kernel
commit 4d2fa82d98d2d296043a04eb517d7dbade5b13b8 upstream.
If the kernel accidentally uses DS or ES while the user values are
loaded, it will work fine for sane userspace. In the interest of
simulating maximally insane userspace, make sigreturn_32 zero out DS
and ES for the nasty parts so that inadvertent use of these segments
will crash.
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: stable@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/x86/include/asm/vga.h')
0 files changed, 0 insertions, 0 deletions