android_kernel_motorola_sm6375/arch/s390
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Claudio Imbrenda 37f3dafee1 s390/uv: Panic for set and remove shared access UVC errors
[ Upstream commit cff59d8631e1409ffdd22d9d717e15810181b32c ]

The return value uv_set_shared() and uv_remove_shared() (which are
wrappers around the share() function) is not always checked. The system
integrity of a protected guest depends on the Share and Unshare UVCs
being successful. This means that any caller that fails to check the
return value will compromise the security of the protected guest.

No code path that would lead to such violation of the security
guarantees is currently exercised, since all the areas that are shared
never get unshared during the lifetime of the system. This might
change and become an issue in the future.

The Share and Unshare UVCs can only fail in case of hypervisor
misbehaviour (either a bug or malicious behaviour). In such cases there
is no reasonable way forward, and the system needs to panic.

This patch replaces the return at the end of the share() function with
a panic, to guarantee system integrity.

Fixes: 5abb9351df ("s390/uv: introduce guest side ultravisor code")
Signed-off-by: Claudio Imbrenda <[email protected]>
Reviewed-by: Christian Borntraeger <[email protected]>
Reviewed-by: Steffen Eiden <[email protected]>
Reviewed-by: Janosch Frank <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Message-ID: <[email protected]>
[[email protected]: Fixed up patch subject]
Signed-off-by: Janosch Frank <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2024-09-04 13:14:51 +02:00
..
appldata
boot s390/ipl: add missing intersection check to ipl_report handling 2023-03-22 13:28:09 +01:00
configs locking/refcount: Consolidate implementations of refcount_t 2022-07-29 17:14:17 +02:00
crypto s390/archrandom: simplify back to earlier design and initialize earlier 2022-07-07 17:36:48 +02:00
hypfs s390/hypfs: avoid error message under KVM 2022-09-05 10:27:47 +02:00
include s390/uv: Panic for set and remove shared access UVC errors 2024-09-04 13:14:51 +02:00
kernel s390/entry: align system call table on 8 bytes 2024-04-13 12:51:37 +02:00
kvm KVM: s390: fix setting of fpc register 2024-02-23 08:24:56 +01:00
lib s390/uaccess: add missing earlyclobber annotations to __clear_user() 2023-04-05 11:16:46 +02:00
mm s390/mm: Fix clearing storage keys for huge pages 2024-05-17 11:43:49 +02:00
net
numa
oprofile
pci s390: use the correct count for __iowrite64_copy() 2024-03-01 13:13:37 +01:00
purgatory
scripts
tools
Kbuild
Kconfig s390: remove unneeded 'select BUILD_BIN2C' 2022-07-07 17:36:49 +02:00
Kconfig.debug
Makefile s390: disable -Warray-bounds 2022-05-18 09:47:26 +02:00