s390: vfio-ap: tighten the NIB validity check
authorHalil Pasic <pasic@linux.ibm.com>
Wed, 8 Feb 2023 23:00:22 +0000 (00:00 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Fri, 10 Feb 2023 09:55:29 +0000 (10:55 +0100)
commita64a6d23874c574d30a9816124b2dc37467f3811
tree86951bfe8b7e92c5d30e98d900fdf71690a4d940
parent2f09c2ea6c649cb010e0782aed3c96108e693cff
s390: vfio-ap: tighten the NIB validity check

The NIB is architecturally invalid if the address designates a
storage location that is not installed or if it is zero.

Signed-off-by: Halil Pasic <pasic@linux.ibm.com>
Reported-by: Janosch Frank <frankja@linux.ibm.com>
Fixes: ec89b55e3bce ("s390: ap: implement PAPQ AQIC interception in kernel")
Reviewed-by: Tony Krowiak <akrowiak@linux.ibm.com>
Reviewed-by: Pierre Morel <pmorel@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/crypto/vfio_ap_ops.c