From: Kees Cook <keescook@chromium.org>
To: Nathan Chancellor <nathan@kernel.org>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>,
linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org,
Nick Desaulniers <ndesaulniers@google.com>
Subject: Re: [PATCH] MIPS: Malta: Enable BLK_DEV_INITRD
Date: Tue, 8 Feb 2022 18:53:58 -0800 [thread overview]
Message-ID: <202202081853.B4C45735@keescook> (raw)
In-Reply-To: <20220208191726.1304731-1-nathan@kernel.org>
On Tue, Feb 08, 2022 at 12:17:26PM -0700, Nathan Chancellor wrote:
> This configuration is useful for boot testing malta_defconfig in QEMU
> with just a simple cpio initrd, instead of a full ext4 rootfs.
>
> This results in an increase of ~164KB of vmlinux (with GCC 11.2.0):
>
> $ diskus vmlinux.before
> 11.19 MB (11,194,368 bytes)
>
> $ diskus vmlinux.after
> 11.36 MB (11,358,208 bytes)
>
> This size increase comes from the fact that usr/Kconfig is sourced when
> CONFIG_BLK_DEV_INITRD is enabled, which defaults to supporting several
> decompression algorithms for compressed initrds. This seems like a
> reasonable tradeoff but these configurations could be disabled in the
> future if there are complaints about the size increase.
>
> Signed-off-by: Nathan Chancellor <nathan@kernel.org>
I'm all for having a regular way to test all defconfigs. So, FWIW:
Reviewed-by: Kees Cook <keescook@chromium.org>
-Kees
> ---
> arch/mips/configs/malta_defconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/mips/configs/malta_defconfig b/arch/mips/configs/malta_defconfig
> index 3321bb576944..3456ac8ded6c 100644
> --- a/arch/mips/configs/malta_defconfig
> +++ b/arch/mips/configs/malta_defconfig
> @@ -4,6 +4,7 @@ CONFIG_HIGH_RES_TIMERS=y
> CONFIG_LOG_BUF_SHIFT=15
> CONFIG_NAMESPACES=y
> CONFIG_RELAY=y
> +CONFIG_BLK_DEV_INITRD=y
> CONFIG_EXPERT=y
> # CONFIG_COMPAT_BRK is not set
> CONFIG_SLAB=y
>
> base-commit: dfd42facf1e4ada021b939b4e19c935dcdd55566
> --
> 2.35.1
>
--
Kees Cook
next prev parent reply other threads:[~2022-02-09 3:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-08 19:17 [PATCH] MIPS: Malta: Enable BLK_DEV_INITRD Nathan Chancellor
2022-02-09 2:53 ` Kees Cook [this message]
2022-02-09 13:34 ` Thomas Bogendoerfer
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=202202081853.B4C45735@keescook \
--to=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=nathan@kernel.org \
--cc=ndesaulniers@google.com \
--cc=tsbogend@alpha.franken.de \
/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