mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH RESEND 0/2] ARM: v7m: handle faults and enable debugging
@ 2022-09-17  4:13 Ben Wolsieffer
  2022-09-17  4:13 ` [PATCH RESEND 1/2] ARM: v7m: handle faults Ben Wolsieffer
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Ben Wolsieffer @ 2022-09-17  4:13 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Ben Wolsieffer, Russell King, Ard Biesheuvel, Mark Rutland,
	Marc Zyngier, Arnd Bergmann, Vladimir Murzin,
	Russell King (Oracle),
	Nick Desaulniers, Catalin Marinas, Steven Rostedt (Google),
	Linus Walleij, linux-kernel

This series enables real exception handlers on no-MMU systems,
increasing robustness in the face of buggy user- or kernel-space
software. Previously, any fault would trigger the invalid exception
handler, which would hang the system. With this series, faults only
kill the offending process and allow the rest of the system to
continue operating.

The second patch in this series adds support for undefined instruction
hooks, enabling software breakpoints through ptrace. Using this
functionality currently requires a patch to gdb.

This series has been tested on an STM32F746 (Cortex-M7).

I would appreciate feedback in particular on the following questions:
* Is the fault table formatting acceptable? Or should the lines be
  wrapped/shortened?
* Does my chosen mapping between faults and signals make sense?

Ben Wolsieffer (2):
  ARM: v7m: handle faults
  ARM: v7m: support undefined instruction hooks

 arch/arm/include/asm/traps.h |   2 +
 arch/arm/include/asm/v7m.h   |  29 +++++++
 arch/arm/kernel/Makefile     |   2 +-
 arch/arm/kernel/entry-v7m.S  |  68 ++++++++++++++-
 arch/arm/kernel/traps-v7m.c  | 162 +++++++++++++++++++++++++++++++++++
 5 files changed, 258 insertions(+), 5 deletions(-)
 create mode 100644 arch/arm/kernel/traps-v7m.c

-- 
2.37.2


^ permalink raw reply	[flat|nested] 5+ messages in thread
* [PATCH RESEND 0/2] ARM: v7m: handle faults and enable debugging
@ 2022-12-09 21:48 Ben Wolsieffer
  0 siblings, 0 replies; 5+ messages in thread
From: Ben Wolsieffer @ 2022-12-09 21:48 UTC (permalink / raw)
  To: linux-stm32
  Cc: Linus Walleij, Ben Wolsieffer, Russell King, Ard Biesheuvel,
	Russell King (Oracle), Nicolas Schier, Steven Rostedt (Google),
	Arnd Bergmann, Masahiro Yamada, linux-arm-kernel, linux-kernel

This series enables real exception handlers on no-MMU systems,
increasing robustness in the face of buggy user- or kernel-space
software. Previously, any fault would trigger the invalid exception
handler, which would hang the system. With this series, faults only
kill the offending process and allow the rest of the system to
continue operating.

The second patch in this series adds support for undefined instruction
hooks, enabling software breakpoints through ptrace. Using this
functionality currently requires a patch to gdb.

This series has been tested on an STM32F746 (Cortex-M7).

I would appreciate feedback in particular on the following questions:
* Is the fault table formatting acceptable? Or should the lines be
  wrapped/shortened?
* Does my chosen mapping between faults and signals make sense?

This time around this series has been sent to linux-stm32 as well, as I was
previously unaware of that list.

Ben Wolsieffer (2):
  ARM: v7m: handle faults
  ARM: v7m: support undefined instruction hooks

 arch/arm/include/asm/traps.h |   2 +
 arch/arm/include/asm/v7m.h   |  29 +++++++
 arch/arm/kernel/Makefile     |   2 +-
 arch/arm/kernel/entry-v7m.S  |  68 ++++++++++++++-
 arch/arm/kernel/traps-v7m.c  | 162 +++++++++++++++++++++++++++++++++++
 5 files changed, 258 insertions(+), 5 deletions(-)
 create mode 100644 arch/arm/kernel/traps-v7m.c

-- 
2.38.1


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

end of thread, other threads:[~2022-12-09 21:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-17  4:13 [PATCH RESEND 0/2] ARM: v7m: handle faults and enable debugging Ben Wolsieffer
2022-09-17  4:13 ` [PATCH RESEND 1/2] ARM: v7m: handle faults Ben Wolsieffer
2022-09-17  4:13 ` [PATCH RESEND 2/2] ARM: v7m: support undefined instruction hooks Ben Wolsieffer
2022-09-18 14:59 ` [PATCH RESEND 0/2] ARM: v7m: handle faults and enable debugging Linus Walleij
2022-12-09 21:48 Ben Wolsieffer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®