]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Comment tst-ofdlocks-compat expected failure in some Linux releases
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 10 Jul 2018 12:24:40 +0000 (09:24 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 10 Jul 2018 13:28:39 +0000 (10:28 -0300)
As pointed out in a libc-alpha thread [1], the misc/tst-ofdlocks-compat
may fail in some specific Linux releases.  This patch adds a comment
along with a link to discussion in the test source code.

No changes are expected.

* sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
a kernel issue which lead to test failure in some cases.

[1] https://sourceware.org/ml/libc-alpha/2018-07/msg00243.html

ChangeLog
sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c

index d18c24453f6577a0ac06c64046d4e8354679a73a..f21b5ad6ffd83ddd5a31aa4cc0afa656668da889 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-07-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
+
+       * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
+       a kernel issue which lead to test failure in some cases.
+
 2018-07-10  Florian Weimer  <fweimer@redhat.com>
 
        [BZ #23036]
index d1d00eb3fb9e756728d031c5ff2119570d2c199a..03c4abfeffde5bed0b5c949e4e9aa58e4aae6b5f 100644 (file)
@@ -40,6 +40,14 @@ do_prepare (int argc, char **argv)
 
 #define PREPARE do_prepare
 
+/* Linux between 4.13 and 4.15 return EOVERFLOW for LFS OFD locks usage
+   in compat mode (non-LFS ABI running on a LFS default kernel, such as
+   i386 on a x86_64 kernel or s390-32 on a s390-64 kernel) [1].  This is
+   a kernel issue because __NR_fcntl64 is the expected way to use OFD locks
+   (used on GLIBC for both fcntl and fcntl64).
+
+   [1] https://sourceware.org/ml/libc-alpha/2018-07/msg00243.html  */
+
 static int
 do_test (void)
 {