Skip to content

ORC fixes

Josh Poimboeuf lkml 1 version Applied

Status from this message: The following commit has been merged into the x86/urgent branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest11 patches 10 repliesApplied

Changes in v2 from the cover letter

- Dropped three patches which technically weren't fixes. Will post them later as part of another patch set with more improvements.
- Removed show_iret_regs() declaration [mbenes]
- Added Miroslav Reviewed-by, Linus Reported-by

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/11objtool: Fix stack offset tracking for indirect CFAstools/objtool/check.c+1 -10 replies
2/11x86/entry/64: Fix unwind hints in register clearing codearch/x86/entry/calling.h+21 -190 replies
3/11x86/entry/64: Fix unwind hints in kernel exit patharch/x86/entry/entry_64.S+2 -10 replies
4/11x86/entry/64: Fix unwind hints in __switch_to_asm()arch/x86/entry/entry_64.S+2 -30 replies
5/11x86/entry/64: Fix unwind hints in rewind_stack_do_exit()arch/x86/entry/entry_64.S+1 -10 replies
6/11x86/unwind/orc: Convert global variables to staticarch/x86/kernel/unwind_orc.c+5 -56 replies
7/11x86/unwind: Prevent false warnings for non-current tasksarch/x86/kernel/dumpstack_64.c arch/x86/kernel/unwind_frame.c arch/x86/kernel/unwind_orc.c+28 -180 replies
8/11x86/unwind/orc: Don't skip the first frame for inactive tasksarch/x86/kernel/unwind_orc.c+1 -10 replies
9/11x86/unwind/orc: Prevent unwinding before ORC initializationarch/x86/kernel/unwind_orc.c+3 -31 reply
10/11x86/unwind/orc: Fix error path for bad ORC entry typearch/x86/kernel/unwind_orc.c+1 -10 replies
11/11x86/unwind/orc: Fix premature unwind stoppage due to IRET framesarch/x86/entry/entry_64.S arch/x86/include/asm/unwind.h arch/x86/kernel/unwind_orc.c+43 -140 replies

Reviews trailers per patch

All 11 patches have a Reviewed-by or Acked-by.

PatchMiroslav Benes
1/11R-b
2/11R-b
3/11R-b
4/11R-b
5/11R-b
6/11R-b
7/11R-b
8/11R-b
9/11R-b
10/11R-b
11/11R-b

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

Read the v2 thread

Cover letter [PATCH v2 00/11] ORC fixes

v2:
- Dropped three patches which technically weren't fixes. Will post them later as part of another patch set with more improvements.
- Removed show_iret_regs() declaration [mbenes]
- Added Miroslav Reviewed-by, Linus Reported-by

v1 was here:
https://lkml.kernel.org/r/[email protected]

Jann Horn (1):
x86/entry/64: Fix unwind hints in rewind_stack_do_exit()

Josh Poimboeuf (9):
objtool: Fix stack offset tracking for indirect CFAs x86/entry/64: Fix unwind hints in register clearing code x86/entry/64: Fix unwind hints in kernel exit path x86/entry/64: Fix unwind hints in __switch_to_asm() x86/unwind/orc: Convert global variables to static x86/unwind: Prevent false warnings for non-current tasks x86/unwind/orc: Prevent unwinding before ORC initialization x86/unwind/orc: Fix error path for bad ORC entry type x86/unwind/orc: Fix premature unwind stoppage due to IRET frames

Miroslav Benes (1):
x86/unwind/orc: Don't skip the first frame for inactive tasks

 arch/x86/entry/calling.h       |  40 ++++++------
 arch/x86/entry/entry_64.S      |  14 ++---
 arch/x86/include/asm/unwind.h  |   2 +-
 arch/x86/kernel/dumpstack_64.c |   3 +-
 arch/x86/kernel/unwind_frame.c |   3 +
 arch/x86/kernel/unwind_orc.c   | 111 ++++++++++++++++++++++-----------
 tools/objtool/check.c          |   2 +-
 7 files changed, 108 insertions(+), 67 deletions(-)
Signature · 1 line
2.21.1