diff mbox series

Documentation: document /proc api for arm64 MTE vm flags

Message ID 20201106101940.5777-1-szabolcs.nagy@arm.com (mailing list archive)
State New, archived
Headers show
Series Documentation: document /proc api for arm64 MTE vm flags | expand

Commit Message

Szabolcs Nagy Nov. 6, 2020, 10:19 a.m. UTC
Document that /proc/PID/smaps shows PROT_MTE settings in VmFlags.
Support for this was introduced in

  commit 9f3419315f3cdc41a7318e4d50ba18a592b30c8c
  arm64: mte: Add PROT_MTE support to mmap() and mprotect()

Signed-off-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: linux-doc@vger.kernel.org
---
 Documentation/filesystems/proc.rst | 1 +
 1 file changed, 1 insertion(+)

Comments

Catalin Marinas Nov. 20, 2020, 2:44 p.m. UTC | #1
Hi Jon,

On Fri, Nov 06, 2020 at 10:19:40AM +0000, Szabolcs Nagy wrote:
> Document that /proc/PID/smaps shows PROT_MTE settings in VmFlags.
> Support for this was introduced in
> 
>   commit 9f3419315f3cdc41a7318e4d50ba18a592b30c8c
>   arm64: mte: Add PROT_MTE support to mmap() and mprotect()
> 
> Signed-off-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
> Cc: linux-doc@vger.kernel.org
> ---
>  Documentation/filesystems/proc.rst | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/filesystems/proc.rst b/Documentation/filesystems/proc.rst
> index 533c79e8d2cd..e5fa972d4c76 100644
> --- a/Documentation/filesystems/proc.rst
> +++ b/Documentation/filesystems/proc.rst
> @@ -546,6 +546,7 @@ encoded manner. The codes are the following:
>      nh    no huge page advise flag
>      mg    mergable advise flag
>      bt    arm64 BTI guarded page
> +    mt    arm64 MTE allocation tags are enabled
>      ==    =======================================
>  
>  Note that there is no guarantee that every flag and associated mnemonic will

Are you ok with picking up this patch (it can be left for 5.11) or
should I queue it in the arm64 tree?

Thanks.
Jonathan Corbet Nov. 20, 2020, 6 p.m. UTC | #2
On Fri, 20 Nov 2020 14:44:09 +0000
Catalin Marinas <catalin.marinas@arm.com> wrote:

> On Fri, Nov 06, 2020 at 10:19:40AM +0000, Szabolcs Nagy wrote:
> > Document that /proc/PID/smaps shows PROT_MTE settings in VmFlags.
> > Support for this was introduced in
> > 
> >   commit 9f3419315f3cdc41a7318e4d50ba18a592b30c8c
> >   arm64: mte: Add PROT_MTE support to mmap() and mprotect()
> > 
> > Signed-off-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
> > Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
> > Cc: linux-doc@vger.kernel.org
> > ---
> >  Documentation/filesystems/proc.rst | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/Documentation/filesystems/proc.rst b/Documentation/filesystems/proc.rst
> > index 533c79e8d2cd..e5fa972d4c76 100644
> > --- a/Documentation/filesystems/proc.rst
> > +++ b/Documentation/filesystems/proc.rst
> > @@ -546,6 +546,7 @@ encoded manner. The codes are the following:
> >      nh    no huge page advise flag
> >      mg    mergable advise flag
> >      bt    arm64 BTI guarded page
> > +    mt    arm64 MTE allocation tags are enabled
> >      ==    =======================================
> >  
> >  Note that there is no guarantee that every flag and associated mnemonic will  
> 
> Are you ok with picking up this patch (it can be left for 5.11) or
> should I queue it in the arm64 tree?

It wasn't sent to me, so it wasn't on my radar.  Up to you, I'm happy to
grab it if you'd prefer.

Thanks,

