Skip to contentSkip to conversation

Recent changes (master)

PATCH Jens Axboe 1 participant 1 message May 1 Kbuild

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

The following changes since commit a95f84caad2300e73ec9bf7077879f30246f3185:

sprandom: relax power of 2 block size requirement (2026-04-28 12:25:01 -0400)

are available in the Git repository at:

git://git.kernel.dk/fio.git master

for you to fetch changes up to 72156dca3d41df7d05ea4e5a4e59623c2d393a92:

Merge branch 'codex/cgroup-path-overflows' of https://github.com/linuxholic/fio (2026-04-30 06:53:46 -0600)

----------------------------------------------------------------
Jens Axboe (1):
Merge branch 'codex/cgroup-path-overflows' of https://github.com/linuxholic/fio

yangpeng (1):
cgroup: fix path buffer overflows for long cgroup names

 Makefile             |   6 ++
 cgroup.c             |  48 +++++++++++++---
 unittests/cgroup.c   | 160 +++++++++++++++++++++++++++++++++++++++++++++++++++
 unittests/unittest.c |   3 +
 unittests/unittest.h |   3 +
 5 files changed, 212 insertions(+), 8 deletions(-)
 create mode 100644 unittests/cgroup.c

---

Diff of recent changes:

Makefile +6 -0
index 099e2f94..e3960ece 100644
@@ -455,6 +455,12 @@ UT_OBJS += unittests/oslib/strlcat.o
 UT_OBJS += unittests/oslib/strndup.o
 UT_OBJS += unittests/oslib/strcasestr.o
 UT_OBJS += unittests/oslib/strsep.o
+ifeq ($(CONFIG_TARGET_OS), Linux)
+UT_OBJS += unittests/cgroup.o
+endif
+ifeq ($(CONFIG_TARGET_OS), Android)
+UT_OBJS += unittests/cgroup.o
+endif
 UT_TARGET_OBJS = lib/memalign.o
 UT_TARGET_OBJS += lib/num2str.o
 UT_TARGET_OBJS += lib/strntol.o
cgroup.c +40 -8

84 lines not on this page · raw message

unittests/cgroup.c new file +160 -0

160 lines not on this page · raw message

unittests/unittest.c +3 -0
index 4a034b40..c4316322 100644
@@ -55,6 +55,9 @@ int main(void)
 	fio_unittest_register(fio_unittest_oslib_strndup);
 	fio_unittest_register(fio_unittest_oslib_strcasestr);
 	fio_unittest_register(fio_unittest_oslib_strsep);
+#if defined(__linux__) || defined(__ANDROID__)
+	fio_unittest_register(fio_unittest_cgroup);
+#endif
 
 	CU_basic_set_mode(CU_BRM_VERBOSE);
 	CU_basic_run_tests();
unittests/unittest.h +3 -0
index 0f45bfbd..6f2ac776 100644
@@ -22,5 +22,8 @@ CU_ErrorCode fio_unittest_oslib_strlcat(void);
 CU_ErrorCode fio_unittest_oslib_strndup(void);
 CU_ErrorCode fio_unittest_oslib_strcasestr(void);
 CU_ErrorCode fio_unittest_oslib_strsep(void);
+#if defined(__linux__) || defined(__ANDROID__)
+CU_ErrorCode fio_unittest_cgroup(void);
+#endif
 
 #endif