summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2022-10-23 10:07:01 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2022-10-23 10:07:01 -0700
commit6204a81aa3f489e4fb43288d95d27c069bad4e1e (patch)
treeeef4de56d03fb0887b37ad9307b2b75d9a4c187c
parent295dad10bfb5bc35ef0d051aec61299ebeb88855 (diff)
parent230db82413c091bc16acee72650f48d419cebe49 (diff)
downloadlinux-stable-6204a81aa3f489e4fb43288d95d27c069bad4e1e.tar.gz
linux-stable-6204a81aa3f489e4fb43288d95d27c069bad4e1e.tar.bz2
linux-stable-6204a81aa3f489e4fb43288d95d27c069bad4e1e.zip
Merge tag 'objtool_urgent_for_v6.1_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull objtool fix from Borislav Petkov: - Fix ORC stack unwinding when GCOV is enabled * tag 'objtool_urgent_for_v6.1_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/unwind/orc: Fix unreliable stack dump with gcov
-rw-r--r--arch/x86/kernel/unwind_orc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/unwind_orc.c b/arch/x86/kernel/unwind_orc.c
index 0ea57da92940..c059820dfaea 100644
--- a/arch/x86/kernel/unwind_orc.c
+++ b/arch/x86/kernel/unwind_orc.c
@@ -713,7 +713,7 @@ void __unwind_start(struct unwind_state *state, struct task_struct *task,
/* Otherwise, skip ahead to the user-specified starting frame: */
while (!unwind_done(state) &&
(!on_stack(&state->stack_info, first_frame, sizeof(long)) ||
- state->sp < (unsigned long)first_frame))
+ state->sp <= (unsigned long)first_frame))
unwind_next_frame(state);
return;