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

USM: ssl: Ignore ELF files for other architectures (#25505) #25936

Closed
wants to merge 1 commit into from

Conversation

guyarb
Copy link
Contributor

@guyarb guyarb commented May 27, 2024

  • USM: ssl: Ignore ELF files for other architectures

Ignore ELF files which are not for the architecture we're running on. Without this, we could end up installing a uprobe on, for example, an arm64 binary on an amd64 machine, thus corrupting the arm64 instruction and leading to segmentation faults.

  • Use blockList in test

  • Use OpenFromAnotherProcess instead of libmmap

  • Remove unused libmmap

  • Simplify testArch

  • Skip test on unsupported platforms

  • Format fakessl.c with clang-format

  • Add shebang link to script

  • Move libs to testdata

So that kmt will copy it to the VMs.

(cherry picked from commit a6c060e)

Conflicts:
pkg/network/usm/utils/debugger.go

What does this PR do?

Motivation

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

* USM: ssl: Ignore ELF files for other architectures

Ignore ELF files which are not for the architecture we're running on.
Without this, we could end up installing a uprobe on, for example, an
arm64 binary on an amd64 machine, thus corrupting the arm64 instruction
and leading to segmentation faults.

* Use blockList in test

* Use OpenFromAnotherProcess instead of libmmap

* Remove unused libmmap

* Simplify testArch

* Skip test on unsupported platforms

* Format fakessl.c with clang-format

* Add shebang link to script

* Move libs to testdata

So that kmt will copy it to the VMs.

(cherry picked from commit a6c060e)

 Conflicts:
	pkg/network/usm/utils/debugger.go
@guyarb guyarb requested a review from a team as a code owner May 27, 2024 08:22
@guyarb guyarb marked this pull request as draft May 27, 2024 08:22
@guyarb guyarb closed this May 27, 2024
@dd-devflow dd-devflow bot deleted the vincent.whitchurch/qemu-7.53 branch November 23, 2024 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants