]> git.baikalelectronics.ru Git - kernel.git/commit
x86/hw_breakpoint: Prevent data breakpoints on direct GDT
authorLai Jiangshan <laijs@linux.alibaba.com>
Fri, 29 May 2020 21:27:30 +0000 (23:27 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 11 Jun 2020 13:15:20 +0000 (15:15 +0200)
commit89a037f9d4627b86716ae09f82afedb04c1a73b2
tree7c6acb233789431d272714c5ad438215ba7a52b0
parent5d27c5d0255ce6c7bfe25efd07456d6e269f7831
x86/hw_breakpoint: Prevent data breakpoints on direct GDT

A data breakpoint on the GDT can be fatal and must be avoided.  The GDT in
the CPU entry area is already protected, but not the direct GDT.

Add the necessary protection.

Signed-off-by: Lai Jiangshan <laijs@linux.alibaba.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20200526014221.2119-3-laijs@linux.alibaba.com
Link: https://lkml.kernel.org/r/20200529213320.840953950@infradead.org
arch/x86/kernel/hw_breakpoint.c