mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Prakash Sangappa <prakash.sangappa@oracle.com>
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org,
	muchun.song@linux.dev, mike.kravetz@oracle.com
Subject: Re: [PATCH] Hugetlb pages should not be reserved by shmat() if SHM_NORESERVE
Date: Sun, 21 Jan 2024 14:32:07 -0800	[thread overview]
Message-ID: <20240121143207.299f0d3df52ac746224dacd8@linux-foundation.org> (raw)
In-Reply-To: <1705713472-3537-1-git-send-email-prakash.sangappa@oracle.com>

On Fri, 19 Jan 2024 17:17:52 -0800 Prakash Sangappa <prakash.sangappa@oracle.com> wrote:

> For shared memory of type SHM_HUGETLB, hugetlb pages are reserved in
> shmget() call. If SHM_NORESERVE flags is specified then the hugetlb
> pages are not reserved. However when the shared memory is attached
> with the shmat() call the hugetlb pages are getting reserved incorrectly
> for SHM_HUGETLB shared memory created with SHM_NORESERVE.
> 
> Ensure that the hugetlb pages are no reserved for SHM_HUGETLB shared
> memory in the shmat() call.

Thanks.

What are the userspace-visible effects of this change?

Based on that, is a -stable backport desirable?

And can we please identify a suitable Fixes: target for this?


  reply	other threads:[~2024-01-21 22:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-20  1:17 Prakash Sangappa
2024-01-21 22:32 ` Andrew Morton [this message]
2024-01-23  2:00   ` Prakash Sangappa
2024-01-23  2:00     ` Prakash Sangappa

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=20240121143207.299f0d3df52ac746224dacd8@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mike.kravetz@oracle.com \
    --cc=muchun.song@linux.dev \
    --cc=prakash.sangappa@oracle.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®