[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202109170856.8DDB49112D@keescook>
Date: Fri, 17 Sep 2021 08:56:56 -0700
From: Kees Cook <keescook@...omium.org>
To: Brendan Higgins <brendanhiggins@...gle.com>
Cc: shuah@...nel.org, davidgow@...gle.com, arnd@...db.de,
rafael@...nel.org, jic23@...nel.org, lars@...afoo.de,
ulf.hansson@...aro.org, andreas.noever@...il.com,
michael.jamet@...el.com, mika.westerberg@...ux.intel.com,
YehezkelShB@...il.com, masahiroy@...nel.org,
michal.lkml@...kovi.net, ndesaulniers@...gle.com,
linux-kselftest@...r.kernel.org, kunit-dev@...glegroups.com,
linux-kernel@...r.kernel.org, torvalds@...ux-foundation.org,
gregkh@...uxfoundation.org, linux-iio@...r.kernel.org,
linux-mmc@...r.kernel.org, linux-usb@...r.kernel.org,
linux-hardening@...r.kernel.org, linux-kbuild@...r.kernel.org
Subject: Re: [PATCH v1 5/6] mmc: sdhci-of-aspeed: build kunit tests without
structleak plugin
On Thu, Sep 16, 2021 at 11:11:03PM -0700, Brendan Higgins wrote:
> The structleak plugin causes the stack frame size to grow immensely when
> used with KUnit.
>
> Turn it off.
>
> Co-developed-by: Arnd Bergmann <arnd@...db.de>
> Signed-off-by: Brendan Higgins <brendanhiggins@...gle.com>
> ---
> drivers/mmc/host/Makefile | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/mmc/host/Makefile b/drivers/mmc/host/Makefile
> index 14004cc09aaad..2ab083931f8fd 100644
> --- a/drivers/mmc/host/Makefile
> +++ b/drivers/mmc/host/Makefile
> @@ -85,6 +85,7 @@ obj-$(CONFIG_MMC_SDHCI_DOVE) += sdhci-dove.o
> obj-$(CONFIG_MMC_SDHCI_TEGRA) += sdhci-tegra.o
> obj-$(CONFIG_MMC_SDHCI_OF_ARASAN) += sdhci-of-arasan.o
> obj-$(CONFIG_MMC_SDHCI_OF_ASPEED) += sdhci-of-aspeed.o
> +CFLAGS_sdhci-of-aspeed.o += $(DISABLE_STRUCTLEAK_PLUGIN)
This isn't a stand-alone test object, so I'm less excited about
disabling STRUCTLEAK here.
> obj-$(CONFIG_MMC_SDHCI_OF_AT91) += sdhci-of-at91.o
> obj-$(CONFIG_MMC_SDHCI_OF_ESDHC) += sdhci-of-esdhc.o
> obj-$(CONFIG_MMC_SDHCI_OF_HLWD) += sdhci-of-hlwd.o
> --
> 2.33.0.464.g1972c5931b-goog
>
--
Kees Cook
Powered by blists - more mailing lists