]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
s390/runtime_instrumentation: fix storage key handling
authorHeiko Carstens <hca@linux.ibm.com>
Wed, 12 Aug 2020 16:55:41 +0000 (18:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Aug 2020 09:42:18 +0000 (11:42 +0200)
commit1ca48fa64aeda2ca090fe7d2e21fe9567b4e95a3
treeeaa601b7225af3a8724d34f7dcde9f7952d24a59
parent4a2136e55a20caaa6f3910a9b632c2150e06f75b
s390/runtime_instrumentation: fix storage key handling

[ Upstream commit 9eaba29c7985236e16468f4e6a49cc18cf01443e ]

The key member of the runtime instrumentation control block contains
only the access key, not the complete storage key. Therefore the value
must be shifted by four bits.
Note: this is only relevant for debugging purposes in case somebody
compiles a kernel with a default storage access key set to a value not
equal to zero.

Fixes: e4b8b3f33fca ("s390: add support for runtime instrumentation")
Reported-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/s390/kernel/runtime_instr.c