]> git.ipfire.org Git - people/arne_f/kernel.git/commit
x86/idt: Fix the X86_TRAP_BP gate
authorIngo Molnar <mingo@kernel.org>
Fri, 1 Sep 2017 09:04:56 +0000 (11:04 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 1 Sep 2017 09:04:56 +0000 (11:04 +0200)
commitc6ef89421e236d75693ae968d80d44a52409889d
tree121cf5e22a03352ee9294ef02172ee5da72228c8
parent5878d5d6fdef6447d73b0acc121ba445bef37f53
x86/idt: Fix the X86_TRAP_BP gate

Andrei Vagin reported a CRIU regression and bisected it back to:

  90f6225fba0c ("x86/idt: Move IST stack based traps to table init")

This table init conversion loses the system-gate property of X86_TRAP_BP
and erroneously moves it from DPL3 to DPL0.

Fix it.

Reported-by: Andrei Vagin <avagin@virtuozzo.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: dvlasenk@redhat.com
Cc: linux-tip-commits@vger.kernel.org
Cc: peterz@infradead.org
Cc: brgerst@gmail.com
Cc: rostedt@goodmis.org
Cc: bp@alien8.de
Cc: luto@kernel.org
Cc: jpoimboe@redhat.com
Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: torvalds@linux-foundation.org
Cc: tip-bot for Jacob Shin <tipbot@zytor.com>
Link: http://lkml.kernel.org/r/20170901082630.xvyi5bwk6etmppqc@gmail.com
arch/x86/kernel/idt.c