[UBUNTU 21.10] s390/perf: obtain sie_block from the right address
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu on IBM z Systems |
Fix Released
|
High
|
Skipper Bug Screeners | ||
linux (Ubuntu) |
Invalid
|
High
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Skipper Bug Screeners |
Bug Description
Description: s390/perf: obtain sie_block from the right address
Symptom: Read from unitialized stack memory, incorrect guest
perf data reported, possibly system crash.
Problem: When perf is instructed to record a software-based event and
to trace the guest, i.e. using the following command:
perf kvm --guest --guestvmlinux=
The reported guest instruction pointer is inaccurate or
the system may crash.
This is caused by the sie_block being taken from empty1[0]
in sie_block() in arch/s390/
it resides at empty1[1].
Solution: Obtain sie_block from the right address in sie_block().
Reproduction: 1. Start a KVM guest executing an endless loop.
2. Determine the instruction address of the loop.
3. Start perf recording for any software event and trace
4. The reported guest instruction addresses don't match
Upstream-ID: c9bfb460c3e4da2
BBPF Probl.ID: 198450
Preventive: yes
Reported: -
SupportTicket: -
Reference: -
Date: 2022-06-02
Author: <email address hidden>
Component: kernel
Link: https:/
Problem occurs / affects impish and jammy
tags: | added: architecture-s39064 bugnameltc-198476 severity-high targetmilestone-inin2110 |
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 |
Changed in linux (Ubuntu Jammy): | |
status: | In Progress → Fix Committed |
Changed in ubuntu-z-systems: | |
status: | In Progress → Fix Committed |
------- Comment From <email address hidden> 2022-06-09 03:12 EDT-------
*** Bug 198475 has been marked as a duplicate of this bug. ***