From nobody Mon Apr 04 11:05:57 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 5C7371A96F53; Mon, 4 Apr 2022 11:05:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KX7HV1XTvz3NTl; Mon, 4 Apr 2022 11:05:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649070358; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZcQCZCn8O24oEUmI1sVn7cmpyDPB8xQJKGaC6zuu428=; b=lcekQnlcNW74HnoBmZx8DJIaQ/GXHdHkbQcH+PsQr5HJPm663yPnrRu2n3elCyYE4wnj9Y 6DlXjuNvYDomYxiD7u3M5UmRMReUs9xMS+f4I8dZR1blKIKXOhcBvk3XzzoJGOY+ftTslF t9r2IH9sWiHj/HQHPDuRygNSa5R3uk5LerQ8tatJCFPnG4lBGIpoakzj3JSY2IO8JJ5UcO W+J/TXK/oz1B6kTpmHnm/vD/nVa1GV4gJsKjoWQ7Pky6//USKtQcsw6R4Y+E+FMM3G3sDt XaosFLmF/41rdFttwM1P5tQ2z0e1Uzt8sjIfPOaw5OAEi+hYoLSAbW4LaIBccw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0A6E111007; Mon, 4 Apr 2022 11:05:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 234B5vDG086446; Mon, 4 Apr 2022 11:05:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 234B5v0u086445; Mon, 4 Apr 2022 11:05:57 GMT (envelope-from git) Date: Mon, 4 Apr 2022 11:05:57 GMT Message-Id: <202204041105.234B5v0u086445@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andrew Turner Subject: git: 317e97a59f26 - stable/13 - Print the instruction for the unknown exception List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 317e97a59f26ebe3f52c3db2925ca8175fe2d809 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649070358; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZcQCZCn8O24oEUmI1sVn7cmpyDPB8xQJKGaC6zuu428=; b=IKObq99clIIgv5mLQEEEFHl+5YWO8Irb3x4XGvmWI9CntB8Vkj0JJzibdJG+3EWster4Sx 4u0VkX1PDlMNVbPDWAIJ3mSVRR7bdV4PjxonCUnOkged70QdpjHXjXGJDNJCw4lGhMqXc4 BomLYx8JuYGcG7FazWrvC4vqtuMcsupNtdc9N1k0S3dqllZhdB2j0TKJIRNn1gg15pQBhb EWOcr5FU6RrzzuKefvlao9Mw1Bk2dFkoRM+jWIDwasKMk0wxm9Jlg8Y758hV+kUp39rLfT 20/KriphC4L0rScJkMJ+h7OZS9OMDi+4LM5ny+SP/79OTJSjdgZCehScpG0vyw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649070358; a=rsa-sha256; cv=none; b=xjlrBLALfD266TXO9s9r5SZehOXB4uWe+k7kHmiZxdt0rPKNnd9wwllTckHN2mAUR9286h GxV90rEonlwOO3G325ewNzub5MZzAjOtnMTGflVNe1HUDaGcNQRnmCNi2vFVgH5OgfwWMg gF7L9K7yjrgm8VUOVlt0H/qbjUwoR+w0tYF35osmTh59G+O6zhbtwSe7X2rNC2fcbKEztp cIagDVLgL5ckn/hsRX2Ojpr9lkp/MzGBoyA4Ke+yGwjXF+3myg6KCDf80bFvTAbxgyslnC iDEAXYF5QTzSNxkOvXrPme03WFBNS4GcfYDJhuLeAKnDL47grXf1PDaSh98Z0A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=317e97a59f26ebe3f52c3db2925ca8175fe2d809 commit 317e97a59f26ebe3f52c3db2925ca8175fe2d809 Author: Andrew Turner AuthorDate: 2022-03-08 11:02:02 +0000 Commit: Andrew Turner CommitDate: 2022-04-04 09:37:05 +0000 Print the instruction for the unknown exception The arm64 unknown exception will be raised when we execute an instruction that id invalid or disabled. To help debug these print the instruction that failed. Sponsored by: The FreeBSD Foundation (cherry picked from commit e793a55a74eb34ae3225d620a9619554667efb30) --- sys/arm64/arm64/trap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/arm64/arm64/trap.c b/sys/arm64/arm64/trap.c index 849f26ee8220..75ae9e8fedac 100644 --- a/sys/arm64/arm64/trap.c +++ b/sys/arm64/arm64/trap.c @@ -492,6 +492,8 @@ do_el1h_sync(struct thread *td, struct trapframe *frame) case EXCP_UNKNOWN: if (undef_insn(1, frame)) break; + printf("Undefined instruction: %08x\n", + *(uint32_t *)frame->tf_elr); /* FALLTHROUGH */ default: print_registers(frame);