All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH 2/2] lib: fortify_kunit: build without structleak plugin
       [not found] ` <5FC4A1FD-9631-43B2-AE93-EFC059F892D3@kernel.org>
@ 2022-11-28 14:20   ` Anders Roxell
  2022-12-01 17:07     ` Kees Cook
  0 siblings, 1 reply; 2+ messages in thread
From: Anders Roxell @ 2022-11-28 14:20 UTC (permalink / raw)
  To: Kees Cook
  Cc: akpm, elver, kasan-dev, keescook, davidgow, Jason, Arnd Bergmann,
	Linux Kernel Mailing List

On Mon, 28 Nov 2022 at 15:09, Kees Cook <kees@kernel.org> wrote:
>
> On November 28, 2022 2:44:03 AM PST, Anders Roxell <anders.roxell@linaro.org> wrote:
> >Building fortify_kunit with strucleak plugin enabled makes the stack
> >frame size to grow.
> >
> >lib/fortify_kunit.c:140:1: error: the frame size of 2368 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]
>
> Under what config

I saw this with a arm64 allmodconfig build [1],

> and compiler version do you see these warnings?

Toolchain
aarch64-linux-gnu-gcc (Debian 11.3.0-6) 11.3.0


Cheers,
Anders
[1] http://ix.io/4h6w

>
> -Kees
>
> >
> >Turn off the structleak plugin checks for fortify_kunit.
> >
> >Suggested-by: Arnd Bergmann <arnd@arndb.de>
> >Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
> >---
> > lib/Makefile | 1 +
> > 1 file changed, 1 insertion(+)
> >
> >diff --git a/lib/Makefile b/lib/Makefile
> >index bdb1552cbe9c..aab32082564a 100644
> >--- a/lib/Makefile
> >+++ b/lib/Makefile
> >@@ -382,6 +382,7 @@ obj-$(CONFIG_OVERFLOW_KUNIT_TEST) += overflow_kunit.o
> > CFLAGS_stackinit_kunit.o += $(call cc-disable-warning, switch-unreachable)
> > obj-$(CONFIG_STACKINIT_KUNIT_TEST) += stackinit_kunit.o
> > CFLAGS_fortify_kunit.o += $(call cc-disable-warning, unsequenced)
> >+CFLAGS_fortify_kunit.o += $(DISABLE_STRUCTLEAK_PLUGIN)
> > obj-$(CONFIG_FORTIFY_KUNIT_TEST) += fortify_kunit.o
> > obj-$(CONFIG_STRSCPY_KUNIT_TEST) += strscpy_kunit.o
> > obj-$(CONFIG_SIPHASH_KUNIT_TEST) += siphash_kunit.o
>
>
> --
> Kees Cook

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

* Re: [PATCH 2/2] lib: fortify_kunit: build without structleak plugin
  2022-11-28 14:20   ` [PATCH 2/2] lib: fortify_kunit: build without structleak plugin Anders Roxell
@ 2022-12-01 17:07     ` Kees Cook
  0 siblings, 0 replies; 2+ messages in thread
From: Kees Cook @ 2022-12-01 17:07 UTC (permalink / raw)
  To: Anders Roxell
  Cc: Kees Cook, akpm, elver, kasan-dev, davidgow, Jason,
	Arnd Bergmann, Linux Kernel Mailing List

On Mon, Nov 28, 2022 at 03:20:13PM +0100, Anders Roxell wrote:
> On Mon, 28 Nov 2022 at 15:09, Kees Cook <kees@kernel.org> wrote:
> >
> > On November 28, 2022 2:44:03 AM PST, Anders Roxell <anders.roxell@linaro.org> wrote:
> > >Building fortify_kunit with strucleak plugin enabled makes the stack
> > >frame size to grow.
> > >
> > >lib/fortify_kunit.c:140:1: error: the frame size of 2368 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]

(It seems like lkml never got this email? Or at least I didn't find it
on lore, so "b4" was unhappy...)

> > Under what config
> 
> I saw this with a arm64 allmodconfig build [1],
> 
> > and compiler version do you see these warnings?
> 
> Toolchain
> aarch64-linux-gnu-gcc (Debian 11.3.0-6) 11.3.0

Thanks! I've applied this to my tree.

-- 
Kees Cook

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

end of thread, other threads:[~2022-12-01 17:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20221128104403.2660703-1-anders.roxell@linaro.org>
     [not found] ` <5FC4A1FD-9631-43B2-AE93-EFC059F892D3@kernel.org>
2022-11-28 14:20   ` [PATCH 2/2] lib: fortify_kunit: build without structleak plugin Anders Roxell
2022-12-01 17:07     ` Kees Cook

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.