diff options
author | Janis Schoetterl-Glausch <[email protected]> | 2022-02-11 19:22:07 +0100 |
---|---|---|
committer | Christian Borntraeger <[email protected]> | 2022-02-14 16:12:57 +0100 |
commit | e613d83454d7da1c37d78edb278db9c20afb21a2 (patch) | |
tree | 4663749ab29ab83935804622a3b960f1a8b6ee48 /net/lapb/lapb_subr.c | |
parent | 1a82f6ab23659aa01a796d9d444ec9cc63ded26c (diff) |
KVM: s390: Honor storage keys when accessing guest memory
Storage key checking had not been implemented for instructions emulated
by KVM. Implement it by enhancing the functions used for guest access,
in particular those making use of access_guest which has been renamed
to access_guest_with_key.
Accesses via access_guest_real should not be key checked.
For actual accesses, key checking is done by
copy_from/to_user_key (which internally uses MVCOS/MVCP/MVCS).
In cases where accessibility is checked without an actual access,
this is performed by getting the storage key and checking if the access
key matches. In both cases, if applicable, storage and fetch protection
override are honored.
Signed-off-by: Janis Schoetterl-Glausch <[email protected]>
Reviewed-by: Janosch Frank <[email protected]>
Reviewed-by: Christian Borntraeger <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Christian Borntraeger <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions