[Kernel-packages] [Bug 1977962] Re: [UBUNTU 21.10] s390/perf: obtain sie_block from the right address

2022-08-31 Thread Frank Heimes
Updating to Fix Released, because LP#1981864 was updated to Fix
Released.

** Changed in: linux (Ubuntu Jammy)
   Status: Fix Committed => Fix Released

** Changed in: ubuntu-z-systems
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1977962

Title:
  [UBUNTU 21.10] s390/perf: obtain sie_block from the right address

Status in Ubuntu on IBM z Systems:
  Fix Released
Status in linux package in Ubuntu:
  Invalid
Status in linux source package in Jammy:
  Fix Released

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=endless.elf top -e cpu-clock
 
 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/kernel/perf_event.c, but since 
 1179f170b6f0 ("s390: fix fpu restore in entry.S")
 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 
the guest, for example using this command:

perf kvm --guest --guestvmlinux=endless.elf top -e
  cpu-clock

 4. The reported guest instruction addresses don't match
the loop's instruction address or the system crashes.

  Upstream-ID:   c9bfb460c3e4da2462e16b0f0b200990b36b1dd2

  BBPF Probl.ID: 198450
  Preventive:yes
  Reported:  -
  SupportTicket: -
  Reference: -
  Date:  2022-06-02
  Author:n...@linux.ibm.com
  Component: kernel
  Link:  
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c9bfb460c3e4da2462e16b0f0b200990b36b1dd2

  Problem occurs / affects impish and jammy

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/1977962/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1977962] Re: [UBUNTU 21.10] s390/perf: obtain sie_block from the right address

2022-08-10 Thread Frank Heimes
** Changed in: linux (Ubuntu Jammy)
   Status: In Progress => Fix Committed

** Changed in: ubuntu-z-systems
   Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1977962

Title:
  [UBUNTU 21.10] s390/perf: obtain sie_block from the right address

Status in Ubuntu on IBM z Systems:
  Fix Committed
Status in linux package in Ubuntu:
  Invalid
Status in linux source package in Jammy:
  Fix Committed

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=endless.elf top -e cpu-clock
 
 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/kernel/perf_event.c, but since 
 1179f170b6f0 ("s390: fix fpu restore in entry.S")
 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 
the guest, for example using this command:

perf kvm --guest --guestvmlinux=endless.elf top -e
  cpu-clock

 4. The reported guest instruction addresses don't match
the loop's instruction address or the system crashes.

  Upstream-ID:   c9bfb460c3e4da2462e16b0f0b200990b36b1dd2

  BBPF Probl.ID: 198450
  Preventive:yes
  Reported:  -
  SupportTicket: -
  Reference: -
  Date:  2022-06-02
  Author:n...@linux.ibm.com
  Component: kernel
  Link:  
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c9bfb460c3e4da2462e16b0f0b200990b36b1dd2

  Problem occurs / affects impish and jammy

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/1977962/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1977962] Re: [UBUNTU 21.10] s390/perf: obtain sie_block from the right address

2022-07-19 Thread Frank Heimes
Aligning to upstream stable ticket LP#1981864 for jammy, which is 'In
Progress' now.


** Changed in: ubuntu-z-systems
   Status: Triaged => In Progress

** Changed in: linux (Ubuntu Jammy)
   Status: Triaged => In Progress

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1977962

Title:
  [UBUNTU 21.10] s390/perf: obtain sie_block from the right address

Status in Ubuntu on IBM z Systems:
  In Progress
Status in linux package in Ubuntu:
  Invalid
Status in linux source package in Jammy:
  In Progress

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=endless.elf top -e cpu-clock
 
 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/kernel/perf_event.c, but since 
 1179f170b6f0 ("s390: fix fpu restore in entry.S")
 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 
the guest, for example using this command:

perf kvm --guest --guestvmlinux=endless.elf top -e
  cpu-clock

 4. The reported guest instruction addresses don't match
the loop's instruction address or the system crashes.

  Upstream-ID:   c9bfb460c3e4da2462e16b0f0b200990b36b1dd2

  BBPF Probl.ID: 198450
  Preventive:yes
  Reported:  -
  SupportTicket: -
  Reference: -
  Date:  2022-06-02
  Author:n...@linux.ibm.com
  Component: kernel
  Link:  
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c9bfb460c3e4da2462e16b0f0b200990b36b1dd2

  Problem occurs / affects impish and jammy

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/1977962/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1977962] Re: [UBUNTU 21.10] s390/perf: obtain sie_block from the right address

2022-07-14 Thread Frank Heimes
This commit appeared now in v5.15.46, which will be handled in the next
weeks by the kernel team.

But I change the title to 22.04, since 21.10 is EOL as of today, and this patch 
is not in jammy.
It got upstream accepted with v5.19-rc1 hence no need to patch kinetic, since 
kinetic's target kernel is 5.19.

** Changed in: ubuntu-z-systems
   Status: New => Triaged

** Changed in: linux (Ubuntu)
   Status: New => Triaged

