Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1077037pxa; Thu, 20 Aug 2020 01:39:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPcJ6o0lKMeUVlLOTSFRlDocT+5d/HPHQTQNbbMs2j3MW3ETfzE6Wrm9an0nPgxmNWmP9O X-Received: by 2002:a17:906:bccf:: with SMTP id lw15mr2290861ejb.415.1597912776552; Thu, 20 Aug 2020 01:39:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597912776; cv=none; d=google.com; s=arc-20160816; b=O/W7KXksl6TBHZTGRZS1NENqtOoosyp9oLJwcNni5hjrhM9S7DjcldMQvyfD6j0uuO bsLcAO3Bac6fUJzQGgAlhRblPaxeFZRQPkQaq125VkL6dnfRt/PtF/3cctVkwNw65NtQ yq1w642h/FwCuTI78x2YV9Oyje1tUhWIfePk8CmeNrV995SZcr3OpQAI1iIay+y7dySi vJ4x9Qpk6jUYDpVaXOlfd1pY+bo39GFFEFnI9ozHUDlBv4oO6Ax55vQSt/l0HfTL5VF7 pRnL7phhTuK/spccd/OeVog3vIor2SLeB4SerDedcQ0gWJJUgqSZ5q3xNgr+fqLTJK1g BHIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=HuD6sO9p3LttLGhSMpvSAhHaQh3vLV8YjoVUz+ABkl0=; b=zmCBoEuaCzJhebmsSA2DpSs+dE5zx3tPTlaADShbEe1qEx9UzSlmO10DcSi2q2Y+8Z CL3jnXR9Ep0cBLffTB0LvEEzyqV/vuKo22n7fZxq7TvMd7rMiWa4N3HCNr1FbQ+YpK7v PFGvsjmwgPPpdmRtHdPU+SA1jwO5150rkA6IAOftlt86+kXe0qM94ETbdQL3M0/1iqSJ EKRXhLUTjgkeUm2osU7lrvJbaNWvrefL+qD+rz3CbWufsem1tz7QH8bpAH0cOC3OXqYY /PozuHMK50iPLlxiSjzP/fy4qDBYbNfNzwRuhlELh/T4K5hJYA2YqECdbPMkk4Pg1tfJ O7SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b="Xano3p/m"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e17si775952ejx.78.2020.08.20.01.39.12; Thu, 20 Aug 2020 01:39:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b="Xano3p/m"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726741AbgHTIg1 (ORCPT + 99 others); Thu, 20 Aug 2020 04:36:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726347AbgHTIgT (ORCPT ); Thu, 20 Aug 2020 04:36:19 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB5A6C061383 for ; Thu, 20 Aug 2020 01:36:18 -0700 (PDT) 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=HuD6sO9p3LttLGhSMpvSAhHaQh3vLV8YjoVUz+ABkl0=; b=Xano3p/mP6+ybPndxE+r1ziYFp k+wvIFLFQZNj5HtgvmHa2Vfkl2LBiXX5ZL5hFdKRt+s6Aerhss7xIqnCSJYo0iM8xOB/EfaOSpo8f +mC2OywBCAuHLdTXmDhmxtNVJMVacK5/saEMTPveCoeoZBtb4TtniylAc7gn+eNjsFt11GPqcnGMq LiPWNQVauiyDJDwzE/tKlIkpgT0seOxGhxUwbjwZ2q1rp7RUXQaCz+agz+qWXl8eKpss23urQc4RK AoEbcSq1GvxSvOVusYpnJbNzdIA3/SffrwOnW/GDVJ+AJfRkW9/S5KdNFUymakC9Xf9qQY4I9i6qc Pc4gm/LQ==; 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 1k8g2u-00044K-OP; Thu, 20 Aug 2020 08:35:41 +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 70DAE302526; Thu, 20 Aug 2020 10:35:39 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 3B88B2C1AC133; Thu, 20 Aug 2020 10:35:39 +0200 (CEST) Date: Thu, 20 Aug 2020 10:35:39 +0200 From: peterz@infradead.org To: Josh Poimboeuf Cc: Andy Lutomirski , Kyle Huey , Thomas Gleixner , Alexandre Chartre , Robert O'Callahan , LKML , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , "Paul E. McKenney" , Frederic Weisbecker , Paolo Bonzini , Sean Christopherson , Masami Hiramatsu , Petr Mladek , Steven Rostedt , Joel Fernandes , Boris Ostrovsky , Juergen Gross , Brian Gerst , Mathieu Desnoyers , Will Deacon Subject: Re: [REGRESSION 5.8] x86/entry: DR0 break-on-write not working Message-ID: <20200820083539.GN2674@hirez.programming.kicks-ass.net> References: <20200819184149.GH2674@hirez.programming.kicks-ass.net> <20200819213534.GQ3982@worktop.programming.kicks-ass.net> <20200819224731.3edo5lqw6lbuprdx@treble> <20200820034636.tl4nq5aiitpfvx62@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200820034636.tl4nq5aiitpfvx62@treble> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 19, 2020 at 10:46:36PM -0500, Josh Poimboeuf wrote: > On Wed, Aug 19, 2020 at 05:14:18PM -0700, Andy Lutomirski wrote: > > I'm pretty sure you have the buggy sequence of events right, but for > > the wrong reason. There's nothing wrong with scheduling when > > delivering SIGTRAP, but it's definitely wrong to blindly save and > > restore DR7 around scheduling and around ptrace invocations. Remember > > this is an entry from user mode, so it runs on the user stack. *groan*, yeah that's broken :/ > Wow, I had no idea user #DB's run on the task stack. The scheduling > from #DB blew my mind :-) What's the purpose of that? At the very least that vm86 junk needs to I think. Also -RT needs it to send signals.