From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1BF0EC4363A for ; Tue, 27 Oct 2020 18:01:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A058F21556 for ; Tue, 27 Oct 2020 18:01:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="c4cIxbJ+" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1824009AbgJ0SBa (ORCPT ); Tue, 27 Oct 2020 14:01:30 -0400 Received: from casper.infradead.org ([90.155.50.34]:51328 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1823030AbgJ0R4y (ORCPT ); Tue, 27 Oct 2020 13:56:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=rg7/gpNmKK62yXfkKELwWx0yiY9D6FQTWownZbaYrwI=; b=c4cIxbJ+uMFacWDGjtQgMaRqO6 pNcHavDUctf476szRqlGDyxeA3K2sWnO9k2IkEGWz9NB8ZkoheSvLA+xwt03bGKPd3bXoMdVhM7DL nV98LT6zWXA9QGGRGK4aCL9FVBTZYDuZjrevUCGJBM5kTiz1irKDqSp803VaJ9uy/pp83C4dAGKNi 8t4h7T62cNS5723YNcHlKryQZJmV4Esv2bQRc+aAGpM5rlGh7TBS95vZwepUAe9K5JsGMt4to6aHk JkH+i/romqnEQPtGKK72rB+C/YSkpQWbukqfrzcaJkJqihaX7B6i/mk6YbuwOThvskSt/DPF3RWx3 4ntqM0IQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kXTCl-0007c5-Mo; Tue, 27 Oct 2020 17:56:20 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 1CF1C307B7F; Tue, 27 Oct 2020 18:56:17 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 094B1203CF3A8; Tue, 27 Oct 2020 18:56:17 +0100 (CET) Date: Tue, 27 Oct 2020 18:56:17 +0100 From: Peter Zijlstra To: Andy Lutomirski Cc: Kyle Huey , open list , Thomas Gleixner , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , Linus Torvalds , Robert O'Callahan , Alexandre Chartre , "Paul E. McKenney" , Frederic Weisbecker , Paolo Bonzini , Sean Christopherson , Masami Hiramatsu , Petr Mladek , Joel Fernandes , Steven Rostedt , Boris Ostrovsky , Juergen Gross , Brian Gerst , Josh Poimboeuf , Daniel Thompson Subject: Re: [REGRESSION] x86/debug: After PTRACE_SINGLESTEP DR_STEP is no longer reported in dr6 Message-ID: <20201027175617.GF2651@hirez.programming.kicks-ass.net> References: <20201026155521.GQ2594@hirez.programming.kicks-ass.net> <20201026160513.GC2651@hirez.programming.kicks-ass.net> <20201026163100.GR2594@hirez.programming.kicks-ass.net> <20201026165519.GD2651@hirez.programming.kicks-ass.net> <20201027090814.GJ2628@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201027090814.GJ2628@hirez.programming.kicks-ass.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.