aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/kernel/sys.c
diff options
context:
space:
mode:
authorMark Rutland <mark.rutland@arm.com>2018-12-07 18:39:27 +0000
committerWill Deacon <will.deacon@arm.com>2018-12-13 16:42:46 +0000
commitccc43810827f9feb5e588e4b7098dc55b1d972f8 (patch)
treeda4af8576de9d0a0d470a6ec31331f4909667070 /kernel/sys.c
parentarm64: expose user PAC bit positions via ptrace (diff)
downloadwireguard-linux-ccc43810827f9feb5e588e4b7098dc55b1d972f8.tar.xz
wireguard-linux-ccc43810827f9feb5e588e4b7098dc55b1d972f8.zip
arm64: perf: strip PAC when unwinding userspace
When the kernel is unwinding userspace callchains, we can't expect that the userspace consumer of these callchains has the data necessary to strip the PAC from the stored LR. This patch has the kernel strip the PAC from user stackframes when the in-kernel unwinder is used. This only affects the LR value, and not the FP. This only affects the in-kernel unwinder. When userspace performs unwinding, it is up to userspace to strip PACs as necessary (which can be determined from DWARF information). Signed-off-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Kristina Martsenko <kristina.martsenko@arm.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> Cc: Will Deacon <will.deacon@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'kernel/sys.c')
0 files changed, 0 insertions, 0 deletions