Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1946796pxb; Fri, 29 Jan 2021 09:04:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwuAIHk78OSOFOr2AWN1Yu1Hfj3ekJqJD3wsq0hYU/8bPXctqluk5u+oMtXLV8bXlcY6Qsl X-Received: by 2002:a2e:9051:: with SMTP id n17mr3029704ljg.172.1611939848032; Fri, 29 Jan 2021 09:04:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611939848; cv=none; d=google.com; s=arc-20160816; b=ZqzOd/arkOR6w6Y8LANTCtzdT50oZTFVQ1Bd1Jeh7BPxLX750mG1rGZRfxzGp8qrwG +NPd6toHR4Tmu/dLVG4J0MIDLWYeZY+GxQ0yFR+SPHV2YWyrc4QdSe23+Ts2gIYFtEeQ obsBUCstxaLRbOOhVg9KhRusZxYcewRmXxktSCLr3Yv2ao5zbpwk0pV/jP3Xod1yx3lP 091lo46tJkoOR9/8P8XbgUo2gSr3c0rPaX0BzwWQ1p0fmXFAalDEAgby7sZzjcWOh1ra N3RdRkHF5iYxNgRhNgoVspg8a+MuxjyGSGBsgo071RzMiEvnMSJFPqVRAq1ziluNyVgj jQOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=TdSfGLXDQipcjJ3Bb0KwXC59YOse+rmeJaKYr73b3xc=; b=w7OuDvQrlO77izkFGfN99Yoi9yhkZPsSpjdQxG2PdFCiFt+tYNpOR0z0TQ7HO8zJtm oLHycGafluVpowzvkqAHT2YDafj53ucnF8CM7+h++N7brffMpqZ7RZgApwQNuwU0Uwqi 8EbfAaJ5T5eJxuoloGDqKNHj40TXKkCSASNzNSDkKCq/RVBU9h6ezNR/auFNc7xjoUIa CnwB42gjOMoOJBfrZBabReGwgG78KPjU0OUXgb66rRDQR0+ly7SCryEq7oD6pOh+sSn0 5pg62YrFxYjZyldyxwdb1f6eiFR23Ogf5HkVpIzY/3sXN3SaoOu2sqndKUCfV6FgcgUK WFoA== ARC-Authentication-Results: i=1; mx.google.com; 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 l18si5341902eje.178.2021.01.29.09.03.38; Fri, 29 Jan 2021 09:04:08 -0800 (PST) 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; 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 S231596AbhA2RCt (ORCPT + 99 others); Fri, 29 Jan 2021 12:02:49 -0500 Received: from mx2.suse.de ([195.135.220.15]:47082 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231915AbhA2RAg (ORCPT ); Fri, 29 Jan 2021 12:00:36 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 7A127ACB7; Fri, 29 Jan 2021 16:59:55 +0000 (UTC) Subject: Re: [PATCH v2] x86/debug: Fix DR6 handling To: Borislav Petkov , Peter Zijlstra Cc: x86@kernel.org, linux-kernel@vger.kernel.org, andrew.cooper3@citrix.com, Frederic Weisbecker References: <20210128211627.GB4348@worktop.programming.kicks-ass.net> <20210129144816.GB27841@zn.tnic> From: Tom de Vries Message-ID: <50670b90-6d53-8c65-b3c8-e76fc9e2a1d3@suse.de> Date: Fri, 29 Jan 2021 17:59:54 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <20210129144816.GB27841@zn.tnic> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/29/21 3:48 PM, Borislav Petkov wrote: > On Thu, Jan 28, 2021 at 10:16:27PM +0100, Peter Zijlstra wrote: >> >> Tom reported that one of the GDB test-cases failed, and Boris bisected >> it to commit: >> >> d53d9bc0cf78 ("x86/debug: Change thread.debugreg6 to thread.virtual_dr6") >> >> The debugging session led us to commit: >> >> 6c0aca288e72 ("x86: Ignore trap bits on single step exceptions") >> >> It turns out that TF and data breakpoints are both traps and will be >> merged, while instruction breakpoints are faults and will not be >> merged. This means 6c0aca288e72 is wrong, we only need to exclude TF >> and instruction breakpoints while we can merge TF and data >> breakpoints. >> >> Fixes: d53d9bc0cf78 ("x86/debug: Change thread.debugreg6 to thread.virtual_dr6") >> Fixes: 6c0aca288e72 ("x86: Ignore trap bits on single step exceptions") >> Reported-by: Tom de Vries >> Bisected-by: Borislav Petkov >> Signed-off-by: Peter Zijlstra (Intel) > > I guess > > Cc: > > Also, > > Reviewed-by: Borislav Petkov > > And gdb testsuite is a bit happier: > > --- before > +++ after > === gdb Summary === > > -# of expected passes 70822 > -# of unexpected failures 899 > +# of expected passes 70852 > +# of unexpected failures 869 > # of expected failures 74 > # of known failures 99 > # of untested testcases 114 > > You just fixed 30(!) testcases. > > :-) > Hi Boris, thanks for testing this, and just to confirm: the total number of regressions I see in the gdb testsuite related to watchpoints is indeed 30. Thanks, - Tom