]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
s390/zcrypt: fix wrong offset index for APKA master key valid state
authorHarald Freudenberger <freude@linux.ibm.com>
Fri, 6 Aug 2021 10:02:00 +0000 (12:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Sep 2021 08:00:30 +0000 (10:00 +0200)
commitf712e7a933d7c9be8225731fef0f9107a17d5b6f
treea0e3d94b2d9faf7e2a86c7086b5090d6c38d3993
parenta70bc7fc402b072aa317caef626f096937329687
s390/zcrypt: fix wrong offset index for APKA master key valid state

[ Upstream commit 8617bb74006252cb2286008afe7d6575a6425857 ]

Tests showed a mismatch between what the CCA tool reports about
the APKA master key state and what's displayed by the zcrypt dd
in sysfs. After some investigation, we found out that the
documentation which was the source for the zcrypt dd implementation
lacks the listing of 3 fields. So this patch now moves the
evaluation of the APKA master key state to the correct offset.

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/s390/crypto/zcrypt_ccamisc.c