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 16:44:28 +0300 [thread overview]
Message-ID: <aleOvBtB3WCSsqEd@kernel.org> (raw)
In-Reply-To: <7e7f20de-c43d-40f7-82d3-8d05ceb3656b@kernel.org>
On Wed, Jul 15, 2026 at 02:31:08PM +0200, David Hildenbrand (Arm) wrote:
> On 7/15/26 13:33, Mike Rapoport wrote:
> > On Wed, Jul 15, 2026 at 11:22:33AM +0000, Brendan Jackman wrote:
> >> On Mon Jul 6, 2026 at 8:42 AM UTC, David Hildenbrand (Arm) wrote:
> >>>
> >>> Right.
> >>>
> >>>
> >>> We could even limit it to 64BIT ;)
> >>
> >> I fear this in limbo, we have quite a wide range of opinions from "fix
> >> the broken configuration" all the way to "disable secretmem completely on
> >> 32bit". I'm not passionately committed to any one answer but I do think
> >> we need to pick something.
> >>
> >> Mike's position seems to be roughly "in the middle" of the spectrum, and
> >
> > 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
> --
> Cheers,
>
> David
--
Sincerely yours,
Mike.
next prev parent reply other threads:[~2026-07-15 13:44 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 [this message]
2026-07-15 13:49 ` David Hildenbrand (Arm)
2026-07-15 14:58 ` Mike Rapoport
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=aleOvBtB3WCSsqEd@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