Skip to content
Commit c74858f7 authored by Andrii Nakryiko's avatar Andrii Nakryiko Committed by Andrew Morton
Browse files

fs/procfs: improve PROCMAP_QUERY's compat mode handling

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@kernel.org


Fixes: 3757be49 ("fs/procfs: implement efficient VMA querying API for /proc/<pid>/maps")
Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
Suggested-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent eec693b3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment