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

Clarify PSW address reported for signal handlers #2

Closed
uweigand opened this issue May 3, 2021 · 2 comments
Closed

Clarify PSW address reported for signal handlers #2

uweigand opened this issue May 3, 2021 · 2 comments
Assignees

Comments

@uweigand
Copy link
Member

uweigand commented May 3, 2021

On s390x, SIGILL, SIGFPE, and SIGTRAP are delivered with the PSW address pointing after the faulting instruction, while SIGSEGV and SIGBUS are delivered with the PSW address pointing to the faulting instruction.

This behavior effectively forms part of the kernel ABI. Given that the ABI already has a section 1.5 Exception Interface that documents the relationship between architecture exceptions and kernel signals, we should add the information about where the reported PSW points to depending on the signal type to that chapter as well.

@aarnez
Copy link
Collaborator

aarnez commented May 3, 2021

Thanks. Yes, I agree this should be documented, and that the existing ABI section about the exception interface is the right place for it.

@aarnez aarnez self-assigned this Jul 8, 2021
@aarnez
Copy link
Collaborator

aarnez commented Oct 7, 2021

More information about exceptions has been added with commit b53ce24, including the value of the PSW address after a fault.

@aarnez aarnez closed this as completed Oct 7, 2021
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

No branches or pull requests

2 participants