[GIT PULL] s390 fixes for 6.17-rc6

From: Alexander Gordeev

Date: Thu Sep 11 2025 - 10:34:08 EST


Hi Linus,

please pull s390 fixes for 6.17-rc6.

Thanks,
Alexander

The following changes since commit 3868f910440c47cd5d158776be4ba4e2186beda7:

s390/hypfs: Enable limited access during lockdown (2025-08-21 17:46:14 +0200)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git tags/s390-6.17-4

for you to fetch changes up to ce971233242b5391d99442271f3ca096fb49818d:

s390/cpum_cf: Deny all sampling events by counter PMU (2025-08-28 16:47:58 +0200)

----------------------------------------------------------------
s390 fixes for 6.17-rc6

- ptep_modify_prot_start() may be called in a loop, which might lead
to the preempt_count overflow due to the unnecessary preemption
disabling. Do not disable preemption to prevent the overflow

- Events of type PERF_TYPE_HARDWARE are not tested for sampling and
return -EOPNOTSUPP eventually. Instead, deny all sampling events by
CPUMF counter facility and return -ENOENT to allow other PMUs to be
tried

- The PAI PMU driver returns -EINVAL if an event out of its range.
That aborts a search for an alternative PMU driver. Instead, return
-ENOENT to allow other PMUs to be tried

----------------------------------------------------------------
Gerald Schaefer (1):
s390/mm: Prevent possible preempt_count overflow

Thomas Richter (2):
s390/pai: Deny all events not handled by this PMU
s390/cpum_cf: Deny all sampling events by counter PMU

arch/s390/kernel/perf_cpum_cf.c | 4 ++--
arch/s390/kernel/perf_pai_crypto.c | 4 ++--
arch/s390/kernel/perf_pai_ext.c | 2 +-
arch/s390/mm/pgtable.c | 2 --
4 files changed, 5 insertions(+), 7 deletions(-)