* [LTP] open14 and openat03 failed on arm64 @ 2017-01-27 13:03 Naresh Kamboju 2017-01-27 13:21 ` Jan Stancek 2017-01-27 16:32 ` Jan Stancek 0 siblings, 2 replies; 6+ messages in thread From: Naresh Kamboju @ 2017-01-27 13:03 UTC (permalink / raw) To: ltp Hi LTP Team, Test cases open14.c and openat03.c failed on arm64 on latest Linux kernel 4.9.x. Have you noticed these failures on x86_64 and other architectures and which kernel version ? Test output: ----------------- create multiple directories, link files into them and check file permissions file mode read 0, but expected file mode read 0, but expected 7755 file mode read 0, but expected 1 file mode read 0, but expected 755 file mode read 0, but expected 644 file mode read 0, but expected 440 Linux version 4.9.0-rc6-00086-g3b404a5 (broonie@optimist) (gcc version 5.1.1 20150608 (Linaro GCC 5.1-2015.08) ) #1 SMP PREEMPT Tue Nov 22 04:14:54 GMT 2016 Test case is trimmed version of LTP, you can find test case here in this link [1] http://people.linaro.org/~naresh.kamboju/open14-arm64-test.c [2] http://people.linaro.org/~naresh.kamboju/open14-x86-test.c Best regards Naresh Kamboju ^ permalink raw reply [flat|nested] 6+ messages in thread
* [LTP] open14 and openat03 failed on arm64 2017-01-27 13:03 [LTP] open14 and openat03 failed on arm64 Naresh Kamboju @ 2017-01-27 13:21 ` Jan Stancek 2017-01-27 13:28 ` Naresh Kamboju 2017-01-27 13:40 ` Milosz Wasilewski 2017-01-27 16:32 ` Jan Stancek 1 sibling, 2 replies; 6+ messages in thread From: Jan Stancek @ 2017-01-27 13:21 UTC (permalink / raw) To: ltp ----- Original Message ----- > From: "Naresh Kamboju" <naresh.kamboju@linaro.org> > To: ltp@lists.linux.it > Cc: "Milosz Wasilewski" <milosz.wasilewski@linaro.org> > Sent: Friday, 27 January, 2017 2:03:27 PM > Subject: [LTP] open14 and openat03 failed on arm64 > > Hi LTP Team, > > Test cases open14.c and openat03.c failed on arm64 on latest Linux kernel > 4.9.x. There was a known glibc bug associated with these 2 tests, and also possible issue with tmpfs, see this for details: https://github.com/linux-test-project/ltp/issues/118 > > Have you noticed these failures on x86_64 and other architectures and > which kernel version ? > > Test output: > ----------------- > create multiple directories, link files into them > and check file permissions > file mode read 0, but expected > file mode read 0, but expected 7755 > file mode read 0, but expected 1 > file mode read 0, but expected 755 > file mode read 0, but expected 644 > file mode read 0, but expected 440 > > Linux version 4.9.0-rc6-00086-g3b404a5 (broonie@optimist) (gcc version > 5.1.1 20150608 (Linaro GCC 5.1-2015.08) ) #1 SMP PREEMPT Tue Nov 22 > 04:14:54 GMT 2016 > > Test case is trimmed version of LTP, > you can find test case here in this link > [1] http://people.linaro.org/~naresh.kamboju/open14-arm64-test.c > [2] http://people.linaro.org/~naresh.kamboju/open14-x86-test.c > > Best regards > Naresh Kamboju > > -- > Mailing list info: https://lists.linux.it/listinfo/ltp > ^ permalink raw reply [flat|nested] 6+ messages in thread
* [LTP] open14 and openat03 failed on arm64 2017-01-27 13:21 ` Jan Stancek @ 2017-01-27 13:28 ` Naresh Kamboju 2017-01-27 13:40 ` Milosz Wasilewski 1 sibling, 0 replies; 6+ messages in thread From: Naresh Kamboju @ 2017-01-27 13:28 UTC (permalink / raw) To: ltp Hi Jan, On 27 January 2017 at 18:51, Jan Stancek <jstancek@redhat.com> wrote: > > > ----- Original Message ----- >> From: "Naresh Kamboju" <naresh.kamboju@linaro.org> >> To: ltp@lists.linux.it >> Cc: "Milosz Wasilewski" <milosz.wasilewski@linaro.org> >> Sent: Friday, 27 January, 2017 2:03:27 PM >> Subject: [LTP] open14 and openat03 failed on arm64 >> >> Hi LTP Team, >> >> Test cases open14.c and openat03.c failed on arm64 on latest Linux kernel >> 4.9.x. > > There was a known glibc bug associated with these 2 tests, and also possible > issue with tmpfs, see this for details: > https://github.com/linux-test-project/ltp/issues/118 Thanks for pointing to open issue. It helps. - Naresh > >> >> Have you noticed these failures on x86_64 and other architectures and >> which kernel version ? >> >> Test output: >> ----------------- >> create multiple directories, link files into them >> and check file permissions >> file mode read 0, but expected >> file mode read 0, but expected 7755 >> file mode read 0, but expected 1 >> file mode read 0, but expected 755 >> file mode read 0, but expected 644 >> file mode read 0, but expected 440 >> >> Linux version 4.9.0-rc6-00086-g3b404a5 (broonie@optimist) (gcc version >> 5.1.1 20150608 (Linaro GCC 5.1-2015.08) ) #1 SMP PREEMPT Tue Nov 22 >> 04:14:54 GMT 2016 >> >> Test case is trimmed version of LTP, >> you can find test case here in this link >> [1] http://people.linaro.org/~naresh.kamboju/open14-arm64-test.c >> [2] http://people.linaro.org/~naresh.kamboju/open14-x86-test.c >> >> Best regards >> Naresh Kamboju >> >> -- >> Mailing list info: https://lists.linux.it/listinfo/ltp >> ^ permalink raw reply [flat|nested] 6+ messages in thread
* [LTP] open14 and openat03 failed on arm64 2017-01-27 13:21 ` Jan Stancek 2017-01-27 13:28 ` Naresh Kamboju @ 2017-01-27 13:40 ` Milosz Wasilewski 2017-01-27 13:45 ` Jan Stancek 1 sibling, 1 reply; 6+ messages in thread From: Milosz Wasilewski @ 2017-01-27 13:40 UTC (permalink / raw) To: ltp On 27 January 2017 at 13:21, Jan Stancek <jstancek@redhat.com> wrote: > > > ----- Original Message ----- >> From: "Naresh Kamboju" <naresh.kamboju@linaro.org> >> To: ltp@lists.linux.it >> Cc: "Milosz Wasilewski" <milosz.wasilewski@linaro.org> >> Sent: Friday, 27 January, 2017 2:03:27 PM >> Subject: [LTP] open14 and openat03 failed on arm64 >> >> Hi LTP Team, >> >> Test cases open14.c and openat03.c failed on arm64 on latest Linux kernel >> 4.9.x. > > There was a known glibc bug associated with these 2 tests, and also possible Do you mean this bug: https://sourceware.org/bugzilla/show_bug.cgi?id=17912 ? We tested with the patch applied. Best Regards, milosz > issue with tmpfs, see this for details: > https://github.com/linux-test-project/ltp/issues/118 > >> >> Have you noticed these failures on x86_64 and other architectures and >> which kernel version ? >> >> Test output: >> ----------------- >> create multiple directories, link files into them >> and check file permissions >> file mode read 0, but expected >> file mode read 0, but expected 7755 >> file mode read 0, but expected 1 >> file mode read 0, but expected 755 >> file mode read 0, but expected 644 >> file mode read 0, but expected 440 >> >> Linux version 4.9.0-rc6-00086-g3b404a5 (broonie@optimist) (gcc version >> 5.1.1 20150608 (Linaro GCC 5.1-2015.08) ) #1 SMP PREEMPT Tue Nov 22 >> 04:14:54 GMT 2016 >> >> Test case is trimmed version of LTP, >> you can find test case here in this link >> [1] http://people.linaro.org/~naresh.kamboju/open14-arm64-test.c >> [2] http://people.linaro.org/~naresh.kamboju/open14-x86-test.c >> >> Best regards >> Naresh Kamboju >> >> -- >> Mailing list info: https://lists.linux.it/listinfo/ltp >> ^ permalink raw reply [flat|nested] 6+ messages in thread
* [LTP] open14 and openat03 failed on arm64 2017-01-27 13:40 ` Milosz Wasilewski @ 2017-01-27 13:45 ` Jan Stancek 0 siblings, 0 replies; 6+ messages in thread From: Jan Stancek @ 2017-01-27 13:45 UTC (permalink / raw) To: ltp ----- Original Message ----- > From: "Milosz Wasilewski" <milosz.wasilewski@linaro.org> > To: "Jan Stancek" <jstancek@redhat.com> > Cc: "Naresh Kamboju" <naresh.kamboju@linaro.org>, ltp@lists.linux.it > Sent: Friday, 27 January, 2017 2:40:06 PM > Subject: Re: [LTP] open14 and openat03 failed on arm64 > > On 27 January 2017 at 13:21, Jan Stancek <jstancek@redhat.com> wrote: > > > > > > ----- Original Message ----- > >> From: "Naresh Kamboju" <naresh.kamboju@linaro.org> > >> To: ltp@lists.linux.it > >> Cc: "Milosz Wasilewski" <milosz.wasilewski@linaro.org> > >> Sent: Friday, 27 January, 2017 2:03:27 PM > >> Subject: [LTP] open14 and openat03 failed on arm64 > >> > >> Hi LTP Team, > >> > >> Test cases open14.c and openat03.c failed on arm64 on latest Linux kernel > >> 4.9.x. > > > > There was a known glibc bug associated with these 2 tests, and also > > possible > > Do you mean this bug: https://sourceware.org/bugzilla/show_bug.cgi?id=17912 ? > We tested with the patch applied. https://sourceware.org/bugzilla/show_bug.cgi?id=17523 > > Best Regards, > milosz > > > issue with tmpfs, see this for details: > > https://github.com/linux-test-project/ltp/issues/118 > > > >> > >> Have you noticed these failures on x86_64 and other architectures and > >> which kernel version ? > >> > >> Test output: > >> ----------------- > >> create multiple directories, link files into them > >> and check file permissions > >> file mode read 0, but expected > >> file mode read 0, but expected 7755 > >> file mode read 0, but expected 1 > >> file mode read 0, but expected 755 > >> file mode read 0, but expected 644 > >> file mode read 0, but expected 440 > >> > >> Linux version 4.9.0-rc6-00086-g3b404a5 (broonie@optimist) (gcc version > >> 5.1.1 20150608 (Linaro GCC 5.1-2015.08) ) #1 SMP PREEMPT Tue Nov 22 > >> 04:14:54 GMT 2016 > >> > >> Test case is trimmed version of LTP, > >> you can find test case here in this link > >> [1] http://people.linaro.org/~naresh.kamboju/open14-arm64-test.c > >> [2] http://people.linaro.org/~naresh.kamboju/open14-x86-test.c > >> > >> Best regards > >> Naresh Kamboju > >> > >> -- > >> Mailing list info: https://lists.linux.it/listinfo/ltp > >> > ^ permalink raw reply [flat|nested] 6+ messages in thread
* [LTP] open14 and openat03 failed on arm64 2017-01-27 13:03 [LTP] open14 and openat03 failed on arm64 Naresh Kamboju 2017-01-27 13:21 ` Jan Stancek @ 2017-01-27 16:32 ` Jan Stancek 1 sibling, 0 replies; 6+ messages in thread From: Jan Stancek @ 2017-01-27 16:32 UTC (permalink / raw) To: ltp ----- Original Message ----- > From: "Naresh Kamboju" <naresh.kamboju@linaro.org> > To: ltp@lists.linux.it > Cc: "Milosz Wasilewski" <milosz.wasilewski@linaro.org> > Sent: Friday, 27 January, 2017 2:03:27 PM > Subject: [LTP] open14 and openat03 failed on arm64 > > Hi LTP Team, > > Test cases open14.c and openat03.c failed on arm64 on latest Linux kernel > 4.9.x. > > Have you noticed these failures on x86_64 and other architectures and > which kernel version ? I tried it on x86, with recent upstream kernel on top of RHEL7.4, with tmp directory backed by xfs and tmpfs, no failures here: # uname -r 4.9.0-6.el7.x86_64 # ./openat03 openat03 0 TINFO : creating a file with O_TMPFILE flag openat03 0 TINFO : writing data to the file openat03 0 TINFO : file size is '4096' openat03 0 TINFO : looking for the file in '.' openat03 0 TINFO : file not found, OK openat03 0 TINFO : renaming '/tmp/opes6TpFu/#938519 (deleted)' -> 'tmpfile' openat03 0 TINFO : found a file: tmpfile openat03 1 TPASS : single file tests passed openat03 0 TINFO : create files in multiple directories openat03 0 TINFO : removing test directories openat03 0 TINFO : writing/reading temporary files openat03 0 TINFO : closing temporary files openat03 2 TPASS : multiple files tests passed openat03 0 TINFO : create multiple directories, link files into them openat03 0 TINFO : and check file permissions openat03 0 TINFO : remove files, directories openat03 3 TPASS : file permission tests passed # ./open14 open14 0 TINFO : creating a file with O_TMPFILE flag open14 0 TINFO : writing data to the file open14 0 TINFO : file size is '4096' open14 0 TINFO : looking for the file in '.' open14 0 TINFO : file not found, OK open14 0 TINFO : renaming '/tmp/opeFKTGFB/#34605340 (deleted)' -> 'tmpfile' open14 0 TINFO : found a file: tmpfile open14 1 TPASS : single file tests passed open14 0 TINFO : create files in multiple directories open14 0 TINFO : removing test directories open14 0 TINFO : writing/reading temporary files open14 0 TINFO : closing temporary files open14 2 TPASS : multiple files tests passed open14 0 TINFO : create multiple directories, link files into them open14 0 TINFO : and check file permissions open14 0 TINFO : remove files, directories open14 3 TPASS : file permission tests passed You example works too, with following change: # diff -u open14-x86-test.c 2.c --- open14-x86-test.c 2017-01-27 11:19:27.899997799 -0500 +++ 2.c 2017-01-27 11:29:57.042445879 -0500 @@ -63,7 +63,7 @@ perm = test_perms[i]; - fd[i] = open(".", O_TMPFILE | O_RDWR, S_IRUSR | S_IWUSR); + fd[i] = open(".", O_TMPFILE | O_RDWR, perm); link_tmp_file(fd[i]); create multiple directories, link files into them and check file permissions file mode read 0, but expected 0 file mode read 7755, but expected 7755 file mode read 1, but expected 1 file mode read 755, but expected 755 file mode read 644, but expected 644 file mode read 440, but expected 440 Regards, Jan > > Test output: > ----------------- > create multiple directories, link files into them > and check file permissions > file mode read 0, but expected > file mode read 0, but expected 7755 > file mode read 0, but expected 1 > file mode read 0, but expected 755 > file mode read 0, but expected 644 > file mode read 0, but expected 440 > > Linux version 4.9.0-rc6-00086-g3b404a5 (broonie@optimist) (gcc version > 5.1.1 20150608 (Linaro GCC 5.1-2015.08) ) #1 SMP PREEMPT Tue Nov 22 > 04:14:54 GMT 2016 > > Test case is trimmed version of LTP, > you can find test case here in this link > [1] http://people.linaro.org/~naresh.kamboju/open14-arm64-test.c > [2] http://people.linaro.org/~naresh.kamboju/open14-x86-test.c > > Best regards > Naresh Kamboju > > -- > Mailing list info: https://lists.linux.it/listinfo/ltp > ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-01-27 16:32 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2017-01-27 13:03 [LTP] open14 and openat03 failed on arm64 Naresh Kamboju 2017-01-27 13:21 ` Jan Stancek 2017-01-27 13:28 ` Naresh Kamboju 2017-01-27 13:40 ` Milosz Wasilewski 2017-01-27 13:45 ` Jan Stancek 2017-01-27 16:32 ` Jan Stancek
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.