Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Improve unw_step fallback method on Aarch64." #659

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bregma
Copy link
Member

@bregma bregma commented Nov 10, 2023

This reverts commit d7ca80c.

This change makes the assumption that any function with no eh_frame entry has a (ABI-standard) function prolog and no local variables... which means any time that assumption is violated it's just reading random values from the stack and interpreting them as a return address.

It's not that unusual to violate those assumptions, and it's better to fail unwinding than to jump to arbitrary memory address found on the stack.

Fixes #646

This reverts commit d7ca80c.

This change makes the assumption that any function with no eh_frame
entry has a (ABI-standard) function prolog and no local variables...
which means any time that assumption is violated it's just reading
random values from the stack and interpreting them as a return address.

It's not that unusual to violate those assumptions, and it's better to
fail unwinding than to jump to arbitrary memory address found on the
stack.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

QNX test error: Memory fault (core dumped)
1 participant