mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/5] add stack protector and guard page support
@ 2023-09-11 15:08 Ahmad Fatoum
  2023-09-11 15:08 ` [PATCH 1/5] include: move PAGE_ definitions into linux/pagemap.h Ahmad Fatoum
                   ` (7 more replies)
  0 siblings, 8 replies; 13+ messages in thread
From: Ahmad Fatoum @ 2023-09-11 15:08 UTC (permalink / raw)
  To: barebox

GCC's strong stack protector feature is increasingly used as default in
many distros, because of comparatively low overhead. This series adds
support in barebox to catch stack frame overflow as well as a guard
page feature to catch stack region overflow.

Ahmad Fatoum (5):
  include: move PAGE_ definitions into linux/pagemap.h
  ARM: mark early C setup functions as __prereloc
  lib: add stackprotector support
  ARM: mmu: catch stack overflowing into TTB with stack guard page
  commands: add stacksmash command for causing stack overflows

 Makefile                           |   3 -
 arch/arm/cpu/common.c              |   2 +-
 arch/arm/cpu/interrupts_32.c       |  21 +++++-
 arch/arm/cpu/interrupts_64.c       |  38 +++++++---
 arch/arm/cpu/mmu_32.c              |  16 +++++
 arch/arm/cpu/mmu_64.c              |  15 ++++
 arch/arm/cpu/start.c               |   4 +-
 arch/arm/include/asm/barebox-arm.h |  18 ++++-
 arch/arm/include/asm/reloc.h       |   2 +-
 arch/arm/lib64/string.c            |   2 +-
 commands/Kconfig                   |   6 ++
 commands/Makefile                  |   1 +
 commands/stacksmash.c              |  58 ++++++++++++++++
 include/common.h                   |   6 +-
 include/linux/compiler_types.h     |  21 ++++++
 include/linux/pagemap.h            |   8 ++-
 lib/Kconfig                        |   2 +
 lib/Kconfig.hardening              | 108 +++++++++++++++++++++++++++++
 lib/Makefile                       |   1 +
 lib/stackprot.c                    |  32 +++++++++
 lib/string.c                       |   2 +-
 scripts/Makefile.lib               |  10 +++
 22 files changed, 350 insertions(+), 26 deletions(-)
 create mode 100644 commands/stacksmash.c
 create mode 100644 lib/Kconfig.hardening
 create mode 100644 lib/stackprot.c

-- 
2.39.2




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

end of thread, other threads:[~2023-09-21  8:53 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-11 15:08 [PATCH 0/5] add stack protector and guard page support Ahmad Fatoum
2023-09-11 15:08 ` [PATCH 1/5] include: move PAGE_ definitions into linux/pagemap.h Ahmad Fatoum
2023-09-11 15:08 ` [PATCH 2/5] ARM: mark early C setup functions as __prereloc Ahmad Fatoum
2023-09-11 15:08 ` [PATCH 3/5] lib: add stackprotector support Ahmad Fatoum
2023-09-21  8:52   ` [PATCH] fixup! " Ahmad Fatoum
2023-09-11 15:08 ` [PATCH 4/5] ARM: mmu: catch stack overflowing into TTB with stack guard page Ahmad Fatoum
2023-09-11 15:09 ` [PATCH 5/5] commands: add stacksmash command for causing stack overflows Ahmad Fatoum
2023-09-12  4:48   ` Thorsten Scherer
2023-09-11 15:47 ` [PATCH] fixup! lib: add stackprotector support Ahmad Fatoum
2023-09-14  9:14 ` [PATCH] fixup! commands: add stacksmash command for causing stack overflows Ahmad Fatoum
2023-09-14 10:22   ` Thorsten Scherer
2023-09-14 11:05     ` Ahmad Fatoum
2023-09-21  8:49 ` [PATCH 0/5] add stack protector and guard page support Sascha Hauer

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