Skip to content

usercopy: reimplement arch_within_stack_frames

[email protected] kernel-hardening lkml 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 0 repliesNew
  2. v33 patches 2 repliesSuperseded
  3. v23 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches12 repliesSuperseded

Changes in v4 from the cover letter

- Fix build problem caused by page_ext.h change

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3stacktrace: move arch_within_stack_frames from thread_info.harch/x86/include/asm/thread_info.h arch/x86/kernel/Makefile arch/x86/kernel/stacktrace.c +3 more+76 -730 replies
2/3arm64: usercopy: implement arch_within_stack_framesarch/arm64/Kconfig arch/arm64/kernel/stacktrace.c+77 -00 replies
3/3x86: usercopy: reimplement arch_within_stack_frames with unwinderarch/x86/include/asm/unwind.h arch/x86/kernel/stacktrace.c arch/x86/kernel/unwind_frame.c+57 -160 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchKees CookSahara
1/3R-b
2/3R-b R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/3] usercopy: reimplement arch_within_stack_frames

From: Sahara <[email protected]>

This series of patches introduce the arm64 arch_within_stack_frames implementation using stacktrace functions. Also the base code is moved from thread_info.h to stacktrace.h. x86 code is reimplemented to use frame pointer unwinder functions.

Note: The code is still missing in case of using x86 ORC unwinder and guess unwinder.

v2 changes:
- Remove 'arm64: usercopy: consider dynamic array stack variable'
- minor fix in x86 arch_within_stack_frames code.
v3 changes:
- Fix build problem caused by circular inclusion of header in x86 UP config
v4 changes:
- Fix build problem caused by page_ext.h change

James Morse (1):
arm64: usercopy: implement arch_within_stack_frames

Sahara (2):
stacktrace: move arch_within_stack_frames from thread_info.h
x86: usercopy: reimplement arch_within_stack_frames with unwinder

 arch/arm64/Kconfig                 |  1 +
 arch/arm64/kernel/stacktrace.c     | 76 +++++++++++++++++++++++++++++++++
 arch/x86/include/asm/thread_info.h | 51 +---------------------
 arch/x86/include/asm/unwind.h      |  5 +++
 arch/x86/kernel/Makefile           |  2 +-
 arch/x86/kernel/stacktrace.c       | 87 ++++++++++++++++++++++++++++++++++++++
 arch/x86/kernel/unwind_frame.c     |  4 +-
 include/linux/stacktrace.h         | 24 +++++++++++
 include/linux/thread_info.h        | 21 ---------
 mm/usercopy.c                      |  2 +-
 10 files changed, 197 insertions(+), 76 deletions(-)
Signature · 1 line
2.7.4