arm/backtrace/unwind: skip unaligned instruction

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an 2023-02-22 12:34:48 +08:00 committed by Xiang Xiao
parent 9c30d3bf33
commit 0e873b51c6
1 changed files with 5 additions and 1 deletions

View File

@ -470,7 +470,11 @@ int unwind_frame(struct unwind_frame_s *frame)
/* Check the personality routine */ /* Check the personality routine */
if ((*ctrl.insn & 0xff000000) == 0x80000000) if (((uintptr_t)ctrl.insn & 0x3) != 0)
{
return -1;
}
else if ((*ctrl.insn & 0xff000000) == 0x80000000)
{ {
ctrl.byte = 2; ctrl.byte = 2;
ctrl.entries = 1; ctrl.entries = 1;