Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1405419pxa; Thu, 20 Aug 2020 10:24:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxurMcvXn4+YO7RJmvKxG9XcB0DLcg8kA0owt5fYZH2RVmh6CUEkOL4Pj1VqGJG71spqVZY X-Received: by 2002:a17:906:aad2:: with SMTP id kt18mr4473160ejb.537.1597944251656; Thu, 20 Aug 2020 10:24:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597944251; cv=none; d=google.com; s=arc-20160816; b=ozsnN3l63Tp202rRAgm+rHpuBbiofCfug4TKS8I38Yl2UvtFUOkFo/8iuH/6dCnERn oiz0nsqbNEGdgeCXA3G5cuoSv2U10WZvJtoKDgKsFO3yaOGcPRBMMt1tk5wabIqcoMP8 o2iXz70yXbFAOTmdYovdPVyvGzXu4M4pWj3utw6fueQaS3nmbTyAnNNvx00ghmq0teMX WB/pjefFxHB0R+29CqA0+m67jDHZD5XS8b1pho/dveVROw0/TuQYBSJQa6GpyvbG2NXj ATeGs21ThTZrdnKzj8+ePtMY46VYipK2aaFzSWj2IndlJcovtnLYgSj9RP3v74/RH4Y/ bqWQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=rvDNF5Q3wwtznjdzEy9L2Cc3y4PlB8JtkjTiFM9v96o=; b=M5cGc9WWfsT70qK/7aURvaPMopRFJBM74gfXQMZCYHilHd2vuC9F5NdUYbb5cVkoDe ndES1eCW0XDQw60lq3iNCxFVhJ/JRS8QHnnakXuxl7qr8Xyg+ezXeuLJCSWb/JiynrHI lUE5E21J7zptRCxyev6rmDP+1QwgwYPQr/kjCeSC92GaXo9al3uKecfNtRZNi8NioQv4 nfR+rMdHtEdsLt6jTFNYxCMX3+wRfny6bNU7fYFVZYJtDK/kb9NOU+5PYM1c+083mmzB oJ+MyJsyfUWFsqzZhDBJKkvxOCbuBMABEXN7vVMZTOPtBT1K34p3tX2+YeMCmJiHsgd2 PXuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DkpdICMe; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p17si1668165ejw.216.2020.08.20.10.23.48; Thu, 20 Aug 2020 10:24:11 -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=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DkpdICMe; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730564AbgHTRVl (ORCPT + 99 others); Thu, 20 Aug 2020 13:21:41 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:31154 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730544AbgHTRVc (ORCPT ); Thu, 20 Aug 2020 13:21:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1597944089; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rvDNF5Q3wwtznjdzEy9L2Cc3y4PlB8JtkjTiFM9v96o=; b=DkpdICMe113oxxJXIOehcL4LNQRw8VTuKvnZzLwRbEukHCy1ZemG0oJUdSfpWm39cDi9qW 1yd1AXYB31TtFZm9/jW5Kz0mEFevum7+0zoYaPPWbwI58cgH+T6DpCmf6F7T351LJM3aPy MgU63+Cwaj2yBVY/HYSpx/Cp081sUnM= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-172-DJeVJEdTNtK3jEvIg62OwQ-1; Thu, 20 Aug 2020 13:21:25 -0400 X-MC-Unique: DJeVJEdTNtK3jEvIg62OwQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 824E8873155; Thu, 20 Aug 2020 17:21:23 +0000 (UTC) Received: from treble (ovpn-117-70.rdu2.redhat.com [10.10.117.70]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A46305C893; Thu, 20 Aug 2020 17:21:20 +0000 (UTC) Date: Thu, 20 Aug 2020 12:21:18 -0500 From: Josh Poimboeuf To: Andy Lutomirski Cc: peterz@infradead.org, Brian Gerst , the arch/x86 maintainers , Linux Kernel Mailing List , Kyle Huey , Alexandre Chartre , Robert O'Callahan , "Paul E. McKenney" , Frederic Weisbecker , Paolo Bonzini , Sean Christopherson , Masami Hiramatsu , Petr Mladek , Steven Rostedt , Joel Fernandes , Boris Ostrovsky , Juergen Gross , Andy Lutomirski Subject: Re: [RFC][PATCH 4/7] x86/debug: Move historical SYSENTER junk into exc_debug_kernel() Message-ID: <20200820172118.n5injemo3ic63x6j@treble> References: <20200820163453.GE1362448@hirez.programming.kicks-ass.net> <156769F5-0BCC-4FB8-A56D-0E92601F558A@amacapital.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <156769F5-0BCC-4FB8-A56D-0E92601F558A@amacapital.net> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 20, 2020 at 09:43:15AM -0700, Andy Lutomirski wrote: > > > > On Aug 20, 2020, at 9:35 AM, peterz@infradead.org wrote: > > > > On Thu, Aug 20, 2020 at 11:17:29AM -0500, Josh Poimboeuf wrote: > >> On Thu, Aug 20, 2020 at 05:21:11PM +0200, peterz@infradead.org wrote: > > > >>> qemu-gdb stub should eat the event before it lands in the guest > >> > >> Are we sure about that? I triggered the warning just now, stepping > >> through the debug handler. > > > > Not sure at all, that's what seemed reasonable, but since when did that > > stop virt ;-) > > > > Also, can you trigger that same with upstream? Because I suspect this > > ought to tickle the old code too. > > I’ve lost track of how many bugs QEMU and KVM have in this space. > Let’s keep it as a warning, but a bug. But let’s get rid of the > totally bogus TIF_SINGLESTEP manipulation. By "but a bug", I assume you mean "not a bug" :-) -- Josh