lkml.org 
[lkml]   [2018]   [Jun]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v3 0/7] x86/ptrace: regset access to the GDT and LDT
Date
From: "H. Peter Anvin" <hpa@linux.intel.com>

Give a debugger access to the visible part of the GDT and LDT. This
allows a debugger to find out what a particular segment descriptor
corresponds to; e.g. if %cs is 16, 32, or 64 bits.

v3:
Requalify LDT segments for selectors that have actually changed.

v2:
Add missing change to elf.h for the very last patch.

Cc: Ingo Molnar <mingo@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Chang S. Bae <chang.seok.bae@intel.com>
Cc: Markus T. Metzger <markus.t.metzger@intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>

arch/x86/Kconfig | 4 +
arch/x86/include/asm/desc.h | 24 +++-
arch/x86/include/asm/ldt.h | 16 +++
arch/x86/include/asm/segment.h | 10 ++
arch/x86/kernel/Makefile | 3 +-
arch/x86/kernel/ldt.c | 283 ++++++++++++++++++++++++++++++++---------
arch/x86/kernel/ptrace.c | 103 ++++++++++++++-
arch/x86/kernel/tls.c | 102 +++++----------
arch/x86/kernel/tls.h | 8 +-
include/uapi/linux/elf.h | 2 +
10 files changed, 413 insertions(+), 142 deletions(-)

\
 
 \ /
  Last update: 2018-06-21 23:18    [W:0.102 / U:0.272 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site