Re: [PATCH 0/5] add stack protector and guard page support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Sep 11, 2023 at 05:08:55PM +0200, Ahmad Fatoum wrote:
> 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

Applied, thanks

Sascha

> 
>  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
> 
> 
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux