lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250721-spiked-adamant-hyrax-eea284@lindesnes>
Date: Mon, 21 Jul 2025 22:02:36 +0200
From: Nicolas Schier <nicolas.schier@...ux.dev>
To: Kees Cook <kees@...nel.org>
Cc: Arnd Bergmann <arnd@...db.de>, Ingo Molnar <mingo@...nel.org>,
	x86@...nel.org, "Gustavo A. R. Silva" <gustavoars@...nel.org>,
	linux-doc@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
	kvmarm@...ts.linux.dev, linux-riscv@...ts.infradead.org,
	linux-s390@...r.kernel.org, linux-efi@...r.kernel.org,
	linux-hardening@...r.kernel.org, linux-kbuild@...r.kernel.org,
	linux-security-module@...r.kernel.org,
	linux-kselftest@...r.kernel.org, Christoph Hellwig <hch@....de>,
	Andrey Konovalov <andreyknvl@...il.com>,
	Andrey Ryabinin <ryabinin.a.a@...il.com>,
	Ard Biesheuvel <ardb@...nel.org>,
	Masahiro Yamada <masahiroy@...nel.org>,
	Nathan Chancellor <nathan@...nel.org>,
	Nick Desaulniers <nick.desaulniers+lkml@...il.com>,
	Bill Wendling <morbo@...gle.com>,
	Justin Stitt <justinstitt@...gle.com>, linux-kernel@...r.kernel.org,
	kasan-dev@...glegroups.com, sparclinux@...r.kernel.org,
	llvm@...ts.linux.dev
Subject: Re: [PATCH v3 01/13] stackleak: Rename STACKLEAK to KSTACK_ERASE

On Thu, Jul 17, 2025 at 04:25:06PM -0700, Kees Cook wrote:
> In preparation for adding Clang sanitizer coverage stack depth tracking
> that can support stack depth callbacks:
> 
> - Add the new top-level CONFIG_KSTACK_ERASE option which will be
>   implemented either with the stackleak GCC plugin, or with the Clang
>   stack depth callback support.
> - Rename CONFIG_GCC_PLUGIN_STACKLEAK as needed to CONFIG_KSTACK_ERASE,
>   but keep it for anything specific to the GCC plugin itself.
> - Rename all exposed "STACKLEAK" names and files to "KSTACK_ERASE" (named
>   for what it does rather than what it protects against), but leave as
>   many of the internals alone as possible to avoid even more churn.
> 
> While here, also split "prev_lowest_stack" into CONFIG_KSTACK_ERASE_METRICS,
> since that's the only place it is referenced from.
> 
> Suggested-by: Ingo Molnar <mingo@...nel.org>
> Signed-off-by: Kees Cook <kees@...nel.org>
> ---
> Cc: Arnd Bergmann <arnd@...db.de>
> Cc: <x86@...nel.org>
> Cc: "Gustavo A. R. Silva" <gustavoars@...nel.org>
> Cc: <linux-doc@...r.kernel.org>
> Cc: <linux-arm-kernel@...ts.infradead.org>
> Cc: <kvmarm@...ts.linux.dev>
> Cc: <linux-riscv@...ts.infradead.org>
> Cc: <linux-s390@...r.kernel.org>
> Cc: <linux-efi@...r.kernel.org>
> Cc: <linux-hardening@...r.kernel.org>
> Cc: <linux-kbuild@...r.kernel.org>
> Cc: <linux-security-module@...r.kernel.org>
> Cc: <linux-kselftest@...r.kernel.org>
> ---
>  arch/Kconfig                                  |  4 +--
>  arch/arm/Kconfig                              |  2 +-
>  arch/arm64/Kconfig                            |  2 +-
>  arch/riscv/Kconfig                            |  2 +-
>  arch/s390/Kconfig                             |  2 +-
>  arch/x86/Kconfig                              |  2 +-
>  security/Kconfig.hardening                    | 36 ++++++++++---------
>  arch/arm/boot/compressed/Makefile             |  2 +-
>  arch/arm64/kernel/pi/Makefile                 |  2 +-
>  arch/arm64/kvm/hyp/nvhe/Makefile              |  2 +-
>  arch/riscv/kernel/pi/Makefile                 |  2 +-
>  arch/riscv/purgatory/Makefile                 |  2 +-
>  arch/x86/purgatory/Makefile                   |  2 +-

Did you miss arch/loongarch/Kconfig by accident?

$ git grep -Hrne ARCH_STACKLEAK
arch/loongarch/Kconfig:127:     select HAVE_ARCH_STACKLEAK

Kind regards,
Nicolas

Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