Re: [PATCH v2] stack: Declare {randomize_,}kstack_offset to fix Sparse warnings
From: Kees Cook <hidden>
Date: 2022-07-02 01:02:53
Also in:
linux-hardening, lkml
From: Kees Cook <hidden>
Date: 2022-07-02 01:02:53
Also in:
linux-hardening, lkml
On Wed, 29 Jun 2022 14:04:23 +0800, GONG, Ruiqi wrote:
Fix the following Sparse warnings that got noticed when the PPC-dev patchwork was checking another patch (see the link below): init/main.c:862:1: warning: symbol 'randomize_kstack_offset' was not declared. Should it be static? init/main.c:864:1: warning: symbol 'kstack_offset' was not declared. Should it be static? Which in fact are triggered on all architectures that have HAVE_ARCH_RANDOMIZE_KSTACK_OFFSET support (for instances x86, arm64 etc). [...]
Applied to for-next/hardening, thanks!
[1/1] stack: Declare {randomize_,}kstack_offset to fix Sparse warnings
https://git.kernel.org/kees/c/375561bd6195
--
Kees Cook