Skip to content

Commit 9eaba29

Browse files
committed
s390/runtime_instrumentation: fix storage key handling
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: e4b8b3f ("s390: add support for runtime instrumentation") Reported-by: Claudio Imbrenda <[email protected]> Signed-off-by: Heiko Carstens <[email protected]>
1 parent b76fee1 commit 9eaba29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/s390/kernel/runtime_instr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static void init_runtime_instr_cb(struct runtime_instr_cb *cb)
5757
cb->k = 1;
5858
cb->ps = 1;
5959
cb->pc = 1;
60-
cb->key = PAGE_DEFAULT_KEY;
60+
cb->key = PAGE_DEFAULT_KEY >> 4;
6161
cb->v = 1;
6262
}
6363

0 commit comments

Comments
 (0)