rdpru in ubuntu_kvm_unit_tests failed on B-4.15 node riccioli with FAIL: RDPRU raises #UD
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
Fix Released
|
Undecided
|
Po-Hsu Lin | ||
linux (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Po-Hsu Lin |
Bug Description
[Impact]
RDPRU, the Read Processor Register instruction of AMD Zen 2 processors
is used to give access to some processor registers that are typically
only accessible when the privilege level is zero.
rdpru test in ubuntu_
can be intercepted by the Hypervisor. Without this patchset, this test
will fail on our AMD Zen 2 system "riccioli" with:
FAIL: RDPRU raises #UD
[Fix]
* fb64f293 x86/cpufeatures: Add feature bit RDPRU on AMD
* 0cb8410b kvm: svm: Intercept RDPRU
We have these patches in newer releases already, only Bionic 4.15
requires this fix. The first patch needs to be backported with some
context adjustment, the second can be cherry-picked.
[Test]
Test kernel can be found here:
https:/
With the patched kernel, this rdpru test will pass on the target AMD
Zen 2 system.
$ sudo ./rdpru
BUILD_HEAD=d6421940
timeout -k 1s --foreground 90s /usr/bin/
-nodefaults -device pc-testdev -device isa-debug-
-vnc none -serial stdio -device pci-testdev -machine accel=kvm -kernel \
/tmp/tmp.XOMVxpyNnl -smp 1 -cpu max # -initrd /tmp/tmp.I2TbGXFiaZ
enabling apic
smp: waiting for 0 APs
PASS: RDPRU raises #UD
SUMMARY: 1 tests
PASS rdpru (1 tests)
And the rdpru flag will be available in cpuinfo:
$ grep -o rdpru /proc/cpuinfo
rdpru
[Where problems could occur]
This patchset will add a new feature bit RDPRU for AMD Zen 2. We can
expect to see new issues coming up when using this bit in the future.
[Original Bug Report]
Issue found on B-ibm-gt-
This can be reproduced with B-4.15.0-175 as well.
This failure is only visible on this node.
Running '/home/
BUILD_
timeout -k 1s --foreground 90s /usr/bin/
enabling apic
FAIL: RDPRU raises #UD
SUMMARY: 1 tests, 1 unexpected failures
FAIL rdpru (1 tests, 1 unexpected failures)
description: | updated |
Changed in linux (Ubuntu): | |
status: | New → Fix Released |
Changed in linux (Ubuntu Bionic): | |
status: | New → Confirmed |
description: | updated |
description: | updated |
description: | updated |
Changed in linux (Ubuntu Bionic): | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
Changed in ubuntu-kernel-tests: | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
status: | New → In Progress |
Changed in linux (Ubuntu Bionic): | |
status: | Confirmed → In Progress |
description: | updated |
description: | updated |
Changed in linux (Ubuntu Bionic): | |
status: | In Progress → Fix Committed |
Test passed on this node with newer kernel (focal).