[PATCH 0/3] mm/mseal: further cleanups

Lorenzo Stoakes (ARM) posted 3 patches 1 week, 2 days ago
There is a newer version of this series
fs/binfmt_elf.c    |   7 +--
include/linux/mm.h |   8 +--
mm/mseal.c         | 156 ++++++++++++++++++-----------------------------------
3 files changed, 56 insertions(+), 115 deletions(-)
[PATCH 0/3] mm/mseal: further cleanups
Posted by Lorenzo Stoakes (ARM) 1 week, 2 days ago
The mseal implementation is still rather confusing, so tighten things up a
little.

The only user of do_mseal() outside of the system call is the MMAP_PAGE_ZERO
process personality - retain better control over how mseal is utilised by
providing mseal_mmap_page_zero() for this instead.

The comments are overly long and confusion, so cut them down so they're a lot
clearer.

Remove confusing mm_struct params (mseal can not be used on remote mm's) and
wrap the actual system call logic into the system call declaration.

Signed-off-by: Lorenzo Stoakes (ARM) <ljs@kernel.org>
---
Lorenzo Stoakes (ARM) (3):
      mm/mseal: remove superfluous comments, fix confusion around mm
      mm/mseal: limit scope of mseal address zero to address zero
      mm/mseal: remove further superfluous comments, do_mseal()

 fs/binfmt_elf.c    |   7 +--
 include/linux/mm.h |   8 +--
 mm/mseal.c         | 156 ++++++++++++++++++-----------------------------------
 3 files changed, 56 insertions(+), 115 deletions(-)
---
base-commit: 59c684a9908d2e6f7a791f7f033eae57ec2b3a61
change-id: 20260716-mseal-fixups-131ad0939de2

Cheers,
-- 
Lorenzo Stoakes (ARM) <ljs@kernel.org>
Re: [PATCH 0/3] mm/mseal: further cleanups
Posted by Lorenzo Stoakes (ARM) 1 week, 2 days ago
On Thu, Jul 16, 2026 at 02:43:08PM +0100, Lorenzo Stoakes (ARM) wrote:
> The mseal implementation is still rather confusing, so tighten things up a
> little.
>
> The only user of do_mseal() outside of the system call is the MMAP_PAGE_ZERO
> process personality - retain better control over how mseal is utilised by
> providing mseal_mmap_page_zero() for this instead.
>
> The comments are overly long and confusion, so cut them down so they're a lot
> clearer.

s/confusion/confusing/ :)

>
> Remove confusing mm_struct params (mseal can not be used on remote mm's) and
> wrap the actual system call logic into the system call declaration.
>
> Signed-off-by: Lorenzo Stoakes (ARM) <ljs@kernel.org>
> ---
> Lorenzo Stoakes (ARM) (3):
>       mm/mseal: remove superfluous comments, fix confusion around mm
>       mm/mseal: limit scope of mseal address zero to address zero
>       mm/mseal: remove further superfluous comments, do_mseal()
>
>  fs/binfmt_elf.c    |   7 +--
>  include/linux/mm.h |   8 +--
>  mm/mseal.c         | 156 ++++++++++++++++++-----------------------------------
>  3 files changed, 56 insertions(+), 115 deletions(-)
> ---
> base-commit: 59c684a9908d2e6f7a791f7f033eae57ec2b3a61
> change-id: 20260716-mseal-fixups-131ad0939de2
>
> Cheers,
> --
> Lorenzo Stoakes (ARM) <ljs@kernel.org>
>