The patch titled Subject: fs/procfs: improve PROCMAP_QUERY's compat mode handling has been added to the -mm mm-unstable branch. Its filename is fs-procfs-implement-efficient-vma-querying-api-for-proc-pid-maps-fix.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/fs-procfs-implement-efficient-vma-querying-api-for-proc-pid-maps-fix.patch This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Andrii Nakryiko <andrii@xxxxxxxxxx> Subject: fs/procfs: improve PROCMAP_QUERY's compat mode handling Date: Mon, 1 Jul 2024 10:48:05 -0700 Kernel provides compat_ptr_ioctl() wrapper to sanitize pointers for 32-bit processes on 64-bit host architectures. Given procfs_procmap_ioctl() always expects pointer argument, this is exactly what we need. This has any effect only on 32-bit processes on s390 architecture. Link: https://lkml.kernel.org/r/20240701174805.1897344-2-andrii@xxxxxxxxxx Fixes: 3757be498749 ("fs/procfs: implement efficient VMA querying API for /proc/<pid>/maps") Signed-off-by: Andrii Nakryiko <andrii@xxxxxxxxxx> Suggested-by: Arnd Bergmann <arnd@xxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/proc/task_mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/proc/task_mmu.c~fs-procfs-implement-efficient-vma-querying-api-for-proc-pid-maps-fix +++ a/fs/proc/task_mmu.c @@ -614,7 +614,7 @@ const struct file_operations proc_pid_ma .llseek = seq_lseek, .release = proc_map_release, .unlocked_ioctl = procfs_procmap_ioctl, - .compat_ioctl = procfs_procmap_ioctl, + .compat_ioctl = compat_ptr_ioctl, }; /* _ Patches currently in -mm which might be from andrii@xxxxxxxxxx are fs-procfs-extract-logic-for-getting-vma-name-constituents.patch fs-procfs-implement-efficient-vma-querying-api-for-proc-pid-maps.patch fs-procfs-implement-efficient-vma-querying-api-for-proc-pid-maps-fix.patch fs-procfs-add-build-id-fetching-to-procmap_query-api.patch fs-procfs-add-build-id-fetching-to-procmap_query-api-fix.patch docs-procfs-call-out-ioctl-based-procmap_query-command-existence.patch tools-sync-uapi-linux-fsh-header-into-tools-subdir.patch selftests-proc-add-procmap_query-ioctl-tests.patch