linux/arch/s390/crypto
Harald Freudenberger c7260ca335 s390/crypto: Fix kernel crash on aes_s390 module remove.
A kernel crash occurs when the aes_s390 kernel module is
removed on machines < z14. This only happens on kernel
version 4.15 and higher on machines not supporting MSA 8.

The reason for the crash is a unconditional
crypto_unregister_aead() invocation where no previous
crypto_register_aead() had been called. The fix now
remembers if there has been a successful registration and
only then calls the unregister function upon kernel module
remove.

The code now crashing has been introduced with
"bf7fa03 s390/crypto: add s390 platform specific aes gcm support."

Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2018-03-18 23:02:05 -07:00
..
aes_s390.c s390/crypto: Fix kernel crash on aes_s390 module remove. 2018-03-18 23:02:05 -07:00
arch_random.c s390: crypto: Remove redundant license text 2017-11-24 15:37:23 +01:00
crc32-vx.c crypto: hash - annotate algorithms taking optional key 2018-01-12 23:03:35 +11:00
crc32be-vx.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
crc32le-vx.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
des_s390.c s390: crypto: Remove redundant license text 2017-11-24 15:37:23 +01:00
ghash_s390.c s390: crypto: add SPDX identifiers to the remaining files 2017-11-24 15:37:14 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
paes_s390.c s390: crypto: Remove redundant license text 2017-11-24 15:37:23 +01:00
prng.c s390: crypto: add SPDX identifiers to the remaining files 2017-11-24 15:37:14 +01:00
sha1_s390.c s390: Remove redudant license text 2017-12-05 07:51:09 +01:00
sha256_s390.c s390: crypto: Remove redundant license text 2017-11-24 15:37:23 +01:00
sha512_s390.c s390: crypto: Remove redundant license text 2017-11-24 15:37:23 +01:00
sha_common.c s390: crypto: Remove redundant license text 2017-11-24 15:37:23 +01:00
sha.h s390: crypto: Remove redundant license text 2017-11-24 15:37:23 +01:00