summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/filesystems/Makefile
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2024-10-21 13:54:46 +0200
committerChristian Brauner <brauner@kernel.org>2024-10-30 09:58:02 +0100
commitaab154a442f9ba2a08fc130dbc8d178a33e10345 (patch)
tree391d7f413919f98ce716690d5556afb0c024ee5d /tools/testing/selftests/filesystems/Makefile
parent2ec67bb4f9c08000982d6aa0e72511bcc83caeb6 (diff)
selftests: add file SLAB_TYPESAFE_BY_RCU recycling stressor
Add a simple file stressor that lives directly in-tree. This will create a bunch of processes that each open 500 file descriptors and then use close_range() to close them all. Concurrently, other processes read /proc/<pid>/fd/ which rougly does f = fget_task_next(p, &fd); if (!f) break; data.mode = f->f_mode; fput(f); Which means that it'll try to get a reference to a file in another task's file descriptor table. Under heavy file load it is increasingly likely that the other task will manage to close @file and @file will be recycled due to SLAB_TYPEAFE_BY_RCU concurrently. This will trigger various warnings in the file reference counting code. Link: https://lore.kernel.org/r/20241021-vergab-streuen-924df15dceb9@brauner Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'tools/testing/selftests/filesystems/Makefile')
-rw-r--r--tools/testing/selftests/filesystems/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/filesystems/Makefile b/tools/testing/selftests/filesystems/Makefile
index c647fd6a0446..66305fc34c60 100644
--- a/tools/testing/selftests/filesystems/Makefile
+++ b/tools/testing/selftests/filesystems/Makefile
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: GPL-2.0
CFLAGS += $(KHDR_INCLUDES)
-TEST_GEN_PROGS := devpts_pts
+TEST_GEN_PROGS := devpts_pts file_stressor
TEST_GEN_PROGS_EXTENDED := dnotify_test
include ../lib.mk