From patchwork Fri Apr 5 12:40:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 10887347 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0E6E41708 for ; Fri, 5 Apr 2019 12:52:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E741128B66 for ; Fri, 5 Apr 2019 12:52:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DB6FB28B6B; Fri, 5 Apr 2019 12:52:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8D33B28B66 for ; Fri, 5 Apr 2019 12:52:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=WTPUWWbMxTLg8BPtIv21DgfMmg+Aj6RIxctVzTJwE/g=; b=YVp HZxIUWy2tcdABZfGaI+DSzrNDoAUKDqzsig8wEabBTrPnzuYd1yZLNkF6hZ8g5yAcRVnmAqFlnGls FOrGrKa9mFRH/1U0sNhvjCkFb5oeqcv69DXM/zJHczYmxwkTaz9vvrGlxytghdel7LLuUCi6kU8IB Zwfb5Uv6XE/fPASEudJV7fcrUv2ay+ilzqvGYvVahfEQTK+jCaIH5dNyRY5n4yTnSMh4VO7ei6qI8 g4SyUXmeMJ2FoQqW3OMyMWIL/e+Bz+PqSHWlnYpPYvH5euDonV23LO/tIFrKiuFyXZX6gK+2c3ZjH o5cjlZ2vT5pl91GtnUdkjgBk8D1GFyw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hCOL1-00041C-6L; Fri, 05 Apr 2019 12:52:55 +0000 Received: from foss.arm.com ([217.140.101.70]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hCO9S-0004mI-3O for linux-arm-kernel@lists.infradead.org; Fri, 05 Apr 2019 12:41:06 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 203791688; Fri, 5 Apr 2019 05:40:53 -0700 (PDT) Received: from fuggles.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 561F63F557; Fri, 5 Apr 2019 05:40:52 -0700 (PDT) From: Will Deacon To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 0/8] Rework debug exception handling code Date: Fri, 5 Apr 2019 13:40:40 +0100 Message-Id: <20190405124048.3287-1-will.deacon@arm.com> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190405_054058_505539_879B4188 X-CRM114-Status: UNSURE ( 8.79 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, Will Deacon MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hi all, This is version two of the patches I previously posted here: http://lists.infradead.org/pipermail/linux-arm-kernel/2019-March/636331.html Changes since v1 include: * Dropped the first two patches, since they have been merged as fixed * Fixed break dispatching to work with comment ranges (required by KASAN) * Based on 5.1-rc3 I plan to queue these up for 5.2, pending any issues. Will --->8 Will Deacon (8): arm64: debug: Remove unused return value from do_debug_exception() arm64: debug: Rename addr parameter for non-watchpoint exception hooks arm64: debug: Remove meaningless comment arm64: debug: Separate debug hooks based on target exception level arm64: kprobes: Avoid calling kprobes debug handlers explicitly arm64: debug: Remove redundant user_mode(regs) checks from debug handlers arm64: probes: Move magic BRK values into brk-imm.h arm64: debug: Clean up brk_handler() arch/arm64/include/asm/brk-imm.h | 5 ++ arch/arm64/include/asm/debug-monitors.h | 25 ++++--- arch/arm64/include/asm/esr.h | 4 +- arch/arm64/include/asm/kprobes.h | 2 - arch/arm64/kernel/debug-monitors.c | 114 ++++++++++++++++++-------------- arch/arm64/kernel/kgdb.c | 30 +++------ arch/arm64/kernel/probes/kprobes.c | 22 +++--- arch/arm64/kernel/probes/uprobes.c | 19 ++---- arch/arm64/kernel/traps.c | 26 +++----- arch/arm64/mm/fault.c | 14 ++-- 10 files changed, 131 insertions(+), 130 deletions(-)