From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] caif: reduce stack size with KASAN Date: Fri, 19 Jan 2018 14:02:44 -0500 (EST) Message-ID: <20180119.140244.1017370023425696102.davem@davemloft.net> References: <20180116163417.1580826-1-arnd@arndb.de> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: dmitry.tarnyagin@lockless.no, netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: arnd@arndb.de Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:45446 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755830AbeASTCs (ORCPT ); Fri, 19 Jan 2018 14:02:48 -0500 In-Reply-To: <20180116163417.1580826-1-arnd@arndb.de> Sender: netdev-owner@vger.kernel.org List-ID: From: Arnd Bergmann 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 > --- > 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.