GNOME Bugzilla – Bug 787109
Valgrind false positive in ioctl() in btrfs file copy
Last modified: 2017-09-08 14:37:09 UTC
The BTRFS_IOC_CLONE ioctl will cause a false positive in Valgrind; Valgrind's memcheck tool checks that the third argument to ioctl() is a valid pointer, but some ioctls interpret that argument as an integer. That's what happens in this case, since a file descriptor is passed in.
Created attachment 358896 [details] [review] valgrind: Add false positive to suppressions file Valgrind will check that the third argument to ioctl() is a valid pointer, but some ioctls interpret that argument as an integer, and that is the case here (it's a file descriptor), so this is a false positive.
Review of attachment 358896 [details] [review]: Looks good.
Attachment 358896 [details] pushed as a72f57e - valgrind: Add false positive to suppressions file