[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180119.140244.1017370023425696102.davem@davemloft.net>
Date: Fri, 19 Jan 2018 14:02:44 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: arnd@...db.de
Cc: dmitry.tarnyagin@...kless.no, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] caif: reduce stack size with KASAN
From: Arnd Bergmann <arnd@...db.de>
Date: Tue, 16 Jan 2018 17:34:00 +0100
> When CONFIG_KASAN is set, we can use relatively large amounts of kernel
> stack space:
>
> net/caif/cfctrl.c:555:1: warning: the frame size of 1600 bytes is larger than 1280 bytes [-Wframe-larger-than=]
>
> This adds convenience wrappers around cfpkt_extr_head(), which is responsible
> for most of the stack growth. With those wrapper functions, gcc apparently
> starts reusing the stack slots for each instance, thus avoiding the
> problem.
>
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
> ---
> I sent this in December, but apparently got the wrong Cc list.
> It also seems that Dmitry Tarnyagin's email address as listed
> in the MAINTAINERS file is invalid.
>
> Resending now.
Applied to net-next, thanks Arnd.
Powered by blists - more mailing lists