lkml.org 
[lkml]   [2019]   [Nov]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] memfd: Fix COW issue on MAP_PRIVATE and F_SEAL_FUTURE_WRITE mappings
> -		 * Since the F_SEAL_FUTURE_WRITE seals allow for a MAP_SHARED
> - * read-only mapping, take care to not allow mprotect to revert
> - * protections.
> + * Since an F_SEAL_FUTURE_WRITE sealed memfd can be mapped as
> + * MAP_SHARED and read-only, take care to not allow mprotect to
> + * revert protections on such mappings. Do this only for shared
> + * mappings. For private mappings, don't need to mask VM_MAYWRITE

This adds an > 80 char line.

\
 
 \ /
  Last update: 2019-11-08 07:34    [W:0.070 / U:1.484 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site