Files
linux/arch/s390/kernel
Sumanth Korikkar 49145bce53 s390/perf_cpum_cf: Add missing array_index_nospec() to __hw_perf_event_init()
ev variable is userspace controlled via event->attr.config and used
as an array index after bounds checking, but without speculation
barriers.

Add the missing array_index_nospec() call to prevent speculative
execution.

Cc: stable@vger.kernel.org
Fixes: 212188a596 ("[S390] perf: add support for s390x CPU counters")
Signed-off-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Reviewed-by: Ilya Leoshkevich <iii@linux.ibm.com>
Acked-by: Thomas Richter <tmricht@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
2026-07-15 17:35:42 +02:00
..
2026-07-08 17:02:48 +02:00
2025-11-17 11:10:38 +01:00
2026-03-03 08:35:07 -08:00
2025-11-24 11:45:21 +01:00
2025-11-24 11:45:21 +01:00
2025-11-24 11:45:21 +01:00
2023-07-27 13:11:35 +02:00
2026-02-25 16:46:07 +01:00
2025-11-25 15:28:07 +01:00
2026-05-26 08:15:41 +02:00
2025-11-24 11:45:21 +01:00
2025-11-24 11:45:21 +01:00
2025-11-17 11:10:38 +01:00
2025-11-24 11:45:21 +01:00
2025-11-25 15:28:07 +01:00
2025-11-06 14:17:27 +01:00
2025-11-24 11:45:21 +01:00
2026-05-26 08:15:41 +02:00
2025-11-17 11:10:38 +01:00
2026-02-04 17:00:10 +01:00