jon
Catalin Marinas Nov. 20, 2020, 10:24 p.m. UTC | #3
On Fri, Nov 20, 2020 at 11:00:03AM -0700, Jonathan Corbet wrote:
> On Fri, 20 Nov 2020 14:44:09 +0000
> Catalin Marinas <catalin.marinas@arm.com> wrote:
> 
> > On Fri, Nov 06, 2020 at 10:19:40AM +0000, Szabolcs Nagy wrote:
> > > Document that /proc/PID/smaps shows PROT_MTE settings in VmFlags.
> > > Support for this was introduced in
> > > 
> > >   commit 9f3419315f3cdc41a7318e4d50ba18a592b30c8c
> > >   arm64: mte: Add PROT_MTE support to mmap() and mprotect()
> > > 
> > > Signed-off-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
> > > Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
> > > Cc: linux-doc@vger.kernel.org
> > > ---
> > >  Documentation/filesystems/proc.rst | 1 +
> > >  1 file changed, 1 insertion(+)
> > > 
> > > diff --git a/Documentation/filesystems/proc.rst b/Documentation/filesystems/proc.rst
> > > index 533c79e8d2cd..e5fa972d4c76 100644
> > > --- a/Documentation/filesystems/proc.rst
> > > +++ b/Documentation/filesystems/proc.rst
> > > @@ -546,6 +546,7 @@ encoded manner. The codes are the following:
> > >      nh    no huge page advise flag
> > >      mg    mergable advise flag
> > >      bt    arm64 BTI guarded page
> > > +    mt    arm64 MTE allocation tags are enabled
> > >      ==    =======================================
> > >  
> > >  Note that there is no guarantee that every flag and associated mnemonic will  
> > 
> > Are you ok with picking up this patch (it can be left for 5.11) or
> > should I queue it in the arm64 tree?
> 
> It wasn't sent to me, so it wasn't on my radar.  Up to you, I'm happy to
> grab it if you'd prefer.

Please do grab it. Thanks.
Catalin Marinas Dec. 1, 2020, 7:04 p.m. UTC | #4
Hi Jon,

On Fri, Nov 20, 2020 at 10:24:13PM +0000, Catalin Marinas wrote:
> On Fri, Nov 20, 2020 at 11:00:03AM -0700, Jonathan Corbet wrote:
> > On Fri, 20 Nov 2020 14:44:09 +0000
> > Catalin Marinas <catalin.marinas@arm.com> wrote:
> > 
> > > On Fri, Nov 06, 2020 at 10:19:40AM +0000, Szabolcs Nagy wrote:
> > > > Document that /proc/PID/smaps shows PROT_MTE settings in VmFlags.
> > > > Support for this was introduced in
> > > > 
> > > >   commit 9f3419315f3cdc41a7318e4d50ba18a592b30c8c
> > > >   arm64: mte: Add PROT_MTE support to mmap() and mprotect()
> > > > 
> > > > Signed-off-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
> > > > Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
> > > > Cc: linux-doc@vger.kernel.org
> > > > ---
> > > >  Documentation/filesystems/proc.rst | 1 +
> > > >  1 file changed, 1 insertion(+)
> > > > 
> > > > diff --git a/Documentation/filesystems/proc.rst b/Documentation/filesystems/proc.rst
> > > > index 533c79e8d2cd..e5fa972d4c76 100644
> > > > --- a/Documentation/filesystems/proc.rst
> > > > +++ b/Documentation/filesystems/proc.rst
> > > > @@ -546,6 +546,7 @@ encoded manner. The codes are the following:
> > > >      nh    no huge page advise flag
> > > >      mg    mergable advise flag
> > > >      bt    arm64 BTI guarded page
> > > > +    mt    arm64 MTE allocation tags are enabled
> > > >      ==    =======================================
> > > >  
> > > >  Note that there is no guarantee that every flag and associated mnemonic will  
> > > 
> > > Are you ok with picking up this patch (it can be left for 5.11) or
> > > should I queue it in the arm64 tree?
> > 
> > It wasn't sent to me, so it wasn't on my radar.  Up to you, I'm happy to
> > grab it if you'd prefer.
> 
> Please do grab it. Thanks.

In case it slipped through the cracks (I haven't seen it in -next).
Otherwise I'll queue it sometime later this week for 5.11.

Thanks.
Jonathan Corbet Dec. 1, 2020, 7:29 p.m. UTC | #5
On Tue, 1 Dec 2020 19:04:06 +0000
Catalin Marinas <catalin.marinas@arm.com> wrote:

> > > > Are you ok with picking up this patch (it can be left for 5.11) or
> > > > should I queue it in the arm64 tree?  
> > > 
> > > It wasn't sent to me, so it wasn't on my radar.  Up to you, I'm happy to
> > > grab it if you'd prefer.  
> > 
> > Please do grab it. Thanks.  
> 
> In case it slipped through the cracks (I haven't seen it in -next).
> Otherwise I'll queue it sometime later this week for 5.11.

Um ... yes ... I was just going to apply it right now, honest ...

Applied, thanks for the reminder.

jon
diff mbox series

Patch

diff --git a/Documentation/filesystems/proc.rst b/Documentation/filesystems/proc.rst
index 533c79e8d2cd..e5fa972d4c76 100644
--- a/Documentation/filesystems/proc.rst
+++ b/Documentation/filesystems/proc.rst
@@ -546,6 +546,7 @@  encoded manner. The codes are the following:
     nh    no huge page advise flag
     mg    mergable advise flag
     bt    arm64 BTI guarded page
+    mt    arm64 MTE allocation tags are enabled
     ==    =======================================
 
 Note that there is no guarantee that every flag and associated mnemonic will