Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp417923ybk; Sat, 9 May 2020 06:50:57 -0700 (PDT) X-Google-Smtp-Source: APiQypLctDpAw21WccYDRITKhA7I6dCaV1CsVJPr3RJNnPmOG+Jbw8I3xmD1kFDe+HZs6wdphyob X-Received: by 2002:aa7:c3d3:: with SMTP id l19mr6210178edr.14.1589032257514; Sat, 09 May 2020 06:50:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589032257; cv=none; d=google.com; s=arc-20160816; b=Gi8zIQrGkQcW+UXvQdxycAqBd/9huTHfOHgY+a9GQkzW3ZulBXDQiYTed1cnY+5UbR +YdJmJHWhvqczrVin053V58LWdSnRS7FpA2j0dbI+m1rFZnXT/is8wDxvJNnjUpRdE6S e/PV3e0OS+TtEhiEZubGZp/GECukQLR8ClPJJQsV62+dJBaOX9xjbtCycN7L9YA77hxT HkFgk5b9u/8tsH4X/oOU4hm8+TXmIdhgxtOi9SQxzxTWJ1BISCjlTjDHsd70ptmA5Ree /o6vfYXtlC5IvJ9qko8Ju4jrKk6QF5S4/BZdVl+uZ2hN0k1wRss7Cw6yHVu1oCu6xDbN 3hKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=/NN0RV5Ct4HaldwpXrjdCEBsbxS69vLxdDdMBxgFRCE=; b=V1uSN+CiLOmhLWdX55HbtcHZQ1D4MPb5w9uIMYGieP7k1ZrvNyYv5Ok0wcqWMRSl/6 LcV5KZmOd8IHp21u9pU417RcYPykPi3DEw1VS+uD0s9HRvy90IVNj5MgHZPZxwP/iXed 5MBmwyaPoj1F62LKK7+8nwchtaSFygXcje1tWYsw1Dmy8CgryTa/0I78kV3Yh3YWlmhM +N/o6MM+/4rhnLjQWrxIBGYt+8FiaaZylXEtg++O7YupcWuMcPuQHPEkX0D2a8u20l5Z m8WYOs8tB087OS1xe14X+uS5GnzvFZ1YTeYlD8/iM7dI7FCfz4NO1DG38J9VPgv0FJcP RHWA== 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 u3si2582524edy.541.2020.05.09.06.50.35; Sat, 09 May 2020 06:50:57 -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; 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 S1727933AbgEINtN (ORCPT + 99 others); Sat, 9 May 2020 09:49:13 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:4384 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727863AbgEINtN (ORCPT ); Sat, 9 May 2020 09:49:13 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 156EF275F844D64B3B40; Sat, 9 May 2020 21:49:09 +0800 (CST) Received: from euler.huawei.com (10.175.101.6) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.487.0; Sat, 9 May 2020 21:49:07 +0800 From: Wei Li To: , , , , , , , , CC: , , Subject: [PATCH 0/4] arm64: kgdb/kdb: Fix single-step debugging issues Date: Sun, 10 May 2020 05:41:55 +0800 Message-ID: <20200509214159.19680-1-liwei391@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.101.6] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch set is to fix several issues of single-step debugging in kgdb/kdb on arm64. It seems that these issues have been shelved a very long time, but i still hope to solve them, as the single-step debugging is an useful feature. Note: Based on patch "arm64: cacheflush: Fix KGDB trap detection", https://www.spinics.net/lists/arm-kernel/msg803741.html Wei Li (4): arm64: kgdb: Fix single-step exception handling oops arm64: Extract kprobes_save_local_irqflag() and kprobes_restore_local_irqflag() arm64: kgdb: Fix single-stepping into the irq handler wrongly arm64: kgdb: Set PSTATE.SS to 1 to reenable single-step arch/arm64/include/asm/debug-monitors.h | 6 ++++++ arch/arm64/kernel/debug-monitors.c | 28 ++++++++++++++++++++++++- arch/arm64/kernel/kgdb.c | 16 +++++++++++--- arch/arm64/kernel/probes/kprobes.c | 28 ++----------------------- 4 files changed, 48 insertions(+), 30 deletions(-) -- 2.17.1