diff options
author | Will Deacon <will.deacon@arm.com> | 2018-02-19 16:46:57 +0000 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2018-02-19 17:07:12 +0000 |
commit | a06f818a70de21b4b3b4186816094208fc7accf9 (patch) | |
tree | 4b5ec2e02b5589b5ed8b7541b465c64985ae729d /arch/arm/mach-ux500/cpu-db8500.c | |
parent | 1962682d2b2fbe6cfa995a85c53c069fadda473e (diff) | |
download | linux-a06f818a70de21b4b3b4186816094208fc7accf9.tar.bz2 |
arm64: __show_regs: Only resolve kernel symbols when running at EL1
__show_regs pretty prints PC and LR by attempting to map them to kernel
function names to improve the utility of crash reports. Unfortunately,
this mapping is applied even when the pt_regs corresponds to user mode,
resulting in a KASLR oracle.
Avoid this issue by only looking up the function symbols when the register
state indicates that we're actually running at EL1.
Cc: <stable@vger.kernel.org>
Reported-by: NCSC Security <security@ncsc.gov.uk>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm/mach-ux500/cpu-db8500.c')
0 files changed, 0 insertions, 0 deletions