linux/arch/s390/kernel/diag
Heiko Carstens b7577fe4c4 s390/diag: Add missing array_index_nospec() call to memtop_get_page_count()
'level' is user space controlled and used to read from an array. Add the
missing array_index_nospec() call to prevent speculative execution.

Cc: stable@vger.kernel.org
Fixes: 0d30871739 ("s390/diag: Add memory topology information via diag310")
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Reviewed-by: Mete Durlu <meted@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
2026-07-08 17:02:47 +02:00
..
diag_ioctl.h s390/diag: Add memory topology information via diag310 2025-01-15 13:59:08 +01:00
diag_misc.c s390/diag: Add memory topology information via diag310 2025-01-15 13:59:08 +01:00
diag.c s390: Use inline qualifier for all EX_TABLE and ALTERNATIVE inline assemblies 2025-03-18 17:13:51 +01:00
diag310.c s390/diag: Add missing array_index_nospec() call to memtop_get_page_count() 2026-07-08 17:02:47 +02:00
diag324.c s390: Remove superfluous newlines from inline assemblies 2025-09-29 13:52:08 +02:00
Makefile s390/diag: Add memory topology information via diag310 2025-01-15 13:59:08 +01:00