Re: [REGRESSION] x86/debug: After PTRACE_SINGLESTEP DR_STEP is no longer reported in dr6

From: Peter Zijlstra
Date: Tue Oct 27 2020 - 14:01:46 EST


On Tue, Oct 27, 2020 at 10:08:14AM +0100, Peter Zijlstra wrote:
> On Mon, Oct 26, 2020 at 04:30:32PM -0700, Andy Lutomirski wrote:
> > Is there any compelling reason not to just drop the condition and do:
> >
> > current->thread.virtual_dr6 |= (dr6 & DR_STEP);
> >
> > unconditionally?
>
> Because why should it?

Because WINE does indeed rely on that. I'll go post a new version.