s390/pkey: Load pkey kernel module automatically
authorIngo Franzki <ifranzki@linux.ibm.com>
Wed, 17 Oct 2018 15:24:43 +0000 (17:24 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 19 Oct 2018 06:18:18 +0000 (08:18 +0200)
commit63c19be095d0f8eb8992674991e44b4228bd4179
tree5aa623d79110d6d89cd4deeaa7f60989d17a4b00
parentec0c0bb489727de0d4dca6a00be6970ab8a3b30a
s390/pkey: Load pkey kernel module automatically

With the recent enhancements of the pkey kernel module,
the pkey kernel module should be loaded automatically
during system startup, if MSA is available.

When used for swap device encryption with random protected
keys, pkey must be loaded before /etc/crypttab is processed,
otherwise the sysfs attributes to read the key from are
not available.

Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
Reviewed-by: Hendrik Brueckner <brueckner@linux.ibm.com>
Reviewed-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/crypto/pkey_api.c