Re: [PATCH 02/14] x86/hw_breakpoint: Prevent data breakpoints on direct GDT

2020-05-30 Thread Lai Jiangshan
On Sat, May 30, 2020 at 8:48 PM Andrew Cooper wrote: > > On 29/05/2020 22:27, Peter Zijlstra wrote: > > From: Lai Jiangshan > > > > A data breakpoint on the GDT is terrifying and should be avoided. > > The GDT on CPU entry area is already protected. The direct GDT > > should be also protected, al

Re: [PATCH 02/14] x86/hw_breakpoint: Prevent data breakpoints on direct GDT

2020-05-30 Thread Andrew Cooper
On 29/05/2020 22:27, Peter Zijlstra wrote: > From: Lai Jiangshan > > A data breakpoint on the GDT is terrifying and should be avoided. > The GDT on CPU entry area is already protected. The direct GDT > should be also protected, although it is seldom used and only > used for short time. While I ag

[PATCH 02/14] x86/hw_breakpoint: Prevent data breakpoints on direct GDT

2020-05-29 Thread Peter Zijlstra
From: Lai Jiangshan A data breakpoint on the GDT is terrifying and should be avoided. The GDT on CPU entry area is already protected. The direct GDT should be also protected, although it is seldom used and only used for short time. Signed-off-by: Lai Jiangshan Signed-off-by: Peter Zijlstra (Int