When mapping a file on overlayfs, the file stored in ->vm_file is a backing file whose f_inode is on the underlying filesystem. We need to verify that /proc/pid/maps contains numbers of the overlayfs file, but not its backing file. Cc: Amir Goldstein <amir73il@gmail.com> Cc: Alexander Mikhalitsyn <alexander@mihalicyn.com> Signed-off-by: Andrei Vagin <avagin@google.com> Link: https://lore.kernel.org/r/20231214064439.1023011-2-avagin@google.com Reviewed-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Christian Brauner <brauner@kernel.org>
7 lines
113 B
Makefile
7 lines
113 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
TEST_GEN_PROGS := dev_in_maps
|
|
|
|
CFLAGS := -Wall -Werror
|
|
|
|
include ../../lib.mk
|