Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp618519pxk; Thu, 3 Sep 2020 08:22:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweiEkUZ+mTSwXyojvGqAJUuOP1RrTIw8BN6xAiwYgrv5kx0m/WmhMu/QOqNsGCs/6+jqgT X-Received: by 2002:a17:906:846:: with SMTP id f6mr2784338ejd.157.1599146550553; Thu, 03 Sep 2020 08:22:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599146550; cv=none; d=google.com; s=arc-20160816; b=t3IX5ESKRhkqPHxwwMWujd6Gx4UTWGlN5c5fTWSRoxqLSbLIlexq9udrZbtSY+650Q sdSpgUaqi5PmaLlLa73VxKIfxcQNk647Zk9MoFkpKazRrLF7V4STcx4Rv9p2mHxNpJoP UFVS3BrV8O+zoIIBHqfIpcX1YzxDOPrdZnwsCRnz1N1H4jSNQRlfCe8oxfYN1P12sJDL UiO8jD23mL6RTgdsFCqUMXH+/bWNelI6+7f37kC8MMKzBNRO2NserhunyT5xjaOlwCFa g3kdkrLC/gLE//A2lsjj6Q68H+Zww3qu1D+0b9CjN9qJLRDwlAcSLNIICI9CxSkg2I2j qsJw== 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=fUweod+uqjt0fy1FhQduTmrLFzl6ANoKL+CTIQ2c5rE=; b=TgOzog0Yyc6f2dx0ta8SOmpqviot3FOVt94jJrwkOpirkPCRIidu5BFoxpNGj2LX0D Y4tpQdhcwuBvDgHuzO/x1RK8Z1Jq+yJH5GN7hNBozAj5fzbFd5iMZuxphTpbZXUeD17U 5fD0fEDuRhTBXE5gZm9NSHzjzKYOCltUVdWL4gHy14vOMX7YjQTwxBPiw+B1xnp1Vaa4 aOJ2tNkpqGO4srBr+dL1vsvHhmY9fS1MycmykCBH+YKiJJSvZ4Ub+73roEKtAkn/1evl JbyoXlMmoe21xOvc4VzyhMExMgsgyWVfrV4ErfX8nU+cwV5nGgmczbJNJ3yHGYaLOFkV 0lTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a94Ux7R1; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a1si1847156edy.292.2020.09.03.08.22.07; Thu, 03 Sep 2020 08:22:30 -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=@linaro.org header.s=google header.b=a94Ux7R1; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728871AbgICPV3 (ORCPT + 99 others); Thu, 3 Sep 2020 11:21:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728759AbgICPVY (ORCPT ); Thu, 3 Sep 2020 11:21:24 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2042C061244 for ; Thu, 3 Sep 2020 08:21:23 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id v4so3278015wmj.5 for ; Thu, 03 Sep 2020 08:21:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=fUweod+uqjt0fy1FhQduTmrLFzl6ANoKL+CTIQ2c5rE=; b=a94Ux7R1+N0TZSiVBeTS41VzYFQ5koFtL0bMtGK4k3B/ay3KEcxS2pseWU5EYobR0U ANKvasdf/uxjAaffItCOwnfj1qk1OiwOqRvOEByrftd7mt0p0DA+LHZEWLvYRsLZIbz9 vuQmiA1mjeKWRNRKbmPgQJLUbL6cQkWGwzh6OHx2mYOpVca1H1oAipcAoRKc3Kg6jn8k 6BsiAGvjaZpE0QpyOQA1mslKBeRTFV9lahSbFasMU5U0v7Te+Cc7Qgu5dFk8C+HrxwDr JWXpK7qEqzw9IYGI7TqboAbRAc1SeBOzSsrPVEuDEFxgwsBfvcG58Gc67Xpt31i+gS2r VQZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=fUweod+uqjt0fy1FhQduTmrLFzl6ANoKL+CTIQ2c5rE=; b=nkn0rar4B7ZtATyAgdbUx1DzvsWe2zRKN/OqCBnTircsOofUPzTXXPfQ8SF8AvqPLI 3hG65bV2VXtGhcz3pF28qvcvEn5cD/iZ/NDGXViBJGUSmxXeWeCszLx9mPOrzAUO2zkU 43HcwtTqYr4eIpqRYaudaysI6HlD64qTGUz/HGWhUN8WXRpq/h8Tqk4jTn4WGsiZWzAb zFpHHP3Ll053xQjFL2oHuRY7i0Zikt0NMKe7TfovQTMW7WcwKK4N9fsd9OQH6sRHD5dh aJA6wTxJln7hrJUd4DmNB3ReKGUrjjDCMJEZAK9yi7MJfRPf+Ur9wgHar409NtnUvASm imgQ== X-Gm-Message-State: AOAM530STLY+RYmjV4IxLePbT+KvNsfzax2O9bKuDZ4aIv/iOQS0Y0sy VlsK7nNd/w6yMlfFSvB2/ge9sQ== X-Received: by 2002:a1c:964b:: with SMTP id y72mr3081957wmd.69.1599146482589; Thu, 03 Sep 2020 08:21:22 -0700 (PDT) Received: from holly.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id k22sm5168697wrd.29.2020.09.03.08.21.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2020 08:21:21 -0700 (PDT) Date: Thu, 3 Sep 2020 16:21:20 +0100 From: Daniel Thompson To: Peter Zijlstra Cc: x86@kernel.org, linux-kernel@vger.kernel.org, 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 , Brian Gerst , Andy Lutomirski , Josh Poimboeuf Subject: Re: [PATCH 00/13] x86/debug: Untangle handle_debug() Message-ID: <20200903152120.zroztjtwqtx37asg@holly.lan> References: <20200902132549.496605622@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200902132549.496605622@infradead.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 02, 2020 at 03:25:49PM +0200, Peter Zijlstra wrote: > Hi, > > The first two patches probably ought to go in x86/urgent, the rest (!RFC) can > go into x86/core and wait a bit. > > handle_debug() is a mess, and now that we have separate user and kernel paths, > try and clean it up a bit. > > There's two RFC patches at the end that impact the ptrace_{get,set}_debugreg(6) > ABI, I've no idea what, if anything, is expected of that or if anybody actually > cares about that. If I read the code correctly nothing actually consumes the > value from ptrace_set_debugreg(6). I applied this both with and without the RFC patches and pointed the (still work-in-progress) kgdb test suite at it. I won't pretend the suite is comprehensive but nevertheless FWIW: Tested-by: Daniel Thompson Daniel. > > Kyle, you seem to be pushing all this to the edge with RR, any clues? > > Since v2: > > - fixed (user) INT1 / icebp detection > - some further cleanups > - two additional RFC patches >