]> git.baikalelectronics.ru Git - kernel.git/commit
x86/hw_breakpoint: Add within_area() to check data breakpoints
authorLai Jiangshan <laijs@linux.alibaba.com>
Fri, 29 May 2020 21:27:29 +0000 (23:27 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 11 Jun 2020 13:15:20 +0000 (15:15 +0200)
commit5d27c5d0255ce6c7bfe25efd07456d6e269f7831
tree1d0fa0ab07ae9095223732d9b4ac7698336f7d5e
parent186b13c9f973c15d4cc572c190f3f303b6c2a6f6
x86/hw_breakpoint: Add within_area() to check data breakpoints

Add a within_area() helper to checking whether the data breakpoints overlap
with cpu_entry_area.

It will be used to completely prevent data breakpoints on GDT, IDT, or TSS.

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-2-laijs@linux.alibaba.com
Link: https://lkml.kernel.org/r/20200529213320.784524504@infradead.org
arch/x86/kernel/hw_breakpoint.c