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

The per-CPU user_pcid_flush_mask is used in the low level entry code. A
data breakpoint can cause #DB recursion.

Protect the full cpu_tlbstate structure for simplicity.

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