linux_dsm_epyc7002/drivers/s390/crypto
Ingo Tuchscherer d6d86c57d7 s390/zcrypt: Fix zcrypt suspend/resume behavior
The device suspend call triggers all ap devices to fetch potentially
available response messages from the queues. Therefore the
corresponding zcrypt device, that is allocated asynchronously after
ap device probing, needs to be fully prepared. This race condition
could lead to uninitialized response buffers while trying to read
from the queues.

Introduce a new callback within the ap layer to get noticed when a
zcrypt device is fully prepared. Additional checks prevent reading
from devices that are not fully prepared.

Signed-off-by: Ingo Tuchscherer <ingo.tuchscherer@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2016-07-31 05:27:58 -04:00
..
ap_bus.c s390/zcrypt: Fix zcrypt suspend/resume behavior 2016-07-31 05:27:58 -04:00
ap_bus.h s390/zcrypt: Fix zcrypt suspend/resume behavior 2016-07-31 05:27:58 -04:00
Makefile s390/zcrypt: Fix initialisation when zcrypt is built-in 2015-11-11 13:56:34 +01:00
zcrypt_api.c s390: Delete unnecessary checks before the function call "debug_unregister" 2015-11-27 09:24:16 +01:00
zcrypt_api.h s390/zcrypt: Fix initialisation when zcrypt is built-in 2015-11-11 13:56:34 +01:00
zcrypt_cca_key.h s390/zcrypt: enable odd RSA modulus sizes in CRT format 2015-10-14 14:31:59 +02:00
zcrypt_cex2a.c s390/zcrypt: Fix zcrypt suspend/resume behavior 2016-07-31 05:27:58 -04:00
zcrypt_cex2a.h s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
zcrypt_cex4.c s390/zcrypt: Fix zcrypt suspend/resume behavior 2016-07-31 05:27:58 -04:00
zcrypt_cex4.h s390/zcrypt: Add support for CEX4 crypto card 2012-09-26 15:44:56 +02:00
zcrypt_debug.h s390/s390dbf: use debug_level_enabled() where applicable 2013-10-24 17:16:54 +02:00
zcrypt_error.h s390/zcrypt: Fix cryptographic device id in kernel messages 2016-01-26 12:46:58 +01:00
zcrypt_msgtype6.c s390/zcrypt: Fix cryptographic device id in kernel messages 2016-01-26 12:46:58 +01:00
zcrypt_msgtype6.h s390/zcrypt: add support for EP11 coprocessor cards 2013-12-18 17:37:15 +01:00
zcrypt_msgtype50.c s390/zcrypt: Fix cryptographic device id in kernel messages 2016-01-26 12:46:58 +01:00
zcrypt_msgtype50.h s390/zcrypt: msgType50 (RSA-CRT) fix 2012-11-23 11:14:30 +01:00
zcrypt_pcixcc.c s390/zcrypt: Fix zcrypt suspend/resume behavior 2016-07-31 05:27:58 -04:00
zcrypt_pcixcc.h s390/zcrypt: Separate msgtype implementation from card modules. 2012-09-26 15:44:55 +02:00