aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorAndrei Vagin <[email protected]>2023-12-13 22:44:38 -0800
committerChristian Brauner <[email protected]>2023-12-21 13:17:54 +0100
commit3efdc78fdc21ab82694707eb234ab93f28d13ba8 (patch)
treec8d8474c4044416931c05db19283882fe6544e9c /tools/testing/selftests/bpf/prog_tests/autoload.c
parent434225230081b2b3435703decfa9c4214aac22ce (diff)
fs/proc: show correct device and inode numbers in /proc/pid/maps
/proc/pid/maps shows device and inode numbers of vma->vm_file-s. Here is an issue. If a mapped file is on a stackable file system (e.g., overlayfs), vma->vm_file is a backing file whose f_inode is on the underlying filesystem. To show correct numbers, we need to get a user file and shows its numbers. The same trick is used to show file paths in /proc/pid/maps. Cc: Alexander Mikhalitsyn <[email protected]> Suggested-by: Amir Goldstein <[email protected]> Signed-off-by: Andrei Vagin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Amir Goldstein <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions