[UBUNTU 22.04] KVM: s390: unhandled guest LPSWEY instruction

Bug #2072641 reported by bugproxy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu on IBM z Systems
Triaged
Medium
Skipper Bug Screeners
linux (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Description: KVM: s390: unhandled guest LPSWEY instruction

Symptom: guest kernel oops on LPSWEY instruction

Problem: in rare cases like machine check injection with
               PSW disabled, all load PSW instructions are
               intercepted. LPSW and LPSWE are handled by KVM but
               not the new LPSWEY

Solution: Provide an LPSWEY handler in KVM.

Reproduction: hotplug a device while a CPU is disabled for machine
               checks, e.g. during early boot

Upstream-ID: 4c6abb7f7b349f00c0f7ed5045bf67759c012892

Preventive: yes
Reported: upstream
Component: kernel

bugproxy (bugproxy)
tags: added: architecture-s39064 bugnameltc-207398 severity-medium targetmilestone-inin---
Changed in ubuntu:
assignee: nobody → Skipper Bug Screeners (skipper-screen-team)
affects: ubuntu → linux (Ubuntu)
Revision history for this message
Frank Heimes (fheimes) wrote :

Would it be possible to get a test case aka reproducer on this (so forcing the system into such a rare case)? Since we would need a kind of a test for a potential SRU.

Revision history for this message
Frank Heimes (fheimes) wrote :

I unfortunately don't see that 4c6abb7f7b34 "KVM: s390: fix LPSWEY handling" got upstream marked as stable update, since in such a case it would have been picked by the Canonical kernel team automatically.

Changed in ubuntu-z-systems:
assignee: nobody → Skipper Bug Screeners (skipper-screen-team)
Changed in linux (Ubuntu):
assignee: Skipper Bug Screeners (skipper-screen-team) → nobody
Changed in ubuntu-z-systems:
importance: Undecided → Medium
Changed in linux (Ubuntu):
importance: Undecided → Medium
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2024-07-10 06:48 EDT-------
The bug was introduced with kernel 5.14

The available patch (see upstream-ID in comment above) has been added to stable for 5.15. which should help to get picked up by Jammy and later releases.

Revision history for this message
Frank Heimes (fheimes) wrote :

Great, that it was added to stable 5.15 - thx!

(In the upstream commit I only found:
Fixes: a3efa8429266 ("KVM: s390: gen_facilities: allow facilities 165, 193, 194 and 196")
would have also assumed to see a line starting with:
Cc: <email address hidden> # ...

But anyway, very happy that it comes to 5.15 via upstream !)

Frank Heimes (fheimes)
Changed in ubuntu-z-systems:
status: New → Triaged
Changed in linux (Ubuntu):
status: New → Triaged
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.