From: Hajime Tazaki <thehajime@gmail.com>
To: akpm@linux-foundation.org
Cc: liam@infradead.org, ljs@kernel.org, vbabka@kernel.org,
jannh@google.com, pfalcato@suse.de, linux-mm@kvack.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mm: nommu: add sysctl_max_map_count() check for do_mmap()
Date: Mon, 06 Jul 2026 11:03:27 +0900 [thread overview]
Message-ID: <m2qzlgub68.wl-thehajime@gmail.com> (raw)
In-Reply-To: <20260705174443.08a11649b8e1c9e58e8cae22@linux-foundation.org>
On Mon, 06 Jul 2026 09:44:43 +0900,
Andrew Morton wrote:
> >
> > I will follow up with another patch for the issue detected here.
>
> Great, thanks.
>
> > btw, I found (and sashiko also detected) several typos for this
> > particular patch. Can I send v2 patch with the additional fix, or do
> > you prefer that I'll only send the additional patch ?
>
> Ah. Well. Confession. I actually quietly fed your changelog through
> Gemini to fix up a few things, resulting in
>
> : The sysctl variable vm.max_map_count (sysctl_max_map_count) is not exposed
> : under !MMU configurations, but its default value (DEFAULT_MAX_MAP_COUNT)
> : is still used as a allocation limit. Currently, this limit is enforced
> : when a VMA entry is split into two chunks (split_vma()), but it is not
> : checked during initial allocation (do_mmap()). As a result, if a user
> : requests a large number of memory allocations, the system will continue
> : allocating until it hits an Out-Of-Memory (OOM) condition.
> :
> : This commit introduces a check at the beginning of do_mmap() in nommu.c to
> : prevent this situation.
> :
> : This issue was detected using the Linux Test Project (LTP) test linked
> : below.
thanks, this is perfect.
> I did this "quietly" because it feels a bit rude telling people that
> their English isn't great ;)
>
> Lots of non-English speakers appear to be using LLMs on their
> changelogs nowadays and as long as they double-check the result, I
> think it's working very well!
thanks for handling this and a kind way to fix my mistakes.
yes, the AI era.
I will send a follow up patch for the additional issue.
-- Hajime
prev parent reply other threads:[~2026-07-06 2:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-02 1:28 [PATCH] mm: nommu: add sysctl_max_map_count() check for do_mmap() Hajime Tazaki
2026-07-05 22:10 ` Andrew Morton
2026-07-05 22:15 ` Andrew Morton
2026-07-06 0:19 ` Hajime Tazaki
2026-07-06 0:44 ` Andrew Morton
2026-07-06 2:03 ` Hajime Tazaki [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=m2qzlgub68.wl-thehajime@gmail.com \
--to=thehajime@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=jannh@google.com \
--cc=liam@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=ljs@kernel.org \
--cc=pfalcato@suse.de \
--cc=vbabka@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 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.