On Wednesday, October 14, 2020 11:43:08 PM CEST Tomasz Kłoczko wrote: > Hi, > > Two units are failing in my build env: > > FAIL: tests/cp/fiemap-FMR > ========================= > > ==420069== Syscall param ioctl(generic) points to unaddressable byte(s) > ==420069== at 0x49B94AB: ioctl (in /usr/lib64/libc-2.32.9000.so) > ==420069== by 0x11D851: UnknownInlinedFun (copy.c:371) > ==420069== by 0x11D851: copy_reg (copy.c:1239) > ==420069== by 0x11F0CA: copy_internal.constprop.0 (copy.c:2716) > ==420069== by 0x122DEA: copy.constprop.0 (copy.c:3024) > ==420069== by 0x123172: do_copy (cp.c:780) > ==420069== by 0x10DAA9: main (cp.c:1232) > ==420069== Address 0x3 is not stack'd, malloc'd or (recently) free'd > ==420069== > FAIL tests/cp/fiemap-FMR.sh (exit status: 1)
This is a problem in valgrind which does not know how to handle FICLONE ioctl. valgrind treats the operand of FICLONE as address 0x3 while the ioctl is taking a valid file descriptor 3 in this case. Kamil