kernel_optimize_test/arch/s390
Nico Boehr 74114d26e9 s390/perf: obtain sie_block from the right address
commit c9bfb460c3e4da2462e16b0f0b200990b36b1dd2 upstream.

Since commit 1179f170b6 ("s390: fix fpu restore in entry.S"), the
sie_block pointer is located at empty1[1], but in sie_block() it was
taken from empty1[0].

This leads to a random pointer being dereferenced, possibly causing
system crash.

This problem can be observed when running a simple guest with an endless
loop and recording the cpu-clock event:

  sudo perf kvm --guestvmlinux=<guestkernel> --guest top -e cpu-clock

With this fix, the correct guest address is shown.

Fixes: 1179f170b6 ("s390: fix fpu restore in entry.S")
Cc: stable@vger.kernel.org
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Nico Boehr <nrb@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-06-09 10:21:24 +02:00
..
appldata
boot
configs
crypto
hypfs s390/hypfs: include z/VM guests with access control group set 2022-02-01 17:25:38 +01:00
include s390/preempt: disable __preempt_count_add() optimization for PROFILE_ALL_BRANCHES 2022-06-09 10:20:54 +02:00
kernel s390/perf: obtain sie_block from the right address 2022-06-09 10:21:24 +02:00
kvm KVM: s390: Return error on SIDA memop on normal guest 2022-02-11 09:09:03 +01:00
lib
mm
net
oprofile
pci s390/pci: improve zpci_dev reference counting 2022-05-25 09:17:53 +02:00
purgatory
tools
Kbuild
Kconfig
Kconfig.debug
Makefile s390: disable -Warray-bounds 2022-05-18 10:23:45 +02:00