From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 0/5] add stack protector and guard page support
Date: Mon, 11 Sep 2023 17:08:55 +0200 [thread overview]
Message-ID: <20230911150900.3584523-1-a.fatoum@pengutronix.de> (raw)
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
next reply other threads:[~2023-09-11 15:10 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-11 15:08 Ahmad Fatoum [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230911150900.3584523-1-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox