diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2025-08-07 17:04:27 +0200 |
---|---|---|
committer | Alexander Gordeev <agordeev@linux.ibm.com> | 2025-08-20 16:37:28 +0200 |
commit | 93f616ff870a1fb7e84d472cad0af651b18f9f87 (patch) | |
tree | 567e0e04264ab76bcb6bb5ecbfb123de0b1e7825 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 430fa71027b6ac9bb0ce5532b8d0676777d4219a (diff) |
s390/mm: Do not map lowcore with identity mapping
Since the identity mapping is pinned to address zero the lowcore is always
also mapped to address zero, this happens regardless of the relocate_lowcore
command line option. If the option is specified the lowcore is mapped
twice, instead of only once.
This means that NULL pointer accesses will succeed instead of causing an
exception (low address protection still applies, but covers only parts).
To fix this never map the first two pages of physical memory with the
identity mapping.
Fixes: 32db401965f1 ("s390/mm: Pin identity mapping base to zero")
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions