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

s390x: Add support for inline probestack #9423

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

uweigand
Copy link
Member

@uweigand uweigand commented Oct 9, 2024

This implements the gen_inline_probestack callback in line with the implementation on other platforms, which allows detection of stack overflows with misconfigured hosts.

Fixes: #9396

@uweigand uweigand requested review from a team as code owners October 9, 2024 18:08
@uweigand uweigand requested review from abrown and alexcrichton and removed request for a team October 9, 2024 18:08
Copy link
Member

@alexcrichton alexcrichton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Comment on lines 3024 to 3032
pub(crate) fn probestack_supported(arch: Architecture) -> bool {
matches!(
arch,
Architecture::X86_64 | Architecture::Aarch64(_) | Architecture::Riscv64(_)
Architecture::X86_64
| Architecture::Aarch64(_)
| Architecture::Riscv64(_)
| Architecture::S390x
)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mind going ahead and removing this function altogether?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, will do.

This implements the gen_inline_probestack callback in line with
the implementation on other platforms, which allows detection
of stack overflows with misconfigured hosts.

Fixes: bytecodealliance#9396
@alexcrichton alexcrichton enabled auto-merge October 9, 2024 19:10
@alexcrichton alexcrichton added this pull request to the merge queue Oct 9, 2024
Merged via the queue into bytecodealliance:main with commit d50fea6 Oct 9, 2024
39 checks passed
@uweigand uweigand deleted the s390x-probestack branch October 9, 2024 19:29
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.

s390x: Crash on accessing backchain after stack overflow
2 participants