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

Doesn't appear to build for POWER architecture #39

Open
JeremyRand opened this issue Feb 10, 2023 · 2 comments
Open

Doesn't appear to build for POWER architecture #39

JeremyRand opened this issue Feb 10, 2023 · 2 comments

Comments

@JeremyRand
Copy link
Member

It appears that u-root's strace package doesn't build for either ppc64le or ppc64. It would be desirable to submit fixes upstream to them so that it works properly, at which point Horklump will hopefully build and run fine.

@JeremyRand
Copy link
Member Author

I will probably be able to provide remote access to a POWER9 VM to facilitate this but due to the firmware-related issues I'm having with my machine right now, this will probably not happen before the Outreachy internship concludes.

@JeremyRand
Copy link
Member Author

I wonder if the reason u-root doesn't support strace on POWER is related to this change introduced in Linux 6.1:

To me, though, I'm most impressed with the exceptionally hard but worthy work done to rework system calls to use the new shared syscall wrapper implemented for s390, arm and x86 and obsolete the old legacy layer. This causes syscall handlers to take their parameters off the stack rather than relying on the state of the argument registers and r0, which is an obvious benefit if the registers are already on stack (such as for exception handling) because an additional stack frame wouldn't be needed, and further offers the opportunity to zero or sanitize them to prevent them from being used as a means to influence speculative execution (where expedient, and likely coming in 6.2). This has at most a minor performance boost, but it seems to be a definite security and maintainability gain, and best of all the new wrappers work on all PowerPC and Power ISA CPUs except the IBM Cell.

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

1 participant