Re: [PATCH 4.4 163/193] kasan: rework Kconfig settings

From: Ben Hutchings
Date: Tue Mar 06 2018 - 09:29:45 EST


On Fri, 2018-02-23 at 19:26 +0100, Greg Kroah-Hartman wrote:
> 4.4-stable review patch.ÂÂIf anyone has any objections, please let me know.
>
> ------------------
>
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> commit e7c52b84fb18f08ce49b6067ae6285aca79084a8 upstream.
[...]
> --- a/lib/Kconfig.debug
> +++ b/lib/Kconfig.debug
> @@ -197,7 +197,7 @@ config ENABLE_MUST_CHECK
> Âconfig FRAME_WARN
> Â int "Warn for stack frames larger than (needs gcc 4.4)"
> Â range 0 8192
> - default 0 if KASAN
> + default 2048 if GCC_PLUGIN_LATENT_ENTROPY
> Â default 1024 if !64BIT
>Â default 2048 if 64BIT
> Â help

This doesn't make sense for 4.4. There is no GCC_PLUGIN_LATENT_ENTROPY
in 4.4, and this line wasn't added by the upstream commit.

I think all that was really needed in the backport was to delete the
'default 0', right?

Ben.

--
Ben Hutchings
Software Developer, Codethink Ltd.