Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp380341ybv; Thu, 13 Feb 2020 02:11:26 -0800 (PST) X-Google-Smtp-Source: APXvYqyXe88pp6GO8/tYRIaDY547OAO/LvaP36U/WGnpBJOcwL/0T53YaULcSziGDtPPuv/6qrhK X-Received: by 2002:a05:6808:a8a:: with SMTP id q10mr2298028oij.66.1581588686728; Thu, 13 Feb 2020 02:11:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581588686; cv=none; d=google.com; s=arc-20160816; b=IAJOlF06J1IwH7SVlESTbSIWaBeQE7ON9FP+EWMLfAz5tYpnAs5ytiSlUev5izC9Vf PceB+MMmYy93FblfSc9tiOeIJPuZ+kJbmEZfidn2kfKIOVfMBaLv0m3E44IcG77P3Itw VYT3oxqyUlpGdoQMAQ8U7rbwq2u0xQzJeJ7hnuOMtM7aQWoUXS+VvPpK25Uv1DDMtcVb /kl4feOBmNUIfo1nkzms5sendinS50UepzQDBgl3Tx+fUxHyca1ZMVRku7wzEo0OOKV7 3dJY1B0G32pojZYLc5n8qZo4pCOjN1iUQ4ZzE4btOWtjcAEdx4Orz2tZY1ih8r+HOldt iSog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=83VFQ7y95WygpoSrX6vPKa32sCyvzk4akvhfHiUIrw0=; b=KWr1GXsgZQP7YW1E/AoxceUASzt1fXso+6tTt9YR11WNs9kiRI9eKfU9QebodJM2t6 3QNX35C7ZfuhmnFWyx5MouWBVz4bnsVqFd6HEksWotGJLJRTw2paKl+sgaLKXRYT71rR Bn732sGkUqBKVYhisk+ltKIcb7TgpWUuEZaoLom0V0zP+G2KMoVH/zBoqNXGdf2yNCZk CmOup+otyvSxoXIu4iYzlEyO7zSGT4WJaDbDoFaMpmiW+Gu+NMjoFUCfvtK92tk5jA4E UHBF9GR1B7GDIG4onSrOPw7ZgGTeqgh04sS4p4aJkC+h4KRk5w74D2FRbHSo6LPFcG/F /WFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="pjn/5040"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p22si931761ota.43.2020.02.13.02.11.13; Thu, 13 Feb 2020 02:11:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="pjn/5040"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729586AbgBMKLC (ORCPT + 99 others); Thu, 13 Feb 2020 05:11:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:51322 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729428AbgBMKLC (ORCPT ); Thu, 13 Feb 2020 05:11:02 -0500 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 40FAF20873; Thu, 13 Feb 2020 10:11:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581588662; bh=DcTFDh6Btu9NlaDnpCgIMMBV4IDmzSgnefKuvO9pNK8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pjn/5040/9bpqrzAPIPY0NL05Icp8khNKqiWzTH8ehI9lZjKQY8M4aPda7PZocp9E /hHaRaM4IYarz/UZQa8TZE2dKpLxCeCCyXaJlN+Us6LOLCkKDRSWd79d6CpUJVrS2q XaLhsvSH3GdMGKQgNUYRSv0f57KBocrE/1T0jazk= Date: Thu, 13 Feb 2020 10:10:58 +0000 From: Will Deacon To: minyard@acm.org Cc: Catalin Marinas , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 0/2] arm64 kgdb fixes for single stepping Message-ID: <20200213101057.GB1405@willie-the-truck> References: <20200213031131.13255-1-minyard@acm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200213031131.13255-1-minyard@acm.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 12, 2020 at 09:11:29PM -0600, minyard@acm.org wrote: > I got a bug report about using kgdb on arm64, and it turns out it was > fairly broken. Patch 2 has a description of what was going on. I am > using a Marvell 8100 board. > > The following patches fix the problem, but probably not in the > best way. They are what I hacked out to show the problems. > > I am not quite sure how this will interact with kprobes and hardware > breakpoints which use the same code, but they would have been broken, > too, so this is not making them any worse. This should all be handled by kgdb itself, not by changing the low-level debug exception handling. For example, the '&kgdb_step_hook' can take care of re-arming the step state machine and kgdb can also simply disable interrupts during the step if it doesn't want to step into the handler. Will