Skip to content
Commit a06f818a authored by Will Deacon's avatar Will Deacon
Browse files

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: default avatarNCSC Security <security@ncsc.gov.uk>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 1962682d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment