All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] x86 unwind fixes (1 unwinder fix, 1 missing entry ORC annotation)
@ 2025-03-25  2:01 Jann Horn
  2025-03-25  2:01 ` [PATCH 1/2] x86/entry: Fix ORC for PUSH_REGS with save_ret=1 Jann Horn
  2025-03-25  2:01 ` [PATCH 2/2] x86/dumpstack: Fix broken unwinding from exception stacks Jann Horn
  0 siblings, 2 replies; 8+ messages in thread
From: Jann Horn @ 2025-03-25  2:01 UTC (permalink / raw)
  To: x86, Andy Lutomirski, Josh Poimboeuf, Peter Zijlstra
  Cc: linux-kernel, Dominik Brodowski, Ingo Molnar, Oleg Nesterov,
	Vernon Lovejoy, Jann Horn

While doing some kernel development, I managed to cause a recursive #PF
ending in a #DF, as one does... Thanks Andy for adding guard stacks and
such nice error handling for them years ago.

Unfortunately, instead of a nice stack trace, I just got a pile of guess
unwind lines, caused by two bugs.

Here are fixes I came up with for these issues. The issues were
introduced in 2018 and 2023 - if nobody else noticed them since then,
I guess the fixes aren't particularly urgent.

To: Andy Lutomirski <luto@kernel.org>

Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Cc: Ingo Molnar <mingo@kernel.org>

To: Josh Poimboeuf <jpoimboe@kernel.org>
To: Peter Zijlstra <peterz@infradead.org>

Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Vernon Lovejoy <vlovejoy@redhat.com>

Signed-off-by: Jann Horn <jannh@google.com>
---
Jann Horn (2):
      x86/entry: Fix ORC for PUSH_REGS with save_ret=1
      x86/dumpstack: Fix broken unwinding from exception stacks

 arch/x86/entry/calling.h    | 2 ++
 arch/x86/kernel/dumpstack.c | 5 ++---
 2 files changed, 4 insertions(+), 3 deletions(-)
---
base-commit: bcb044256d3f5d9f5bb61d1eac6492f77883bd60
change-id: 20250325-2025-03-unwind-fixes-a367c54be822

-- 
Jann Horn <jannh@google.com>


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-03-25 13:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-25  2:01 [PATCH 0/2] x86 unwind fixes (1 unwinder fix, 1 missing entry ORC annotation) Jann Horn
2025-03-25  2:01 ` [PATCH 1/2] x86/entry: Fix ORC for PUSH_REGS with save_ret=1 Jann Horn
2025-03-25  7:46   ` [tip: x86/urgent] x86/entry: Fix ORC unwinder " tip-bot2 for Jann Horn
2025-03-25  2:01 ` [PATCH 2/2] x86/dumpstack: Fix broken unwinding from exception stacks Jann Horn
2025-03-25  2:24   ` Jann Horn
2025-03-25  7:31     ` Ingo Molnar
2025-03-25  7:46   ` [tip: x86/urgent] x86/dumpstack: Fix inaccurate unwinding from exception stacks due to misplaced assignment tip-bot2 for Jann Horn
2025-03-25 13:27   ` [PATCH 2/2] x86/dumpstack: Fix broken unwinding from exception stacks Oleg Nesterov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.