Summary: | sys-apps/sandbox fails tests on arm64 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | matoro <matoro_gentoo> |
Component: | Current packages | Assignee: | Sandbox Maintainers <sandbox> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | arm64, herrtimson, matoro_gentoo |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | ARM64 | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/sandbox/pull/12 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
testsuite.log |
Description
matoro
2023-06-30 19:19:38 UTC
Created attachment 864894 [details]
build.log
Created attachment 864895 [details]
testsuite.log
I can reproduce this with sandbox-2.34 on an arm64 EC2 server. This is a really weird bug. The ptrace code in sandbox is definitely catching the unlinkat syscall, but the kernel still removes the file. arm64 seems to be unique in that the kernel provides unlinkat(), but does not provide unlink(). libc provides unlink() as a library function that calls unlinkat(). I'm not sure if this is related to the problem. Anyway, I suspect there is something wrong with the sandbox code that modifies the system call. Either that, or we have run into a kernel bug. Apparently this test has never worked on arm64. https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=3e60745c278248baa9cac3da0b4ed3f7dcd96501 We should probably XFAIL it for now. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=f4c6bf434459d2d7b57c003e4eab81f2f8c21f51 commit f4c6bf434459d2d7b57c003e4eab81f2f8c21f51 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2023-07-08 02:50:02 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2023-07-08 03:05:11 +0000 libsandbox/trace: fix syscall cancellation on arm64 arm64 has a dedicated regset to manipulate the system call number. See kernel commit 766a85d7bc5d7f1ddd6de28bdb844eae45ec63b0. Bug: https://bugs.gentoo.org/909416 Signed-off-by: Mike Gilbert <floppym@gentoo.org> libsandbox/trace/linux/aarch64.c | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2aa847a538da66fbfccc7b5866fa0adf3e21b982 commit 2aa847a538da66fbfccc7b5866fa0adf3e21b982 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2023-07-08 03:11:37 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2023-07-08 03:11:37 +0000 sys-apps/sandbox: add 2.35 Closes: https://bugs.gentoo.org/909416 Signed-off-by: Mike Gilbert <floppym@gentoo.org> sys-apps/sandbox/Manifest | 1 + sys-apps/sandbox/sandbox-2.35.ebuild | 64 ++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) |