← Back to team overview

canonical-ubuntu-qa team mailing list archive

[Bug 2095491] [NEW] ubuntu_kvm_unit_tests/debug failed with "Single-step #DB w/ STI; HLT"

 

Public bug reported:

This is a new test case added with our kvm-unit-test fork update in last
December [1]

Issue found with Openstack AMD64 VM 5.4.0-207.227

Test failed with:
  FAIL: Single-step #DB w/ STI;HLT

Complete test output:
  Running '/home/ubuntu/autotest/client/tmp/ubuntu_kvm_unit_tests/src/kvm-unit-tests/tests/debug'
  BUILD_HEAD=5e4e1811
  timeout -k 1s --foreground 90s /usr/bin/qemu-system-x86_64 --no-reboot -nodefaults -device pc-testdev -device isa-debug-exit,iobase=0xf4,iosize=0x4 -vnc none -serial stdio -device pci-testdev -machine accel=kvm -kernel /tmp/tmp.C90VbbD19C -smp 1 # -initrd /tmp/tmp.bZMMRoRU1O
  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
  PASS: Single-Step + ICEBP #DB w/ MOVSS blocking
  PASS: Usermode Single-Step + ICEBP #DB w/ MOVSS blocking
  PASS: Single-step #DB w/ MOVSS blocking and DR7.GD=1
  FAIL: Single-step #DB w/ STI;HLT
  PASS: hw watchpoint (test that dr6.BS is not cleared)
  PASS: hw watchpoint (test that dr6.BS is not set)
  PASS: icebp
  PASS: MOV SS + watchpoint + ICEBP
  PASS: MOV SS + watchpoint + int $1
  PASS: MOV SS + watchpoint + INT3
  SUMMARY: 23 tests, 1 unexpected failures
  FAIL debug (23 tests, 1 unexpected failures)

I can reproduce this with 5.4.0-204 on an Openstack AMD64 VM as well.

[1] https://lists.ubuntu.com/archives/kernel-
team/2024-December/156125.html

** Affects: ubuntu-kernel-tests
     Importance: Undecided
         Status: New


** Tags: 5.4 amd64 focal sru-20250113 ubuntu-kvm-unit-tests

-- 
You received this bug notification because you are a member of Canonical
Platform QA Team, which is subscribed to ubuntu-kernel-tests.
https://bugs.launchpad.net/bugs/2095491

Title:
  ubuntu_kvm_unit_tests/debug failed with "Single-step #DB w/ STI;HLT"

Status in ubuntu-kernel-tests:
  New

Bug description:
  This is a new test case added with our kvm-unit-test fork update in
  last December [1]

  Issue found with Openstack AMD64 VM 5.4.0-207.227

  Test failed with:
    FAIL: Single-step #DB w/ STI;HLT

  Complete test output:
    Running '/home/ubuntu/autotest/client/tmp/ubuntu_kvm_unit_tests/src/kvm-unit-tests/tests/debug'
    BUILD_HEAD=5e4e1811
    timeout -k 1s --foreground 90s /usr/bin/qemu-system-x86_64 --no-reboot -nodefaults -device pc-testdev -device isa-debug-exit,iobase=0xf4,iosize=0x4 -vnc none -serial stdio -device pci-testdev -machine accel=kvm -kernel /tmp/tmp.C90VbbD19C -smp 1 # -initrd /tmp/tmp.bZMMRoRU1O
    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
    PASS: Single-Step + ICEBP #DB w/ MOVSS blocking
    PASS: Usermode Single-Step + ICEBP #DB w/ MOVSS blocking
    PASS: Single-step #DB w/ MOVSS blocking and DR7.GD=1
    FAIL: Single-step #DB w/ STI;HLT
    PASS: hw watchpoint (test that dr6.BS is not cleared)
    PASS: hw watchpoint (test that dr6.BS is not set)
    PASS: icebp
    PASS: MOV SS + watchpoint + ICEBP
    PASS: MOV SS + watchpoint + int $1
    PASS: MOV SS + watchpoint + INT3
    SUMMARY: 23 tests, 1 unexpected failures
    FAIL debug (23 tests, 1 unexpected failures)

  I can reproduce this with 5.4.0-204 on an Openstack AMD64 VM as well.

  [1] https://lists.ubuntu.com/archives/kernel-
  team/2024-December/156125.html

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/2095491/+subscriptions