* + mm-improve-mprotectrw-efficiency-on-pages-referenced-once-fix.patch added to -mm tree
@ 2021-05-10 5:33 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2021-05-10 5:33 UTC (permalink / raw)
To: akpm, eugenis, mm-commits, pcc
The patch titled
Subject: mm-improve-mprotectrw-efficiency-on-pages-referenced-once-fix
has been added to the -mm tree. Its filename is
mm-improve-mprotectrw-efficiency-on-pages-referenced-once-fix.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/mm-improve-mprotectrw-efficiency-on-pages-referenced-once-fix.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/mm-improve-mprotectrw-efficiency-on-pages-referenced-once-fix.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Andrew Morton <akpm@linux-foundation.org>
Subject: mm-improve-mprotectrw-efficiency-on-pages-referenced-once-fix
avoid 80-column tricks
Cc: Evgenii Stepanov <eugenis@google.com>
Cc: Peter Collingbourne <pcc@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/mprotect.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
--- a/mm/mprotect.c~mm-improve-mprotectrw-efficiency-on-pages-referenced-once-fix
+++ a/mm/mprotect.c
@@ -47,8 +47,9 @@ static unsigned long change_pte_range(st
bool prot_numa = cp_flags & MM_CP_PROT_NUMA;
bool uffd_wp = cp_flags & MM_CP_UFFD_WP;
bool uffd_wp_resolve = cp_flags & MM_CP_UFFD_WP_RESOLVE;
- bool anon_writable =
- vma_is_anonymous(vma) && (vma->vm_flags & VM_WRITE);
+ bool anon_writable;
+
+ anon_writable = vma_is_anonymous(vma) && (vma->vm_flags & VM_WRITE);
/*
* Can be called with only the mmap_lock for reading by
_
Patches currently in -mm which might be from akpm@linux-foundation.org are
mm.patch
mm-gup-pack-has_pinned-in-mmf_has_pinned-checkpatch-fixes.patch
mm-memcg-optimize-user-context-object-stock-access-checkpatch-fixes.patch
mm-improve-mprotectrw-efficiency-on-pages-referenced-once-fix.patch
nommu-remove-__gfp_highmem-in-vmalloc-vzalloc-checkpatch-fixes.patch
mm-madvise-introduce-madv_populate_readwrite-to-prefault-page-tables-checkpatch-fixes.patch
linux-next-git-rejects.patch
kernel-forkc-export-kernel_thread-to-modules.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-10 5:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-10 5:33 + mm-improve-mprotectrw-efficiency-on-pages-referenced-once-fix.patch added to -mm tree akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).