settimeofday01 in ubuntu_ltp_syscalls failed on KVM kernels

Bug #1833905 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Fix Released
Undecided
Unassigned
linux-kvm (Ubuntu)
Invalid
Undecided
Kai-Heng Feng

Bug Description

Issue found on C-KVM, from the test case content, these two tests are:
 * Call settimeofday and verify the time was changed.
 * Call settimeofday with invalid Args and verify that the call fails.

<<<test_start>>>
tag=settimeofday01 stime=1561358482
cmdline="settimeofday01"
contacts=""
analysis=exit
<<<test_output>>>
settimeofday01 1 TFAIL : settimeofday01.c:124: Test condition 1 failed
settimeofday01 2 TPASS : Test condition 2 successful
<<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=1 corefile=no
cutime=0 cstime=0
<<<test_end>>>

ProblemType: Bug
DistroRelease: Ubuntu 18.10
Package: linux-image-4.18.0-1015-kvm 4.18.0-1015.15
ProcVersionSignature: User Name 4.18.0-1015.15-kvm 4.18.20
Uname: Linux 4.18.0-1015-kvm x86_64
ApportVersion: 2.20.10-0ubuntu13.3
Architecture: amd64
Date: Mon Jun 24 06:41:26 2019
SourcePackage: linux-kvm
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
tags: added: sru-20190603 ubuntu-ltp-syscalls
Po-Hsu Lin (cypressyew)
description: updated
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

It looks like if we run this test repeatedly, most of the time it will pass:

$ sudo ./settimeofday01 -i 1000 | grep FAIL | wc -l
10
$ sudo ./settimeofday01 -i 1000 | grep FAIL | wc -l
8
$ sudo ./settimeofday01 -i 1000 | grep FAIL | wc -l
10

This might be able to explain why sometimes we cannot see this failure in the test report.
Not sure what is the cause of this

Po-Hsu Lin (cypressyew)
tags: added: linux-kvm
Po-Hsu Lin (cypressyew)
tags: added: bionic
Changed in ubuntu-kernel-tests:
assignee: nobody → Kai-Heng Feng (kaihengfeng)
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Spotted on kvm-4.15.0-1028 as well.

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Not seeing this issue on Bionic guest w/ 4.15-kvm inside Bionic host w/ v4.15-generic host.:
$ sudo ./testcases/kernel/syscalls/settimeofday/settimeofday01 -i 10000000 | grep FAIL | wc -l
0

Maybe the host in question is also flaky?

Changed in ubuntu-kernel-tests:
assignee: Kai-Heng Feng (kaihengfeng) → nobody
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

* Tested with the 4.15 generic kernel on the KVM node, test failed
* Tested with the 4.4 generic kernel on the KVM host, test passed with 10000000 iterations.

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

I'll find a system to test both 4.4 and 4.15 to make sure it's not hardware related.

Changed in ubuntu-kernel-tests:
assignee: nobody → Kai-Heng Feng (kaihengfeng)
Changed in linux-kvm (Ubuntu):
assignee: nobody → Kai-Heng Feng (kaihengfeng)
Changed in ubuntu-kernel-tests:
assignee: Kai-Heng Feng (kaihengfeng) → nobody
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Issue could be found on 5.0 GCP, instance "f1-micro"

Po-Hsu Lin (cypressyew)
tags: added: gcp sru-20191021
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

I tried different combinations of host/guest kernels, but I don't see this issue.

Are "KVM node" and "KVM host" referred in comment #5 different?

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

Hi,

I think the KVM host referred here is our KVM pod (bare metal), and the KVM node is a KVM instance created on that pod.

We have the host upgraded to 4.15 recently, let me see if I can try this again.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Changed in linux-kvm (Ubuntu):
status: New → Invalid
Changed in ubuntu-kernel-tests:
status: New → 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.