Bug 1909447
| Summary: | valgrind complains about ioctl call in cp on aarch64 | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Tom Lane <tgl> |
| Component: | valgrind | Assignee: | Mark Wielaard <mjw> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 33 | CC: | dodji, jakub, mjw |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | aarch64 | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | valgrind-3.16.1-12.fc34 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-12-20 21:16:29 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Tom Lane
2020-12-20 03:08:58 UTC
This comes from GNU coreutils copy.c:
/* Perform the O(1) btrfs clone operation, if possible.
Upon success, return 0. Otherwise, return -1 and set errno. */
static inline int
clone_file (int dest_fd, int src_fd)
{
#ifdef FICLONE
return ioctl (dest_fd, FICLONE, src_fd);
#else
(void) dest_fd;
(void) src_fd;
errno = ENOTSUP;
return -1;
#endif
}
valgrind doesn't know what FICLONE is.
This is upstream bug https://bugs.kde.org/show_bug.cgi?id=397605 which comes with a patch.
Will investigate to see if it can be applied upstream and backported.
Oh, interesting, so that implies that it's not so much arch-specific as filesystem-specific. But both the Fedora 33 machine I see this on and the RHEL8.3 x86_64 machine I don't see it on are running xfs. Both define FICLONE in /usr/include/linux/fs.h. So I'm still confused. Is this a very recent change in coreutils? (In reply to Tom Lane from comment #2) > Oh, interesting, so that implies that it's not so much arch-specific as > filesystem-specific. But both the Fedora 33 machine I see this on and the > RHEL8.3 x86_64 machine I don't see it on are running xfs. Both define > FICLONE in /usr/include/linux/fs.h. So I'm still confused. Is this a very > recent change in coreutils? I am not sure why it now suddenly shows up, but I could replicate it and I believe the patch is correct so I have added it upstream and to the rawhide valgrind package. |