Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp691332rdh; Wed, 7 Feb 2024 18:01:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW0HUITMZkV5bGfhduIwI/xKI51CMmo+P93HCvJ5kV93z9qpfpeptfCriR5r0TJGNaqed/OW1nABbuEHWP4PTsj3tfFzRe7a7M9h+YM8Q== X-Google-Smtp-Source: AGHT+IEwaE2RPGzWUQ4mF5v1GkMIDb+s2jMGhxtc2jD8vtM/jU2rUqNNZw6p1zwWOHMAXGPfuT3h X-Received: by 2002:a62:d445:0:b0:6e0:2e81:89f with SMTP id u5-20020a62d445000000b006e02e81089fmr4573909pfl.33.1707357681874; Wed, 07 Feb 2024 18:01:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707357681; cv=pass; d=google.com; s=arc-20160816; b=vgzZYglvP1ql+mt7qQvZRKsCyJDrUzuD7UIEonYz9V+gEkM3efiFssGSq+AGZY6YaS ogeZUbCZsoDcaIRx3UMUc0t+wifgZU9AtLN8Bihbet0bzqchiMHxqxgqnct5alNEQzuN 7eCBkOLyJ8YIabuYeUzrrlqg16KKota2h6klVds+bd+HlJ9FQuSXRKJoce6R9qIgxOKh DqITwUCUx0N89WqeGqIzYeatEV90YEwYpkzzLHRQwAWTjwUvKkJk2dIvsn3OVvM38AGb 07Fo8+TkyWYQ3ebNJRuMakxApx83t+JkK+zPXL8LxWAeeojaW8SYLna0Nw5CXKR/47K/ 64EA== 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=f17VA0K/59Gswb1cNQeS+97yCPfT5U8DLi0nKEQk0NM=; fh=Nc1T2UPLnx1vz+V7PvCrIdEEENUg5F3V5yt0zzsZmuA=; b=QyfY8DqRT8zhQ/vDsNZ2OG8bhgUQXfnaMOfbJEDhkYg/RaawqeXWgc2b46mv1OfMIk 3HmkHoqi6t1RCcR1QZ010FE5CMIhi7JEQYpzcp9UHJR/CrcYrmqapJt/JMBTOXQlVqaR sT1F2TwbPQO1gpo5HQ1JfbI8ywlgDwZPvqPsPabTpFWgney+qjSf6kMV7sE93qo137DK 7XCUED46r66FJ875xpQL3LmIiXJItF8YBCNNgSZ4Om+NPmLZswqhyXSHA2j44ko3z6t+ BTtqbehC7d094OM/PcoMdNF9iCv6oRyfaf6VlgiBIIZKIDmMFTsvmo8CKBLYYdYdo1s8 5q8w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=ry4rv5Zd; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-57381-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57381-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCWWd38c+i0fUi+vsjwJTiH5c3HE5tiwC/X9E7XY8HYMB+JkLKEobXMHiTLmHqDzcr5nBs4OMJv0u4WZUO25Q2bw54QBT0zIHHhgUYTGDA== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id cg14-20020a056a00290e00b006dfebbe587dsi2879054pfb.311.2024.02.07.18.01.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 18:01:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57381-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=ry4rv5Zd; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-57381-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57381-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id B8526B22F8B for ; Thu, 8 Feb 2024 02:01:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C72911D55D; Thu, 8 Feb 2024 02:01:10 +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="ry4rv5Zd" 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 EE6921CD25 for ; Thu, 8 Feb 2024 02:01:09 +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=1707357670; cv=none; b=g8sOwJZS4kolT8FKMKfrrlKUpYpbKDFVJB4Oo8uehQ9KjEi/dbmRvX0saJQiDwHZiLhIj/G2DsJ8p1obxclB3cVq9rEM5Eb2cJgH0esXJRZJ6vrshsvy1cg/houGwV8jJGvUFb5kVAU0rZRgzZprG3285veT0057d1PYTyjukgM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707357670; c=relaxed/simple; bh=dwTLQzI/QIkNCUaRNzVuPjQwBg8dpqhsrkwPkL+Pg7g=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=COvwQ0U9faWyYketnoJ4LbhNKaAO8lN2Azt74mHqvAt0ggZDWiIyv0Mf1eDZ172k/Bqdvil5imgYH55b/4q/GzRKv+ZrFNbJ3IUMi2nXe0QR75cPxfOScYrj6OqLZQnbH2ZdAIMUd5ld5ZHbMIcLHvvqHZgtBO7tu9sKTqGVTQw= 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=ry4rv5Zd; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D66AC433C7; Thu, 8 Feb 2024 02:01:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1707357669; bh=dwTLQzI/QIkNCUaRNzVuPjQwBg8dpqhsrkwPkL+Pg7g=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ry4rv5ZdjcSuqtYio8CxxKNPfgBtQ5SZk14HB7hm+WwWdBn0VomqE2FLHV9pJojq9 7bphmEJCiWzntJPdMCabGqgE5OIjyDA+Asw8BlDH+VBUug0L21dFZB8Td+ftMMacMg Rle8uVDEKFFELCeYg9jOthphVF05BW7aUP2lhqa8= Date: Wed, 7 Feb 2024 18:01:08 -0800 From: Andrew Morton To: Muchun Song Cc: Prakash Sangappa , linux-mm@kvack.org, linux-kernel@vger.kernel.org, mike.kravetz@oracle.com Subject: Re: [PATCH v3] Hugetlb pages should not be reserved by shmat() if SHM_NORESERVE Message-Id: <20240207180108.6a181d9fa5b404f78c0b4b22@linux-foundation.org> In-Reply-To: References: <1706040282-12388-1-git-send-email-prakash.sangappa@oracle.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 Wed, 24 Jan 2024 15:03:15 +0800 Muchun Song wrote: > > Fix is to ensure that hugetlb pages are not reserved for SHM_HUGETLB shared > > memory in the shmat() call. > > Signed-off-by: Prakash Sangappa > > BTW, it is better to add a Fixes tag to specify which commit > that this commit aims to fix. s/better/essential/ However this issue appears to pass the "been there forever" test, so I'll send it to Linus as-is.