]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Implement fcntl F_CREATED_QUERY
authorAlexandra Hájková <ahajkova@redhat.com>
Fri, 4 Jul 2025 11:35:13 +0000 (07:35 -0400)
committerAlexandra Hájková <ahajkova@redhat.com>
Fri, 4 Jul 2025 12:46:10 +0000 (14:46 +0200)
Define VKI_F_CREATED_QUERY in vki-linux.h.
Recognize it in PRE(sys_fcntl).
This fixes ltp tests failures. When running:
make ltpchecks TESTS="fcntl40 fcntl40_64
the tests would fail with:
fcntl40: unempty log2.filtered:
==1809471== Warning: unimplemented fcntl command: 1028

https://bugs.kde.org/show_bug.cgi?id=506076

NEWS
coregrind/m_syswrap/syswrap-linux.c
include/vki/vki-linux.h

diff --git a/NEWS b/NEWS
index c1940b56ced8021c92441edf4b4cf6f982595e21..40fec35cd2e297076835e0a69f395c5a18afbe7c 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -23,6 +23,7 @@ bugzilla (https://bugs.kde.org/enter_bug.cgi?product=valgrind) rather
 than mailing the developers (or mailing lists) directly -- bugs that
 are not entered into bugzilla tend to get forgotten about or ignored.
 
+506076  unimplemented fcntl command: 1028 (F_CREATED_QUERY)
 338803  Handling of dwz debug alt files or cross-CU is broken
 493434  Add --track-fds=bad mode (no "leak" tracking)
 503098  Incorrect NAN-boxing for float registers in RISC-V
index 97d386290201e30117b0ea87f95c236385029835..d2d0c70588064cd5a512426abfa9454c2dc58909 100644 (file)
@@ -7100,6 +7100,7 @@ PRE(sys_fcntl)
    case VKI_F_GETSIG:
    case VKI_F_GETLEASE:
    case VKI_F_GETPIPE_SZ:
+   case VKI_F_CREATED_QUERY:
    case VKI_F_GET_SEALS:
       PRINT("sys_fcntl ( %" FMT_REGWORD "u, %" FMT_REGWORD "u )", ARG1, ARG2);
       PRE_REG_READ2(long, "fcntl", unsigned int, fd, unsigned int, cmd);
index 65406fffe92ba660894c4b9d5414decad6d10dee..8c919845bcf0120434322bf66a57a72ee12b5444 100644 (file)
@@ -1514,6 +1514,7 @@ struct vki_dirent64 {
 #define VKI_F_SETLEASE      (VKI_F_LINUX_SPECIFIC_BASE + 0)
 #define VKI_F_GETLEASE      (VKI_F_LINUX_SPECIFIC_BASE + 1)
 
+#define VKI_F_CREATED_QUERY (VKI_F_LINUX_SPECIFIC_BASE + 4)
 #define VKI_F_CANCELLK      (VKI_F_LINUX_SPECIFIC_BASE + 5)
 
 #define VKI_F_DUPFD_CLOEXEC (VKI_F_LINUX_SPECIFIC_BASE + 6)