The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Mike Rapoport <rppt@kernel.org>
To: "David Hildenbrand (Arm)" <david@kernel.org>
Cc: Brendan Jackman <brendan.jackman@linux.dev>,
	Andrew Morton <akpm@linux-foundation.org>,
	Brendan Jackman <jackmanb@google.com>,
	Lorenzo Stoakes <ljs@kernel.org>,
	"Liam R. Howlett" <liam@infradead.org>,
	Vlastimil Babka <vbabka@kernel.org>,
	Suren Baghdasaryan <surenb@google.com>,
	Michal Hocko <mhocko@suse.com>,
	linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mm/secretmem: disable under HIGHMEM
Date: Wed, 15 Jul 2026 17:58:03 +0300	[thread overview]
Message-ID: <alef-_LMykiBQ2qP@kernel.org> (raw)
In-Reply-To: <21e7746b-9bc2-4643-b0ca-c59e0c77f810@kernel.org>

On Wed, Jul 15, 2026 at 03:49:39PM +0200, David Hildenbrand (Arm) wrote:
> On 7/15/26 15:44, Mike Rapoport wrote:
> > On Wed, Jul 15, 2026 at 02:31:08PM +0200, David Hildenbrand (Arm) wrote:
> >> On 7/15/26 13:33, Mike Rapoport wrote:
> >>>
> >>> Right :)
> >>> Supporting 32-bit without HIGHMEM is easy, so I don't think we should limit
> >>> it to 64BIT at this point.
> >>
> >> You mean
> >>
> >> diff --git a/mm/secretmem.c b/mm/secretmem.c
> >> index 4877c262cb1f6..d29865075b6ea 100644
> >> --- a/mm/secretmem.c
> >> +++ b/mm/secretmem.c
> >> @@ -202,7 +202,7 @@ static struct file *secretmem_file_create(unsigned long flags)
> >>         if (IS_ERR(file))
> >>                 goto err_free_inode;
> >>
> >> -       mapping_set_gfp_mask(inode->i_mapping, GFP_HIGHUSER);
> >> +       mapping_set_gfp_mask(inode->i_mapping, GFP_USER);
> >>         mapping_set_unevictable(inode->i_mapping);
> >>
> >>         inode->i_op = &secretmem_iops;
> >>
> >>
> >> then?
> > 
> > No, I mean what Brendan's patch did:
> > 
> >  config SECRETMEM
> >         default y
> >         bool "Enable memfd_secret() system call" if EXPERT
> > -       depends on ARCH_HAS_SET_DIRECT_MAP
> > +       depends on ARCH_HAS_SET_DIRECT_MAP && !HIGHMEM
> > 
> > We can change gfp_mask as well for the sake of pedancy
> 
> Why not change the gfp mask only then?

Citing myself from a few emails back: 

>> But still with kmap() and friends not being an NOP the promise "kernel does
>> not map this memory" does not hold.
 
> -- 
> Cheers,
> 
> David

-- 
Sincerely yours,
Mike.

      reply	other threads:[~2026-07-15 14:58 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-03 14:48 [PATCH] mm/secretmem: disable under HIGHMEM Brendan Jackman
2026-07-04  6:42 ` Mike Rapoport
2026-07-05  2:26 ` Andrew Morton
2026-07-05 10:46   ` Brendan Jackman
2026-07-05 11:34     ` Mike Rapoport
2026-07-06  8:42       ` David Hildenbrand (Arm)
2026-07-15 11:22         ` Brendan Jackman
2026-07-15 11:33           ` Mike Rapoport
2026-07-15 12:31             ` David Hildenbrand (Arm)
2026-07-15 13:44               ` Mike Rapoport
2026-07-15 13:49                 ` David Hildenbrand (Arm)
2026-07-15 14:58                   ` Mike Rapoport [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=alef-_LMykiBQ2qP@kernel.org \
    --to=rppt@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=brendan.jackman@linux.dev \
    --cc=david@kernel.org \
    --cc=jackmanb@google.com \
    --cc=liam@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=ljs@kernel.org \
    --cc=mhocko@suse.com \
    --cc=surenb@google.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox