stime01 from ubuntu_ltp_syscalls failed on D Power9

Bug #1845620 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Fix Released
Undecided
Thadeu Lima de Souza Cascardo
linux (Ubuntu)
Invalid
Undecided
Unassigned
Disco
Invalid
Undecided
Unassigned

Bug Description

This failure can only be found on Disco Power9, passed on other arches.
Probably a glitch that similar to the hwclock test failure (bug 1802233)

 tag=stime01 stime=1568943645 dur=-22 exit=exited stat=1 core=no cu=0 cs=0
 startup='Fri Sep 20 01:40:45 2019'
 tst_test.c:1118: INFO: Timeout per run is 0h 05m 00s
 stime_var.h:45: INFO: Testing libc stime()
 stime01.c:46: INFO: pt.tv_sec: 1568943675
 stime01.c:47: PASS: system time was set to 1568943675
 tst_test.c:1118: INFO: Timeout per run is 0h 05m 00s
 stime_var.h:48: INFO: Testing SYS_stime syscall
 stime01.c:51: FAIL: system time not set to 1568943705 (got: 1568943660)
 tst_test.c:1118: INFO: Timeout per run is 0h 05m 00s
 stime_var.h:51: INFO: Testing SYS_settimeofday syscall
 stime01.c:46: INFO: pt.tv_sec: 1568943690
 stime01.c:47: PASS: system time was set to 1568943690

 Summary:
 passed 2
 failed 1
 skipped 0
 warnings 0

Po-Hsu Lin (cypressyew)
tags: added: disco ppc64el sru-20190902
tags: added: ubuntu-ltp-syscalls
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1845620

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Changed in linux (Ubuntu Disco):
status: New → Incomplete
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Issue found on D-KVM (5.0.0-1021.22-kvm)

 startup='Wed Oct 23 14:17:20 2019'
 tst_test.c:1137: INFO: Timeout per run is 0h 05m 00s
 stime_var.h:45: INFO: Testing libc stime()
 stime01.c:51: FAIL: system time not set to 1571840270 (got: 1571840240)
 tst_test.c:1137: INFO: Timeout per run is 0h 05m 00s
 stime_var.h:48: INFO: Testing SYS_stime syscall
 stime_var.h:27: CONF: syscall(-1) __NR_stime not supported
 tst_test.c:1137: INFO: Timeout per run is 0h 05m 00s
 stime_var.h:51: INFO: Testing SYS_settimeofday syscall
 stime01.c:46: INFO: pt.tv_sec: 1571840270
 stime01.c:47: PASS: system time was set to 1571840270

 Summary:
 passed 1
 failed 1
 skipped 0
 warnings 0

tags: added: sru-20191021
tags: added: amd64 linux-kvm
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

This issue can be found on B-GKE-5.0

but all 2 tests were failed:
 startup='Sat Nov 30 01:03:14 2019'
 tst_test.c:1217: INFO: Timeout per run is 0h 05m 00s
 stime_var.h:45: INFO: Testing libc stime()
 stime01.c:51: FAIL: system time not set to 1575075824 (got: 1575075794)
 tst_test.c:1217: INFO: Timeout per run is 0h 05m 00s
 stime_var.h:48: INFO: Testing SYS_stime syscall
 stime_var.h:27: CONF: syscall(-1) __NR_stime not supported
 tst_test.c:1217: INFO: Timeout per run is 0h 05m 00s
 stime_var.h:51: INFO: Testing SYS_settimeofday syscall
 stime01.c:51: FAIL: system time not set to 1575075824 (got: 1575075794)

 Summary:
 passed 0
 failed 2
 skipped 0
 warnings 0

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Can be found on Eoan generic (5.3.0-25.27) P9 as well. This issue was not spotted on Eoan P8.

tags: added: sru-20191202
Revision history for this message
Thadeu Lima de Souza Cascardo (cascardo) wrote :

Not sure why I couldn't reproduce it on my amd64, but this does not fail after I stop systemd-timesyncd. Well, you managed to find it on GKE, which is not ppc64el, so good enough.

stime and settimeofday should not be fiddling with hwclock, only system time. Maybe we should stop systemd-timesync for anything that has time in it?

Cascardo.

Changed in linux (Ubuntu Disco):
status: Incomplete → Invalid
Changed in linux (Ubuntu):
status: Incomplete → Invalid
Changed in ubuntu-kernel-tests:
status: New → In Progress
assignee: nobody → Thadeu Lima de Souza Cascardo (cascardo)
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Sounds like a good plan, please feel free to sent out the patch for ACT (or even better, to the upstream LTP project!)

Thanks

Revision history for this message
Thadeu Lima de Souza Cascardo (cascardo) wrote :

Well, we were already doing it on autotest-client-tests side, so I sent a patch that sfeole "acked", but didn't apply. So, I just applied it. Please, watch if future runs are still broken anyhow.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

I have the patch tested on Power9 node "baltar" with Disco kernel (5.0.0-37).
It's still failing with this stime01 test.

 startup='Wed Dec 25 10:25:31 2019'
 tst_test.c:1217: INFO: Timeout per run is 0h 05m 00s
 stime_var.h:45: INFO: Testing libc stime()
 stime01.c:46: INFO: pt.tv_sec: 1577269561
 stime01.c:47: PASS: system time was set to 1577269561
 tst_test.c:1217: INFO: Timeout per run is 0h 05m 00s
 stime_var.h:48: INFO: Testing SYS_stime syscall
 stime01.c:51: FAIL: system time not set to 1577269591 (got: 1577269531)
 tst_test.c:1217: INFO: Timeout per run is 0h 05m 00s
 stime_var.h:51: INFO: Testing SYS_settimeofday syscall
 stime01.c:46: INFO: pt.tv_sec: 1577269561
 stime01.c:47: PASS: system time was set to 1577269561

 Summary:
 passed 2
 failed 1
 skipped 0
 warnings 0

Revision history for this message
Thadeu Lima de Souza Cascardo (cascardo) wrote :

Do you have a link to the entire result?

Cascardo.

Revision history for this message
Thadeu Lima de Souza Cascardo (cascardo) wrote :

Found out that we needed to fix how to verify the lines, so I pushed such a fix.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

With the new patch landed, a manual test on Power9 shows positive result on stime01.
I think this can be closed now.
(Please feel free to re-open it if you still seeing this somewhere else)
Thanks!

Changed in ubuntu-kernel-tests:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.