mm-nommu-reject-wrapping-ranges-in-access_remote_vm.patch removed from -mm tree
The quilt patch titled
Subject: mm/nommu: reject wrapping ranges in access_remote_vm()
has been removed from the -mm tree. Its filename was
mm-nommu-reject-wrapping-ranges-in-access_remote_vm.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Anastasios Papagiannis <[email protected]>
Subject: mm/nommu: reject wrapping ranges in access_remote_vm()
Date: Wed, 9 Sep 2026 09:42:31 +0300
The NOMMU implementation of access_process_vm() rejects address ranges whose end wraps around, but access_remote_vm() bypasses this check even though both functions delegate to __access_remote_vm().
Move the wraparound check into __access_remote_vm() so it applies to both entry points.
This is originally reported in [1].
---
mm/nommu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
mm/nommu.c renamed from mm/nommu.c~mm-nommu-reject-wrapping-ranges-in-access_remote_vm +3 -3
@@ -1674,6 +1674,9 @@ static int __access_remote_vm(struct mm_struct vm_area_struct *vma;int write = gup_flags &FOLL_WRITE ; +if (addr + len < addr) +return 0 ; +if (mmap_read_lock_killable (mm))return 0 ;
@@ -1727,9 +1730,6 @@ int access_process_vm(struct task_struct {struct mm_struct *mm; -if (addr + len < addr) -return 0 ; - mm =get_task_mm (tsk);if (!mm)return 0 ;
_
Patches currently in -mm which might be from [email protected] are