1
0
Fork 0
alistair23-linux/drivers/s390
Harald Freudenberger 7379e65279 s390/zcrypt: Fix wrong dispatching for control domain CPRBs
The zcrypt device driver does not handle CPRBs which address
a control domain correctly. This fix introduces a workaround:
The domain field of the request CPRB is checked if there is
a valid domain value in there. If this is true and the value
is a control only domain (a domain which is enabled in the
crypto config ADM mask but disabled in the AQM mask) the
CPRB is forwarded to the default usage domain. If there is
no default domain, the request is rejected with an ENODEV.

This fix is important for maintaining crypto adapters. For
example one LPAR can use a crypto adapter domain ('Control
and Usage') but another LPAR needs to be able to maintain
this adapter domain ('Control'). Scenarios like this did
not work properly and the patch enables this.

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
2019-05-28 14:49:38 +02:00
..
block s390/dasd: fix build warning in dasd_eckd_build_cp_raw 2019-05-09 08:10:21 -06:00
char stream_open related patches for Linux 5.2 2019-05-07 12:15:13 -07:00
cio s390/qdio: optimize state inspection of HW-owned SBALs 2019-05-08 15:01:23 +02:00
crypto s390/zcrypt: Fix wrong dispatching for control domain CPRBs 2019-05-28 14:49:38 +02:00
net Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2019-05-07 22:03:58 -07:00
scsi scsi: zfcp: reduce flood of fcrscn1 trace records on multi-element RSCN 2019-03-27 21:26:12 -04:00
virtio virtio: fixes, features 2019-05-14 14:12:59 -07:00
Makefile kbuild: rename built-in.o to built-in.a 2018-03-26 02:01:19 +09:00