public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Ard Biesheuvel <ard.biesheuvel@linaro.org>
To: edk2-devel@lists.01.org, leif.lindholm@linaro.org
Cc: ryan.harkin@linaro.org, eugene@hp.com,
	Ard Biesheuvel <ard.biesheuvel@linaro.org>
Subject: [PATCH 0/3] ArmPkg: increase robustness of the crash handler
Date: Mon, 20 Mar 2017 20:52:58 +0000	[thread overview]
Message-ID: <1490043181-20031-1-git-send-email-ard.biesheuvel@linaro.org> (raw)

Make the default exception handler deal with corrupted SP or PC registers,
by switching to the EL0 stack pointer for sync exceptions, and walking the
call stack even if PC is 0x0 or otherwise invalid.

Ard Biesheuvel (3):
  ArmPkg/DefaultExceptionHandlerLib: add missing GUID to .inf
  ArmPkg/DefaultExceptionHandlerLib: walk call stack unconditionally
  ArmPkg/ArmExceptionLib: use EL0 stack for synchronous exceptions

 ArmPkg/Library/ArmExceptionLib/AArch64/AArch64Exception.c                    | 17 +++-
 ArmPkg/Library/ArmExceptionLib/AArch64/ExceptionSupport.S                    | 86 ++++++++++++--------
 ArmPkg/Library/ArmExceptionLib/ArmExceptionLib.inf                           |  5 +-
 ArmPkg/Library/DefaultExceptionHandlerLib/AArch64/DefaultExceptionHandler.c  | 56 +++++++------
 ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf     |  3 +
 ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLibBase.inf |  3 +
 6 files changed, 107 insertions(+), 63 deletions(-)

-- 
2.7.4



             reply	other threads:[~2017-03-20 20:53 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-20 20:52 Ard Biesheuvel [this message]
2017-03-20 20:52 ` [PATCH 1/3] ArmPkg/DefaultExceptionHandlerLib: add missing GUID to .inf Ard Biesheuvel
2017-03-22 13:01   ` Leif Lindholm
2017-03-20 20:53 ` [PATCH 2/3] ArmPkg/DefaultExceptionHandlerLib: walk call stack unconditionally Ard Biesheuvel
2017-03-22 13:07   ` Leif Lindholm
2017-03-22 13:12     ` Ard Biesheuvel
2017-03-22 13:20       ` Leif Lindholm
2017-03-20 20:53 ` [PATCH 3/3] ArmPkg/ArmExceptionLib: use EL0 stack for synchronous exceptions Ard Biesheuvel
2017-03-22 13:18   ` Leif Lindholm
2017-03-22 13:20     ` Ard Biesheuvel
2017-03-27 12:54     ` Ard Biesheuvel
2017-03-27 12:55       ` Ard Biesheuvel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1490043181-20031-1-git-send-email-ard.biesheuvel@linaro.org \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox