Skip to content

perf: Support multiple stacks (v3)

Arun Sharma linux-perf-users lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4perf, x86: Allow multiple stacksarch/x86/kernel/cpu/perf_event.c+0 -62 replies
2/4perf: Limit callchains to 127include/linux/perf_event.h+1 -11 reply
3/4perf, x86: Check if user fp is validarch/x86/include/asm/uaccess.h arch/x86/kernel/cpu/perf_event.c+19 -61 reply
4/4x86: Check user address explicitly in copy_from_user_nmi()arch/x86/lib/usercopy.c+3 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] perf: Support multiple stacks (v3)

If userspace has two or more stacks and we happen to take a sample when the stack pointer is pointing to a higher stack, we get truncated callchains. This patch series tries to address that.

Changelog:

v3: add explicit checks to copy_from_user_nmi
v3: add explicit checks in perf_callchain_user*

v2: do this for compat32 as well
v2: improve safety checks and reduce max callchain size

Arun Sharma (4):
perf, x86: Allow multiple stacks
perf: Limit callchains to 127
perf, x86: Check if user fp is valid
x86: Check user address explicitly in copy_from_user_nmi()

 arch/x86/include/asm/uaccess.h   |   13 +++++++------
 arch/x86/kernel/cpu/perf_event.c |   11 +++++++++--
 arch/x86/lib/usercopy.c          |    3 +++
 include/linux/perf_event.h       |    2 +-
 4 files changed, 20 insertions(+), 9 deletions(-)
Signature · 1 line
1.7.8.4