From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756162AbeASTCy (ORCPT ); Fri, 19 Jan 2018 14:02:54 -0500 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 Date: Fri, 19 Jan 2018 14:02:44 -0500 (EST) Message-Id: <20180119.140244.1017370023425696102.davem@davemloft.net> To: arnd@arndb.de Cc: dmitry.tarnyagin@lockless.no, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] caif: reduce stack size with KASAN From: David Miller In-Reply-To: <20180116163417.1580826-1-arnd@arndb.de> References: <20180116163417.1580826-1-arnd@arndb.de> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.