From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2EBE537BE7D for ; Mon, 6 Jul 2026 02:03:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783303414; cv=none; b=CbYh+zwrLFWeiorXCp/FiVn4AILrMtVhsfC0eCc7PWscBbQQcV2T/PiNrUBxJDW1lu3zajo3eq8BfoSAq+jCElk9YWDmzt4sJu7e1vE436xiganlwpIr5HmeoY8auVp38jSc9FYRNexbpvxQR/YjAntzcoBcoZ7mot+zouMPP+Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783303414; c=relaxed/simple; bh=VwfKLJMtDbxDxk2HJvt8/PiXjL25ccvi6nHrrxHHGl4=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=j4yVdx0shIo5s8cFoXr6R4NlcRNdNjkc3+/jNDbyc7kxR8HRRIfAl0Z9l5U5ST1DwlMkPLVou/xaPLZTJLW1/0AxdOXGK6RGUDAVdoFF/fO5uehq/ul4yliOP8bsDAKDLsuN1uclqU4h7vJfb27BosGVpO2LtY9rz69nblSR+/M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=in4JJBsW; arc=none smtp.client-ip=209.85.215.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="in4JJBsW" Received: by mail-pg1-f177.google.com with SMTP id 41be03b00d2f7-c9e2489e117so1221773a12.0 for ; Sun, 05 Jul 2026 19:03:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783303412; x=1783908212; darn=vger.kernel.org; h=mime-version:user-agent:references:in-reply-to:subject:cc:to:from :message-id:date:from:to:cc:subject:date:message-id:reply-to; bh=VpbU2nD8Sf2VfGjQR5NkWq7+R61c2WqH91bcQarOxZE=; b=in4JJBsWM1B4EL8T8+zXmA+ThskxeeQT+ESY6YaDiSLYkW0Prcpv2/Bwwh25pjLXeH tu49WOZejZQQNdoPSl6dsaxQ8G76S887FVpNng8sjl5BV4Usw8vtTEb2XMp2zdj+Ydei dgxiplayzf4uqPiKVgjWRLBtgoniPWaWKF51vCrecSeWqI0OINlY38c0ZQ2GC85Fy+LC 2H8TV3qfWo99hidARwaKBDDut+G16jS49wOnCgFJEsGW+Jwh1MGUrl1McuEoN4sODFVh iH7K3FwOvVLDehIMCXRwjTXH3hZFlpPYy5rfkS6bPPmKwe5I004ySd5QhsioHmxd8QBD Y+6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783303412; x=1783908212; h=mime-version:user-agent:references:in-reply-to:subject:cc:to:from :message-id:date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=VpbU2nD8Sf2VfGjQR5NkWq7+R61c2WqH91bcQarOxZE=; b=FSf/c5w7RVXZcB40caPeJMFi912a101eY9riFR8RGavXzvKzQGlOfK6KMWMO3AJM55 oQNL0pSzgtzmyb5FQl4QsJ42H1+bS3kj1AnWTOWbnlK1gXcwPZZU/OwRx0GNCVaOMFkx uS24Stxa3PxD6xyTUgzX49NoBN+T4UUuiMtu3kUaAcNFIWgqnbeXZpixXzTRctEXcp1g Ha7zJNQPBGosr5mVnBJlcK3Z7zzhBVMxrU5JcV/mvyAlndQmCbw29ohCxeK/dh+UTzl0 9k3b/B8IBxyA9zIV+AIGNsEV/EaYsDl346vweU3iKa7Zftqgf6+fKFPH8YVcY/etWEY5 iYnA== X-Forwarded-Encrypted: i=1; AHgh+RpTkCYvmkduXQmmNL2fEqxGw0GWWQoAYOejaBuVMDC7PuhB/G6dK7KlOz+WhoR8l9q+aL2rb7MrtsbtfGw=@vger.kernel.org X-Gm-Message-State: AOJu0Yw+e9fSsVCn00jZY9MdqIlZuY/mwNyTe8hQ9fYX//Q134e90N8Q 8ry+D5KrPekYJuS5oQfVaaLsnnhhX3SHrQ85cbWMGXV6xjNnZCykj6QZZNq7MZVU X-Gm-Gg: AfdE7cmDFxuczpYEdQW02tvebgc4h0BjhBS4+yrXk+uw2m4OIFHY0REZhzxMovhBtf4 cQqeV2r/6y4PU7pumRQC2RWkseMgC8hMyxSvIF6NnWfSgPFJ5yVyaI7IlkbW3qL4y4iUpnlL1Wm ng1IGqNvDgoMh2KfawSIeFxGAS/BAxZ80wV4/3yDR9fTl5+TmjwKFRr/L80q+6GqlVbtJf+ZxiR w2qsdDnbq95b6Y4NWVOXmg8kelBEixXOzCgcob2dyS2JlLrUFyk/9Y+JsQ41auY81YlMRoO9NKd Kwn7Gw5/z/NCbXakWyG6YuVAWR/ugcoD7bjPCTN6kPl6SyzOniA//9P+gwSzmRnSMnlc3rxwvMR koznXtYF1xSCS5GttaMJFdr9FwFrr7jeo/eS2+M3YRNkBVLBdJkERwZBBB9nwsBiV+H+GNsWVD1 fsHd+teCFisYpJAtqd2CtO5J+TG9bKQ73hcdTYDsxDVut0dtVCmdJgEUEHl7upLKH1YPlyAjv75 4D9FqNzLCDW X-Received: by 2002:a05:6300:2287:b0:3bf:a941:8932 with SMTP id adf61e73a8af0-3c03e1f54bfmr8834888637.19.1783303412412; Sun, 05 Jul 2026 19:03:32 -0700 (PDT) Received: from mars.local.gmail.com ([240a:61:3285:c322:28fc:365:cb6f:6417]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c9e921d28d9sm5082966a12.24.2026.07.05.19.03.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jul 2026 19:03:31 -0700 (PDT) Date: Mon, 06 Jul 2026 11:03:27 +0900 Message-ID: From: Hajime Tazaki 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() In-Reply-To: <20260705174443.08a11649b8e1c9e58e8cae22@linux-foundation.org> References: <20260702012830.667205-1-thehajime@gmail.com> <20260705151512.5edabd9bb5d11cb6f1c6309f@linux-foundation.org> <20260705174443.08a11649b8e1c9e58e8cae22@linux-foundation.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII 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