mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/4] mm: AI-generated fixes for coda, madvise, mprotect and PAGEMAP_SCAN
@ 2026-11-27 19:45 Lorenzo Stoakes (ARM)
  2026-11-27 19:45 ` [PATCH 1/4] coda: never point a file's f_mapping at a container's mapping Lorenzo Stoakes (ARM)
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Lorenzo Stoakes (ARM) @ 2026-11-27 19:45 UTC (permalink / raw)
  To: Jan Harkes, coda, Andrew Morton, David Rheinsberg, Hugh Dickins,
	Vlastimil Babka, Liam R. Howlett, David Hildenbrand, Jann Horn,
	Alex Shi, Johannes Weiner, Pedro Falcato, David Rientjes,
	Rik van Riel, Mike Rapoport, Suren Baghdasaryan, Michal Hocko,
	Jonathan Corbet, Shuah Khan, Randy Dunlap,
	Michał Mirosław, Arnd Bergmann, Stephen Rothwell,
	Muhammad Usama Anjum
  Cc: codalist, linux-mm, Andrei Vagin, linux-doc, linux-kernel,
	linux-fsdevel, Lorenzo Stoakes (ARM),
	Chris Mason, stable

The usual stuff - glorious gifts of AI goodness transmuted into a smoother
form by your's truly.

Please check for any insanity. OK wait, let me clarify - in the patches.

The only one that needs a backport is the first coda fixup, whereupon, in
the unlikely scenario of a container manager doing something rather silly,
we might end up with a dangling pointer.

Whilst unlikely, that one might be worth sending out sooner rather than
later.

The rest are the usual edge case stuff, one involving the truly cursed
'guess what it's possible to map at address 0 if you're crazy enough!' type
thing.

I shan't talk about the evils contained in the last patch. PAGEMAP_SCAN
deep inside your soul ye masses to find salvation from PM_SCAN_WP_MATCHING!

Anyway, as usual, please review! Thanks.

(Also note that a lack of Cc: stable is not a mistake, rather it means that
 I think the fix doesn't warrant any back port shenanigans.)

Signed-off-by: Lorenzo Stoakes (ARM) <ljs@kernel.org>
---
Chris Mason (2):
      mm/madvise: don't declare OOM for MADV_WILLNEED swapin
      mm/mprotect: fix unpaired notifier start at address 0

Lorenzo Stoakes (ARM) (2):
      coda: never point a file's f_mapping at a container's mapping
      fs/proc/task_mmu: write-protect only with ptrace attach

 Documentation/admin-guide/mm/pagemap.rst |  4 ++-
 fs/coda/file.c                           | 14 +++++++++-
 fs/proc/task_mmu.c                       | 47 ++++++++++++++++++++++++++++----
 mm/madvise.c                             | 19 +++++++++----
 mm/mprotect.c                            |  8 +++---
 5 files changed, 75 insertions(+), 17 deletions(-)
---
base-commit: c6f53520f32302ea64cbcfd7cc25a31081e34548
change-id: 20261127-mlock-madvise-mprotect-ai-fixes-efebbfabe99c

Cheers,
-- 
Lorenzo Stoakes (ARM) <ljs@kernel.org>


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-11-27 22:24 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-27 19:45 [PATCH 0/4] mm: AI-generated fixes for coda, madvise, mprotect and PAGEMAP_SCAN Lorenzo Stoakes (ARM)
2026-11-27 19:45 ` [PATCH 1/4] coda: never point a file's f_mapping at a container's mapping Lorenzo Stoakes (ARM)
2026-11-27 20:44   ` Andrew Morton
2026-11-27 22:05     ` Pedro Falcato
2026-11-27 22:01   ` Pedro Falcato
2026-11-27 19:45 ` [PATCH 2/4] mm/madvise: don't declare OOM for MADV_WILLNEED swapin Lorenzo Stoakes (ARM)
2026-11-27 22:14   ` Pedro Falcato
2026-11-27 19:45 ` [PATCH 3/4] mm/mprotect: fix unpaired notifier start at address 0 Lorenzo Stoakes (ARM)
2026-11-27 22:15   ` Pedro Falcato
2026-11-27 19:45 ` [PATCH 4/4] fs/proc/task_mmu: write-protect only with ptrace attach Lorenzo Stoakes (ARM)
2026-11-27 22:24   ` Pedro Falcato

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®