[Ubuntu 21.04] s390/vtime: fix increased steal time accounting
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu on IBM z Systems |
Fix Released
|
High
|
Skipper Bug Screeners | ||
linux (Ubuntu) |
Fix Released
|
High
|
Canonical Kernel Team | ||
Focal |
Fix Released
|
High
|
Canonical Kernel Team | ||
Groovy |
Fix Released
|
High
|
Canonical Kernel Team | ||
Hirsute |
Fix Released
|
High
|
Canonical Kernel Team |
Bug Description
SRU Justification:
==================
[Impact]
* The reported steal time on s390x is erroneously increasing and therefore broken.
* This problem got introduced with commit 152e9b8676c6e
("s390/vtime: steal time exponential moving average") - upstream with v5.1
[Fix]
* d54cb7d54877d52
[Test Case]
* An IBM Z or LinuxONE systems, installed with Ubuntu Server 20.04, 20.10 and 21.04 on LPAR, are needed.
* The system needs to be configured as KVM host with one or more KVM guests.
* Now put significant workload on the guest(s), so that the hypervisor starts to 'steal time'.
This can be best forced by having only very limited CPU resources for the hypervisor itself.
* Start monitoring the steal time, that is reported at /proc/stat,
but can be more easily verified with tools like vmstat or even top.
* If the steal time starts ever growing (exponentially), the situation is broken.
* In case the steal time stays relatively constant,
or grows only very limited after a ramp up phase of some minutes,
or just oscillates around a certain value, a fixed/patched kernel is in use.
[Regression Potential]
* The patch only changes the single line that calculates: account_steal_time
* In case the account_steal_time calculation is still broken after the modification,
the steal time is just again not reported correctly on s390x,
but maybe in a different way (rather than exponentially growing).
* But it will not further harm virtualization on s390x systems.
* The modification is very limited with that one line change.
* The commit got upstream accepted with 5.12-rc4.
[Other]
* Since the patch is needed for kernel higher than 5.1 and got upstream accepted with 5.12-rc4,
hirsute, groovy and focal are affected.
* The upstream commit can be cleanly cherry-picked from all three affected Ubuntu releases.
__________
Description: s390/vtime: fix increased steal time accounting
Symptom: Increased steal time values.
Problem: Commit 152e9b8676c6e ("s390/vtime: steal time exponential
Solution: Fix this by changing it back to "cputime_
Reproduction: -
Upstream-ID: d54cb7d54877d52
Stable tagged : kernel 5.1.
Therefore only to be applyable for focal, groovy, hirsuite.
Due to stable tag integration , only for integration checking..
CVE References
tags: | added: architecture-s39064 bugnameltc-192225 severity-high targetmilestone-inin2104 |
Changed in ubuntu: | |
assignee: | nobody → Skipper Bug Screeners (skipper-screen-team) |
affects: | ubuntu → linux (Ubuntu) |
Changed in ubuntu-z-systems: | |
assignee: | nobody → Skipper Bug Screeners (skipper-screen-team) |
importance: | Undecided → High |
status: | New → Triaged |
Changed in linux (Ubuntu Hirsute): | |
assignee: | Skipper Bug Screeners (skipper-screen-team) → Frank Heimes (fheimes) |
Changed in linux (Ubuntu Focal): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Groovy): | |
status: | In Progress → Fix Committed |
Changed in ubuntu-z-systems: | |
status: | Triaged → Fix Committed |
summary: |
- [UBUNUT 21.04] s390/vtime: fix increased steal time accounting + [Ubuntu 21.04] s390/vtime: fix increased steal time accounting |
Changed in ubuntu-z-systems: | |
status: | Fix Committed → Fix Released |
Test builds for hirsute, groovy and focal: https:/ /launchpad. net/~fheimes/ +archive/ ubuntu/ lp1921498/ +packages