summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorAnastasios Papagiannis <tasos.papagiannnis@gmail.com>2026-09-18 16:17:53 +0300
committerAlexei Starovoitov <ast@kernel.org>2026-09-18 15:32:00 +0000
commit69d38c792c53a61ee79891e488d749d4da8ab674 (patch)
tree64ca2782636c6f53961617818069c0a489cee7fe /include/linux/debugobjects.h
parent961b8946acb482b6d7a39c266d623e5f9c4e873f (diff)
mm: Add copy_remote_mm_str()
copy_remote_vm_str() gets the target address space from a struct task_struct. This does not work for an address space that exists but is not yet associated with a task_struct, such as the mm held by struct linux_binprm during exec. Add copy_remote_mm_str(), which operates directly on a struct mm_struct. Use a common internal interface for the MMU and NOMMU implementations and define both public wrappers in mm/util.c. Preserve the existing copy_remote_vm_str() behavior, including handling zero-length requests before acquiring the task's mm. Signed-off-by: Anastasios Papagiannis <tasos.papagiannnis@gmail.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Lorenzo Stoakes (ARM) <ljs@kernel.org> Acked-by: David Hildenbrand (Arm) <david@kernel.org> Link: https://patch.msgid.link/20260918131757.42802-2-tasos.papagiannnis@gmail.com
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions