diff options
author | Janosch Frank <[email protected]> | 2017-12-04 12:19:11 +0100 |
---|---|---|
committer | Christian Borntraeger <[email protected]> | 2017-12-06 09:18:43 +0100 |
commit | ca76ec9ca871e67d8cd0b6caba24aca3d3ac4546 (patch) | |
tree | 9b18cd3ec7dd03b175d91a715b70d150b903cc54 /net/sched/cls_basic.c | |
parent | bb64da9aba89765fee74b395967b18a7d6c364e9 (diff) |
KVM: s390: Fix skey emulation permission check
All skey functions call skey_check_enable at their start, which checks
if we are in the PSTATE and injects a privileged operation exception
if we are.
Unfortunately they continue processing afterwards and perform the
operation anyhow as skey_check_enable does not deliver an error if the
exception injection was successful.
Let's move the PSTATE check into the skey functions and exit them on
such an occasion, also we now do not enable skey handling anymore in
such a case.
Signed-off-by: Janosch Frank <[email protected]>
Reviewed-by: Christian Borntraeger <[email protected]>
Fixes: a7e19ab ("KVM: s390: handle missing storage-key facility")
Cc: <[email protected]> # v4.8+
Reviewed-by: Cornelia Huck <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Signed-off-by: Christian Borntraeger <[email protected]>
Diffstat (limited to 'net/sched/cls_basic.c')
0 files changed, 0 insertions, 0 deletions