** Also affects: linux (Ubuntu Jammy)
   Importance: Undecided
   Status: New

** Changed in: linux (Ubuntu Jammy)
   Status: New => Triaged

** Changed in: linux (Ubuntu)
   Status: Triaged => Invalid

** Changed in: linux (Ubuntu Jammy)
 Assignee: (unassigned) => Skipper Bug Screeners (skipper-screen-team)

** Changed in: linux (Ubuntu)
 Assignee: Skipper Bug Screeners (skipper-screen-team) => (unassigned)

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1977962

Title:
  [UBUNTU 21.10] s390/perf: obtain sie_block from the right address

Status in Ubuntu on IBM z Systems:
  Triaged
Status in linux package in Ubuntu:
  Invalid
Status in linux source package in Jammy:
  Triaged

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=endless.elf top -e cpu-clock
 
 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/kernel/perf_event.c, but since 
 1179f170b6f0 ("s390: fix fpu restore in entry.S")
 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 
the guest, for example using this command:

perf kvm --guest --guestvmlinux=endless.elf top -e
  cpu-clock

 4. The reported guest instruction addresses don't match
the loop's instruction address or the system crashes.

  Upstream-ID:   c9bfb460c3e4da2462e16b0f0b200990b36b1dd2

  BBPF Probl.ID: 198450
  Preventive:yes
  Reported:  -
  SupportTicket: -
  Reference: -
  Date:  2022-06-02
  Author:n...@linux.ibm.com
  Component: kernel
  Link:  
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c9bfb460c3e4da2462e16b0f0b200990b36b1dd2

  Problem occurs / affects impish and jammy

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/1977962/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1977962] Re: [UBUNTU 21.10] s390/perf: obtain sie_block from the right address

2022-06-09 Thread Frank Heimes
I'm glad to see that commit:
c9bfb460c3e4 c9bfb460c3e4da2462e16b0f0b200990b36b1dd2 "s390/perf: obtain 
sie_block from the right address"
is tagged (upstream) for stable updates with:
Cc: sta...@vger.kernel.org

With that, this commit will automatically be picked up by the Ubuntu kernel 
teams
"Focal update: v5.4.xxx upstream stable release" process.

This hasn't happened yet with the latest ticket:
"Focal update: v5.4.191 upstream stable release" - LP#1976116
but will be soon.

This LP bug will be used for tracking the status.

** Tags added: tracking-upstream-stable

** Changed in: linux (Ubuntu)
   Importance: Undecided => High

** Tags removed: tracking-upstream-stable
** Tags added: upstream-stable

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1977962

Title:
  [UBUNTU 21.10] s390/perf: obtain sie_block from the right address

Status in Ubuntu on IBM z Systems:
  New
Status in linux package in Ubuntu:
  New

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=endless.elf top -e cpu-clock
 
 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/kernel/perf_event.c, but since 
 1179f170b6f0 ("s390: fix fpu restore in entry.S")
 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 
the guest, for example using this command:

perf kvm --guest --guestvmlinux=endless.elf top -e
  cpu-clock

 4. The reported guest instruction addresses don't match
the loop's instruction address or the system crashes.

  Upstream-ID:   c9bfb460c3e4da2462e16b0f0b200990b36b1dd2

  BBPF Probl.ID: 198450
  Preventive:yes
  Reported:  -
  SupportTicket: -
  Reference: -
  Date:  2022-06-02
  Author:n...@linux.ibm.com
  Component: kernel
  Link:  
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c9bfb460c3e4da2462e16b0f0b200990b36b1dd2

  Problem occurs / affects impish and jammy

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/1977962/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1977962] Re: [UBUNTU 21.10] s390/perf: obtain sie_block from the right address

2022-06-08 Thread Frank Heimes
** Also affects: ubuntu-z-systems
   Importance: Undecided
   Status: New

** Changed in: ubuntu-z-systems
 Assignee: (unassigned) => Skipper Bug Screeners (skipper-screen-team)

** Changed in: ubuntu-z-systems
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1977962

Title:
  [UBUNTU 21.10] s390/perf: obtain sie_block from the right address

Status in Ubuntu on IBM z Systems:
  New
Status in linux package in Ubuntu:
  New

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=endless.elf top -e cpu-clock
 
 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/kernel/perf_event.c, but since 
 1179f170b6f0 ("s390: fix fpu restore in entry.S")
 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 
the guest, for example using this command:

perf kvm --guest --guestvmlinux=endless.elf top -e
  cpu-clock

 4. The reported guest instruction addresses don't match
the loop's instruction address or the system crashes.

  Upstream-ID:   c9bfb460c3e4da2462e16b0f0b200990b36b1dd2

  BBPF Probl.ID: 198450
  Preventive:yes
  Reported:  -
  SupportTicket: -
  Reference: -
  Date:  2022-06-02
  Author:n...@linux.ibm.com
  Component: kernel
  Link:  
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c9bfb460c3e4da2462e16b0f0b200990b36b1dd2

  Problem occurs / affects impish and jammy

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/1977962/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp