summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorHarald Freudenberger <freude@linux.ibm.com>2020-09-15 12:00:17 +0300
committerHeiko Carstens <hca@linux.ibm.com>2020-11-03 17:12:16 +0300
commit5b35047eb467c8cdd38a31beb9ac109221777843 (patch)
tree1ba9f4c3d1aaa4c96acb30ccfe48c9b806a18928 /arch
parentc3d9cdca73d0e49f01a71cdc477a09b04b1b30fc (diff)
downloadlinux-5b35047eb467c8cdd38a31beb9ac109221777843.tar.xz
s390/pkey: fix paes selftest failure with paes and pkey static build
When both the paes and the pkey kernel module are statically build into the kernel, the paes cipher selftests run before the pkey kernel module is initialized. So a static variable set in the pkey init function and used in the pkey_clr2protkey function is not initialized when the paes cipher's selftests request to call pckmo for transforming a clear key value into a protected key. This patch moves the initial setup of the static variable into the function pck_clr2protkey. So it's possible, to use the function for transforming a clear to a protected key even before the pkey init function has been called and the paes selftests may run successful. Reported-by: Alexander Egorenkov <Alexander.Egorenkov@ibm.com> Cc: <stable@vger.kernel.org> # 4.20 Fixes: f822ad2c2c03 ("s390/pkey: move pckmo subfunction available checks away from module init") Signed-off-by: Harald Freudenberger <freude@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions