Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp44384rdb; Tue, 16 Jan 2024 14:29:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IEHpLWur8DpBABE5q27lEyRgBKMu1wSTTRVryubcqiR+Q34QcmuvjnEUEZVFsaY3GJgZIHk X-Received: by 2002:a05:620a:c09:b0:783:14d6:9291 with SMTP id l9-20020a05620a0c0900b0078314d69291mr7346035qki.23.1705444148979; Tue, 16 Jan 2024 14:29:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705444148; cv=pass; d=google.com; s=arc-20160816; b=WD/KFavYceadqvbGAGQR9Divub9QXbIIpOGDk7Ul7hhx4YRQ1yGqHVN29LfqmbT/7w plrM1MwhPR2BjAkY1g/KJNrQeoZVI7aNzX7agcNST4MjFLhzxAq7nU2bku9/TJtQpfLD gElqWJHsmWiX5aBrsUu4aLRvuMKXkUwSkcmI7TnGyKPh76RpQejqEm7iZxU6MyjwBLir m+sbBxVeakuDX6cylN5H9Z8R2eqc+/FBz5kgEipoOpIinDTglXGJ2efxcbSEiIjZUhk9 UbMEr8lVGW7tOycqm3+f76NZc1E0iDSPE2bO67VBIVc5ZxgGgSQS1y1s3yWbV38SYFoq WuIA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=RVNf0lJjKwwtV9FTvKS8yEAfBE66SEEO00uo+1ZVHWE=; fh=weGp9QkdZsOSzuk16m6T6wCfiu2Zhaplr+6EpGUyQsY=; b=RCY1FlmkFVkJXZYGqD0doOYdXqyvaorsxn2kiOeZsdv6IxTijBLfX1ulh6P9MXB7AS XEfl+yHLYV+y1yFFebyMuMJVFqXPzLisJOPebUVvCJqdTxoB0K/lYuPWinj4JZaVtCHr iF8fYdP/tnRuxuWls/0js3PwB4oEwa3n8HpgpvU1btqzJpe6PLnDi/pvJPUrTQ7D6pFe CcwBzDRSYSKQfwVS33W9EkATYKCTn/Mr+nreYKg3ALwZct06ao4irWdQD2/L3yAPo2VC RqwvFc7Vt8Yayi/MBVZOypWK8neK/XoNR2o10J4HvEq9BCtJAa0sYXF3tOUv+adIv3R6 Y4LQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=XSdGJ7Y4; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-28307-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28307-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id a14-20020a05620a02ee00b00783571b7509si3780739qko.483.2024.01.16.14.29.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 14:29:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-28307-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=XSdGJ7Y4; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-28307-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28307-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B8F361C280C1 for ; Tue, 16 Jan 2024 22:29:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0C2BF3529F; Tue, 16 Jan 2024 21:32:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="XSdGJ7Y4" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 056DE328C9 for ; Tue, 16 Jan 2024 21:32:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705440724; cv=none; b=E9u0ZRqtB7r2rN7tMbUAHNAm8AgSjwkHzz9sz4u2MoaH6r3MD+m1YjS0PHwSwqhXO9VBmyyKgj3zUDtyNdwXuv1U8GAc4scHoes6lE/v9XJeyyEKz+tiZYfocIqYw/F/7Guz7Du41PXZ47N6t6ModBzl+mXd5KHW6zd9/xpnLmw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705440724; c=relaxed/simple; bh=Km38UH1gQEJmb+o0r2Lh1oKVg5SrOpeW9EYhafnGdxk=; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-Id: In-Reply-To:References:X-Mailer:Mime-Version:Content-Type: Content-Transfer-Encoding; b=rqiVzSLm06r9PL0DWSUFEhksU+UsCfzvHvpK9G24nS17lWRBCA3UhMC5YQvF0u8xpDneZYi72Gy48GJbEYce12XLX2C2ZoxUBgu2RnIq3wguJHKONbS6bvTQB5qD/GPeIp8HaLbkYxnvBbgwr5pVyJoAFJcL1YQ1thJOBGFZVlQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=XSdGJ7Y4; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76F57C433C7; Tue, 16 Jan 2024 21:32:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1705440723; bh=Km38UH1gQEJmb+o0r2Lh1oKVg5SrOpeW9EYhafnGdxk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=XSdGJ7Y4JCeYaWbrVEqw+Zg0L4uXOcmX6i8UjcuDseFSWJyMhckQyGQ0d8ZlIgfzq 1juNyI0buP50zwaEBagiKtsmQsoqFEFrLI3jytRX7qSs94dLEL2dQSbuME8qo9pvz8 iu7kJklDa/fxoDthC2UkMNGcDtPc8qaQlfiaBrOg= Date: Tue, 16 Jan 2024 13:31:59 -0800 From: Andrew Morton To: Yang Shi Cc: "Zach O'Keefe" , Yin Fengwei , oliver.sang@intel.com, riel@surriel.com, willy@infradead.org, cl@linux.com, ying.huang@intel.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 2/2] mm: mmap: map MAP_STACK to VM_NOHUGEPAGE Message-Id: <20240116133159.f92cbfebd792d85a498c23fa@linux-foundation.org> In-Reply-To: References: <20231221065943.2803551-1-shy828301@gmail.com> <20231221065943.2803551-2-shy828301@gmail.com> <7433e325-9af7-4b8c-888e-07a0debf8e46@intel.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 16 Jan 2024 12:57:41 -0800 Yang Shi wrote: > > Should this be marked for stable? Given how easily it is for pthreads > > to allocate hugepages w/o this change, it can easily cause memory > > bloat on larger systems and/or users with high thread counts. I don't > > think that will be welcomed, and seems odd that just 6.7 should suffer > > this. > > Thanks for the suggestion, fine to me. > Thanks, added, along with Fixes: efa7df3e3bb5 ("mm: align larger anonymous mappings on THP boundaries")