linux/arch/s390/kernel
Heiko Carstens c5599b901d s390/ptrace: fix storage key handling
[ Upstream commit fd78c59446 ]

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. Since existing user space does not
necessarily query and set the access key correctly, just ignore the
user space provided key and use the correct one.
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: 262832bc5a ("s390/ptrace: add runtime instrumention register get/set")
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>
2020-08-26 10:31:03 +02:00
..
syscalls
vdso32
vdso64 s390/vdso: fix vDSO clock_getres() 2020-06-30 23:17:14 -04:00
.gitignore
alternative.c
asm-offsets.c s390/vdso: fix vDSO clock_getres() 2020-06-30 23:17:14 -04:00
audit.c
audit.h
base.S
cache.c
compat_audit.c
compat_linux.c
compat_linux.h
compat_ptrace.h
compat_signal.c
compat_wrapper.c
cpcmd.c
crash_dump.c
debug.c s390/debug: avoid kernel warning on too large number of pages 2020-07-09 09:37:09 +02:00
diag.c s390/ftrace: fix potential crashes when switching tracers 2020-05-10 10:30:09 +02:00
dis.c s390/disassembler: don't hide instruction addresses 2019-12-31 16:36:00 +01:00
dumpstack.c
early_nobss.c
early_printk.c
early.c s390/kasan: fix early pgm check handler execution 2020-07-16 08:17:22 +02:00
ebcdic.c
entry.h
entry.S
fpu.c
ftrace.c
guarded_storage.c
head64.S
idle.c
ipl.c
irq.c
jump_label.c
kdebugfs.c
kexec_elf.c s390/kexec_file: Fix potential segment overlap in ELF loader 2020-01-27 14:50:42 +01:00
kexec_image.c
kprobes.c
lgr.c
machine_kexec_file.c
machine_kexec.c
Makefile
mcount.S s390/ftrace: save traced function caller 2020-06-07 13:17:55 +02:00
module.c
nmi.c
nospec-branch.c
nospec-sysfs.c
os_info.c
perf_cpum_cf_events.c
perf_cpum_cf.c
perf_cpum_sf.c s390/cpum_sf: Fix wrong page count in error message 2020-04-23 10:30:18 +02:00
perf_event.c
perf_regs.c
pgm_check.S
process.c
processor.c s390/cpuinfo: fix wrong output when CPU0 is offline 2020-04-23 10:30:18 +02:00
ptrace.c s390/ptrace: fix storage key handling 2020-08-26 10:31:03 +02:00
reipl.S
relocate_kernel.S
runtime_instr.c s390/runtime_instrumentation: fix storage key handling 2020-08-26 10:31:03 +02:00
setup.c
signal.c
smp.c s390/ftrace: fix potential crashes when switching tracers 2020-05-10 10:30:09 +02:00
stacktrace.c
sthyi.c
suspend.c
swsusp.S
sys_s390.c
sysinfo.c
time.c s390/vdso: fix vDSO clock_getres() 2020-06-30 23:17:14 -04:00
topology.c
trace.c s390/ftrace: fix potential crashes when switching tracers 2020-05-10 10:30:09 +02:00
traps.c
uprobes.c
vdso.c
vmlinux.lds.S
vtime.c