diff options
| author | Anastasios Papagiannis <tasos.papagiannnis@gmail.com> | 2026-09-09 09:42:31 +0300 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-10-01 19:12:25 -0700 |
| commit | 07734bc296c147908d44e556b55350be5e7c9fb1 (patch) | |
| tree | 6bf2e8337a31b9cc5d372dc9af2f951e788eb965 /include/linux/errqueue.h | |
| parent | c542ea74e4b84831f7162b10d80d207ae55ccefd (diff) | |
| download | linux-next-07734bc296c147908d44e556b55350be5e7c9fb1.tar.gz linux-next-07734bc296c147908d44e556b55350be5e7c9fb1.zip | |
mm/nommu: reject wrapping ranges in access_remote_vm()
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].
Link: https://lore.kernel.org/20260909064231.18693-1-tasos.papagiannnis@gmail.com
Fixes: f55f199b7d76 ("NOMMU: implement access_remote_vm")
Signed-off-by: Anastasios Papagiannis <tasos.papagiannnis@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Closes: https://lore.kernel.org/bpf/4ef240a5bea36ff84df9589671367832860795159386a4c8fba546a0fa8b786f@mail.kernel.org/ [1]
Reviewed-by: Lorenzo Stoakes (ARM) <ljs@kernel.org>
Cc: Liam R. Howlett <liam@infradead.org>
Cc: Hajime Tazaki <thehajime@gmail.com>
Cc: <stable@vger.kernel.org>
Diffstat (limited to 'include/linux/errqueue.h')
0 files changed, 0 insertions, 0 deletions
