debug in ubuntu_kvm_unit_test timeout with "icebp" related test with J-realtime on openstack AMD64
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
New
|
Undecided
|
Unassigned | ||
linux-realtime (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
debug test in ubuntu_
Test log:
Running '/home/
BUILD_
timeout -k 1s --foreground 90s /usr/bin/
enabling apic
smp: waiting for 0 APs
PASS: DR4==DR6 with CR4.DE == 0
PASS: DR4 read got #UD with CR4.DE == 1
PASS: #BP
PASS: hw breakpoint (test that dr6.BS is not set)
PASS: hw breakpoint (test that dr6.BS is not cleared)
PASS: Single-step #DB basic test
PASS: Usermode Single-step #DB basic test
PASS: Single-step #DB on emulated instructions
PASS: Usermode Single-step #DB on emulated instructions
PASS: Single-step #DB w/ STI blocking
PASS: Usermode Single-step #DB w/ STI blocking
PASS: Single-step #DB w/ MOVSS blocking
PASS: Usermode Single-step #DB w/ MOVSS blocking
qemu-system-
FAIL debug (timeout; duration=90s)
I tried to bump the timeout to 240s but it's not helping, and there is no output from dmesg when running this test.
It's worthy to note that this test has passed with j/ibm, the whole test sequence should be like this:
DR4==DR6 with CR4.DE == 0
DR4 read got #UD with CR4.DE == 1
#BP
hw breakpoint (test that dr6.BS is not set)
hw breakpoint (test that dr6.BS is not cleared)
Single-step #DB basic test
Usermode Single-step #DB basic test
Single-step #DB on emulated instructions
Usermode Single-step #DB on emulated instructions
Single-step #DB w/ STI blocking
Usermode Single-step #DB w/ STI blocking
Single-step #DB w/ MOVSS blocking
Usermode Single-step #DB w/ MOVSS blocking
Single-Step + ICEBP #DB w/ MOVSS blocking
Usermode Single-Step + ICEBP #DB w/ MOVSS blocking
Single-step #DB w/ MOVSS blocking and DR7.GD=1
hw watchpoint (test that dr6.BS is not cleared)
hw watchpoint (test that dr6.BS is not set)
icebp
MOV SS + watchpoint + ICEBP
MOV SS + watchpoint + int $1
MOV SS + watchpoint + INT3
It's the "icebp" related tests causing this timeout.
If we comment out these 3 tests from kvm-unit-
Usermode Single-Step + ICEBP #DB w/ MOVSS blocking
icebp
MOV SS + watchpoint + ICEBP
The debug test can finish with one failure:
PASS: DR4==DR6 with CR4.DE == 0
PASS: DR4 read got #UD with CR4.DE == 1
PASS: #BP
PASS: hw breakpoint (test that dr6.BS is not set)
PASS: hw breakpoint (test that dr6.BS is not cleared)
PASS: Single-step #DB basic test
PASS: Usermode Single-step #DB basic test
PASS: Single-step #DB on emulated instructions
PASS: Usermode Single-step #DB on emulated instructions
PASS: Single-step #DB w/ STI blocking
PASS: Usermode Single-step #DB w/ STI blocking
PASS: Single-step #DB w/ MOVSS blocking
PASS: Usermode Single-step #DB w/ MOVSS blocking
FAIL: Single-step #DB w/ MOVSS blocking and DR7.GD=1
PASS: hw watchpoint (test that dr6.BS is not cleared)
PASS: hw watchpoint (test that dr6.BS is not set)
PASS: MOV SS + watchpoint + int $1
PASS: MOV SS + watchpoint + INT3
SUMMARY: 18 tests, 1 unexpected failures
FAIL debug (18 tests, 1 unexpected failures)
summary: |
- debug in ubuntu_kvm_unit_test timeout with J-realtime on openstack AMD64 + debug in ubuntu_kvm_unit_test timeout with "icebp" related test with + J-realtime on openstack AMD64 |
tags: | added: ubuntu-kvm-unit-tests |
The same issue still exist with the latest upstream kvm-unit-tests code (02d8befe99f8)
Not sure if it's worth it to dig deeper as this is running kvm unit tests inside a VM (on openstack).