x86/ldt: Correct LDT access in single stepping logic
authorJuergen Gross <jgross@suse.com>
Thu, 6 Aug 2015 08:04:38 +0000 (10:04 +0200)
committerIngo Molnar <mingo@kernel.org>
Sat, 8 Aug 2015 08:20:45 +0000 (10:20 +0200)
commit136d9d83c07c5e30ac49fc83b27e8c4842f108fc
tree3b9647ce64436c09c784a923172a5d65cdc96403
parentdd2384a75d1c046faf068a6352732a204814b86d
x86/ldt: Correct LDT access in single stepping logic

Commit 37868fe113ff ("x86/ldt: Make modify_ldt synchronous")
introduced a new struct ldt_struct anchored at mm->context.ldt.

convert_ip_to_linear() was changed to reflect this, but indexing
into the ldt has to be changed as the pointer is no longer void *.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Andy Lutomirski <luto@kernel.org>
Cc: <stable@vger.kernel.org> # On top of: 37868fe113ff: x86/ldt: Make modify_ldt synchronous
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: bp@suse.de
Link: http://lkml.kernel.org/r/1438848278-12906-1-git-send-email-jgross@suse.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/step.c