summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLorenzo Stoakes (ARM) <ljs@kernel.org>2026-07-17 18:27:09 +0100
committerAndrew Morton <akpm@linux-foundation.org>2026-08-06 18:57:11 -0700
commit14dad135d68b850f4506d7fc6872f1105dfde3cb (patch)
tree27f42ee860e2f490db3bd39d30036ac9746fafd5 /tools/perf/scripts/python
parente47b037e42084ba98f8598791cb1aaf84ddfd060 (diff)
mm/mseal: remove superfluous comments, fix confusion around mm
Patch series "mm/mseal: further cleanups", v2. 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. This patch (of 3): Remove comment blocks that don't add value and eliminate any confusion about whether or not we permit mseal()'ing of remote mm's by not passing through an mm parameter but rather referencing current->mm in each function. Also while we're here, avoid an ugly goto by using an else branch, and move local parameters declarations into reverse xmas tree order. No functional change intended. Link: https://lore.kernel.org/20260717-mseal-fixups-v2-0-0daa0014b813@kernel.org Link: https://lore.kernel.org/20260717-mseal-fixups-v2-1-0daa0014b813@kernel.org Signed-off-by: Lorenzo Stoakes (ARM) <ljs@kernel.org> Acked-by: David Hildenbrand (Arm) <david@kernel.org> Reviewed-by: Pedro Falcato <pfalcato@suse.de> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Christian Brauner <brauner@kernel.org> Cc: Jan Kara <jack@suse.cz> Cc: Jann Horn <jannh@google.com> Cc: Kees Cook <kees@kernel.org> Cc: Liam R. Howlett <liam@infradead.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@kernel.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions