Repository navigation
Conversation
a_failure_after_the_image_got_its_name_syncs_its_directory() fails on
the aarch64 runners:
/tmp/ufat-named-4319/a.img is complete and has its name, but
syncing its directory failed: Input/output error (os error 5)
The test makes the rename of the file written next to the image fail
with a seccomp filter, so the filter has to refuse the system call that
glibc renames with. glibc uses renameat() wherever the kernel has it. I
assumed aarch64 doesn't have it but it does. It's system call 38 there
and glibc's renameat() and rename() both use it. It's riscv64 and
loongarch64 that only have renameat2().
So on aarch64 we refused renameat2(), the rename went through
renameat() and succeeded, and the only failure left was the sync of the
image's directory.
Refuse renameat() on aarch64 too. While at it, let
an_output_that_cannot_replace_leaves_no_temporary_name() run on aarch64
as well. It was limited to x86_64 and x86 for the same reason.
Fixes: 3882d91 ("ufat: create new images with O_TMPFILE")
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
a_failure_after_the_image_got_its_name_syncs_its_directory() fails on
the aarch64 runners:
The test makes the rename of the file written next to the image fail
with a seccomp filter, so the filter has to refuse the system call that
glibc renames with. glibc uses renameat() wherever the kernel has it. I
assumed aarch64 doesn't have it but it does. It's system call 38 there
and glibc's renameat() and rename() both use it. It's riscv64 and
loongarch64 that only have renameat2().
So on aarch64 we refused renameat2(), the rename went through
renameat() and succeeded, and the only failure left was the sync of the
image's directory.
Refuse renameat() on aarch64 too. While at it, let
an_output_that_cannot_replace_leaves_no_temporary_name() run on aarch64
as well. It was limited to x86_64 and x86 for the same reason.
Making the test refuse renameat2() instead of renameat() on x86_64
gives the same failure at the same line every time.
Note that cargo test stops at the first test binary that fails. So the
test binaries that run after ufat's unit tests haven't run on aarch64
with #19's code yet, and this is the first time they do.