From: Kees Cook <kees@kernel.org>
To: Yin Fengwei <nh26223@aliyun.com>
Cc: Ismael Luceno <ismael@iodev.co.uk>,
Yin Fengwei <fengwei_yin@linux.alibaba.com>,
linux-kernel@vger.kernel.org, linux-mm@kvack.org,
zhourundong.zrd@linux.alibaba.com
Subject: Re: [PATCH] binfmt_elf: remove the 4k limitation of program header size
Date: Mon, 4 Aug 2025 08:16:32 -0700 [thread overview]
Message-ID: <202508040815.0BB8B41AD@keescook> (raw)
In-Reply-To: <b98058f0-79fd-4dc5-af7f-d37941eb5707@aliyun.com>
On Mon, Aug 04, 2025 at 10:00:41PM +0800, Yin Fengwei wrote:
> If this is really a concern, we can add 4K restriction only for
> noMMU. Thanks.
My point is that the headers are loaded via elf_read()/kernel_read().
There is no direct mapping, etc, that would result in some single page;
it's already bounds checked, loaded into a distinct memory area, etc.
--
Kees Cook
prev parent reply other threads:[~2025-08-04 15:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-17 11:01 [PATCH] binfmt_elf: remove the 4k limitation of program header size fengwei_yin
2025-07-17 23:31 ` Kees Cook
2025-07-19 9:17 ` YinFengwei
2025-08-02 3:53 ` Ismael Luceno
[not found] ` <202508021029.7CC8B334@keescook>
2025-08-03 5:28 ` Ismael Luceno
2025-08-04 2:12 ` Yin Fengwei
2025-08-04 7:19 ` Ismael Luceno
2025-08-04 7:38 ` Yin Fengwei
2025-08-04 14:00 ` Yin Fengwei
2025-08-04 15:16 ` Kees Cook [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=202508040815.0BB8B41AD@keescook \
--to=kees@kernel.org \
--cc=fengwei_yin@linux.alibaba.com \
--cc=ismael@iodev.co.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=nh26223@aliyun.com \
--cc=zhourundong.zrd@linux.alibaba.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.