mm-mremap-honour-writable-bit-in-mremap-pte-batching.patch removed from -mm tree
The quilt patch titled
Subject: mm/mremap: honour writable bit in mremap pte batching
has been removed from the -mm tree. Its filename was
mm-mremap-honour-writable-bit-in-mremap-pte-batching.patch
This patch was dropped because it was merged into the mm-hotfixes-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Dev Jain <[email protected]>
Subject: mm/mremap: honour writable bit in mremap pte batching
Date: Tue, 28 Oct 2025 12:09:52 +0530
Currently mremap folio pte batch ignores the writable bit during figuring out a set of similar ptes mapping the same folio. Suppose that the first pte of the batch is writable while the others are not - set_ptes will end up setting the writable bit on the other ptes, which is a violation of mremap semantics. Therefore, use FPB_RESPECT_WRITE to check the writable bit while determining the pte batch.
---
mm/mremap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/mremap.c renamed from mm/mremap.c~mm-mremap-honour-writable-bit-in-mremap-pte-batching +1 -1
@@ -187,7 +187,7 @@ static int mremap_folio_pte_batch(structif (!folio || !folio_test_large (folio))return 1 ; -return folio_pte_batch (folio, ptep, pte, max_nr); +return folio_pte_batch_flags (folio,NULL , ptep, &pte, max_nr,FPB_RESPECT_WRITE ); } static int move_ptes(struct pagetable_move_control *pmc,
_
Patches currently in -mm which might be from [email protected] are