Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp560778pxk; Wed, 2 Sep 2020 08:47:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrgnzGczLKynwh91QXGTPbWCeS5X/zBJikIBFiFKzp62qAeB6EjbMi4p4lV5URV6kwW55N X-Received: by 2002:a17:906:bfcb:: with SMTP id us11mr620213ejb.502.1599061666701; Wed, 02 Sep 2020 08:47:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599061666; cv=none; d=google.com; s=arc-20160816; b=Iv6M4ZEfr8J2TeDjhsOBrTc8IkSb205PYfWtWdPvFyb1YLbipjVq58/YdqfJ5qKLSx 7IeL9QgspziC/fYDWEx3afoYDbi1HPUMkBmaKD9quEXsVHemPHSndxv5qFwCFdwED4Hc 0fwmXM1awpKAWSZxXphXNAVaxdU7GkLUnv5hVgfn5gAlF/tzNTgNPSV18jtFl2vkdR1H Beb3JRynPvCHEz4dXpUlrFU9v1zxEzCwdqog5Y/AOeaIxTVfMHJSpEtZju60yWRPADR6 8RNH/1hOFuyCjq9ZZixIVEXum20KydVEmo/HItfiXQExD40cUgI1eIUNHLtrmCXnG9Ju m+vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:cc:to:from:date:user-agent :message-id:dkim-signature; bh=xzcFqBW66P6Gi8gRIAZhe8QJBU9uv82X621N7CBk6yY=; b=zjLw80dy+Aduo7U7SOunkL5YJEgDQqFWFqoN0DdmdC/RBMl1Zpvy1tjBA4rSF3jWzR 4rlnhmR5EYrgvG8yzTBS+t2BCqWAR/UZfghBAL1ILM3UXOh7l79CtRxD8XT6sdFKszMb oYufm5eVkXO2JiCAnmAiVqsPx4HJ5Nk8gR49AiRTaPAnNCROg007la9hT96YwLds/20s 0qF2XpFRmY2Ao2Agh91gA3KVszPmfHu/ygkEEykn8RbD1fGrbmWqE3Vs/hmR9THm6GFb Ojkwdk1zb8Y1nfET9vWPZ41tSNEEqF1DDtVHwbuwQeG//uo3xq/hTby7UgaXoB6MhQad bN+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=Ir0yIXio; 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 n9si2810480eds.46.2020.09.02.08.47.23; Wed, 02 Sep 2020 08:47:46 -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=Ir0yIXio; 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 S1728224AbgIBPqo (ORCPT + 99 others); Wed, 2 Sep 2020 11:46:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727850AbgIBNj3 (ORCPT ); Wed, 2 Sep 2020 09:39:29 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A63B4C061260 for ; Wed, 2 Sep 2020 06:38:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Subject:Cc:To:From:Date:Message-ID: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:In-Reply-To:References; bh=xzcFqBW66P6Gi8gRIAZhe8QJBU9uv82X621N7CBk6yY=; b=Ir0yIXioOglUfalbvX2p6P0Sw7 M0j34LvZNu5hnXnxeC/wk8TSosMJMFVm6DUYqwXC6oczYY18Ny2HSP+OQZiP6GfCDyDTGrbPkfSZA RiFWKGuQ5hQwE4noSGIGnS0vSXuG3e9E6lOwYNT/qvezzsmPWbdPpQziOSIIyfUk0kStZVbEbBVv0 anpKUGvKM2S9Iyz6GaUx36acSFeh7g0w5eu6DXJGQTUX/dLYON2ygpxgCQrjPnTrispYFKks0GKzL 3YuYuTNWQXNp8ULQ6lcNrH0POISqmhORL43KWEoHLZFzfufFT3MyPIbAHY65aiVcg7qry8U6XkgfK ByF5b/sA==; 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 1kDSxq-0003ZX-Kx; Wed, 02 Sep 2020 13:38:14 +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 CBBC53056DE; Wed, 2 Sep 2020 15:38:11 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 0) id A873329A82C1D; Wed, 2 Sep 2020 15:38:11 +0200 (CEST) Message-ID: <20200902132549.496605622@infradead.org> User-Agent: quilt/0.66 Date: Wed, 02 Sep 2020 15:25:49 +0200 From: Peter Zijlstra To: x86@kernel.org Cc: 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 , Daniel Thompson , Peter Zijlstra Subject: [PATCH 00/13] x86/debug: Untangle handle_debug() Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). 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