From: David Miller <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
Date: Fri, 19 Jan 2018 14:02:44 -0500 (EST) [thread overview]
Message-ID: <20180119.140244.1017370023425696102.davem@davemloft.net> (raw)
In-Reply-To: <20180116163417.1580826-1-arnd@arndb.de>
From: Arnd Bergmann <arnd@arndb.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@arndb.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.
prev parent reply other threads:[~2018-01-19 19:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-16 16:34 [PATCH] caif: reduce stack size with KASAN Arnd Bergmann
2018-01-19 19:02 ` David Miller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180119.140244.1017370023425696102.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=arnd@arndb.de \
--cc=dmitry.tarnyagin@lockless.no \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).