x86/idt: Fix the X86_TRAP_BP gate
authorIngo Molnar <[email protected]>
Fri, 1 Sep 2017 09:04:56 +0000 (11:04 +0200)
committerThomas Gleixner <[email protected]>
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 <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: Cyrill Gorcunov <[email protected]>
Cc: [email protected]
Cc: tip-bot for Jacob Shin <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
arch/x86/kernel/idt.c