-
Notifications
You must be signed in to change notification settings - Fork 177
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
RFE: add RISC-V 64 bit support #50
Conversation
RISC-V is an open source, free ISA developed at UCB since 2010 (https://riscv.org/). This patch adds 64 bit (only) RISC-V support to libseccomp. Let me caveat this patch: There is no kernel support for audit at the moment in the RISC-V fork of the Linux kernel. However I'm going to look at that next. Nevertheless the patch works for me and passes all the tests on Linux/x86_64. On Linux/riscv64 one test fails: Test 04-sim-multilevel_chains%%001-00001 result: FAILURE bpf_sim resulted in KILL |
http://oirase.annexia.org/tmp/log.txt It seems in fact there are two failures. How do I get more detail about those failures? |
Hi Richard, Thanks for the patch, I haven't had a chance to look at it yet, but it is on my radar. A few quick observations and questions:
|
Sorry, just realized you mentioned two test failures. A quick glance makes me think the second test failure is for the same reason as the first, the fix should be similar. |
Re: valgrind, no. I will try the other things you suggested. |
Adds support for the RISC-V architecture, 64 bit only. Also adds support for 2 new system calls added since the previous architecture: preadv2(2) and pwritev2(2). Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
I have pushed an updated patch which fixes the tests. The new output of http://oirase.annexia.org/tmp/log.txt (Make sure to hit Shift + Reload). The tests now pass. I had a look at what it would take to implement the kernel side of this, and it's considerably more than I anticipated. I (or someone) do eventually intend to do this, but probably not soon. |
Thanks for the update. The general approach we've taken is to not merge support for new architectures until there are kernel patches available. Please note that this doesn't mean a kernel -rc release, if there is basic support upstream and the development pace is reasonable, we can always create a new branch with ABI support to aid development/testing and merge that to master once the kernel maintainer gives the nod. Quick summary: I'm not going to review/merge this now as it sounds like the associated kernel support is a long time off, but please ping us when you are getting ready to work on the kernel support; we'll be happy to help however we can. |
@rwmjones I just wanted to check back and see how things were going with the kernel support ... any progress worth reporting? If you think this is still a ways off, I'm tempted to close out this PR for the moment as it is only going to get increasingly outdated. However, if you think you might have the kernel support working in a month or two I'm okay with leaving this open. Thoughts? |
@rwmjones It's been a while with no feedback so I'm going to close this PR. If/when you get the kernel support in place I'll happily accept RISC-V as a new ABI for libseccomp. |
Sorry, I don't get github notifications. So probably closing this is the right thing for now. We're expecting to get the kernel stuff upstream real soon, and then I'll be back working on Fedora/RISC-V and we'll see what the final syscalls look like. |
No worries. When thing are all set with the upstream kernel we can revisit this - thanks! |
FYI RISC-V support was merged in Linux 4.15. However I'm currently not in a position to re-verify the changes. We're looking at restarting the RISC-V work in February 2018 which is the expected date for getting glibc upstream too. |
Thanks for the update, you know where to find us when you guys are ready. |
@rwmjones Anything I can do to help/any advice for picking this up myself? |
We're seeing PRs for this now, so it seems like it is time to reopen this issue. |
Argh, nevermind, I just realized this is a PR and not an issue, let's leave this closed and create a tracking issue. |
Let's move the discussion to issue #110. |
Adds support for the RISC-V architecture, 64 bit only.
Also adds support for 2 new system calls added since the previous
architecture: preadv2(2) and pwritev2(2).
Signed-off-by: Richard W.M. Jones rjones@redhat.com