android_kernel_motorola_sm6375/arch/s390
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Heiko Carstens 76366b399a s390/vx: fix save/restore of fpu kernel context
[ Upstream commit e6b2dab41888332bf83f592131e7ea07756770a4 ]

The KERNEL_FPR mask only contains a flag for the first eight vector
registers. However floating point registers overlay parts of the first
sixteen vector registers.

This could lead to vector register corruption if a kernel fpu context uses
any of the vector registers 8 to 15 and is interrupted or calls a
KERNEL_FPR context. If that context uses also vector registers 8 to 15,
their contents will be corrupted on return.

Luckily this is currently not a real bug, since the kernel has only one
KERNEL_FPR user with s390_adjust_jiffies() and it is only using floating
point registers 0 to 2.

Fix this by using the correct bits for KERNEL_FPR.

Fixes: 7f79695cc1 ("s390/fpu: improve kernel_fpu_[begin|end]")
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Reviewed-by: Hendrik Brueckner <brueckner@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-08 11:29:43 +01:00
..
appldata
boot s390/ipl: add missing intersection check to ipl_report handling 2023-03-22 13:28:09 +01:00
configs
crypto
hypfs
include s390/vx: fix save/restore of fpu kernel context 2024-01-08 11:29:43 +01:00
kernel s390/ipl: add missing secure/has_secure file to ipl type 'unknown' 2023-09-23 10:59:56 +02:00
kvm KVM: s390: fix sthyi error handling 2023-08-11 11:53:55 +02:00
lib s390/uaccess: add missing earlyclobber annotations to __clear_user() 2023-04-05 11:16:46 +02:00
mm KVM: s390/mm: Properly reset no-dat 2023-12-13 18:18:16 +01:00
net
numa
oprofile
pci s390/pci: fix iommu bitmap allocation 2023-10-25 11:53:24 +02:00
purgatory
scripts
tools
Kbuild
Kconfig
Kconfig.debug
Makefile