lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250617133701.400095-1-mkoutny@suse.com>
Date: Tue, 17 Jun 2025 15:36:52 +0200
From: Michal Koutný <mkoutny@...e.com>
To: linux-kernel@...r.kernel.org,
	cgroups@...r.kernel.org,
	linux-kselftest@...r.kernel.org
Cc: Michal Koutný <mkoutny@...e.com>,
	Johannes Weiner <hannes@...xchg.org>,
	Tejun Heo <tj@...nel.org>,
	Shuah Khan <shuah@...nel.org>
Subject: [PATCH 0/4] selftests: cgroup: Add support for named v1 hierarchies in test_core

This comes useful when using selftests from mainline on older
kernels/setups that still rely on cgroup v1 while maintains single
variant of selftests.
The core tests that rely on v2 specific features are skipped, the
remaining ones are adjusted to work with a v1 hierarchy.

The expected output on v1 system:
    ok 1 # SKIP test_cgcore_internal_process_constraint
    ok 2 # SKIP test_cgcore_top_down_constraint_enable
    ok 3 # SKIP test_cgcore_top_down_constraint_disable
    ok 4 # SKIP test_cgcore_no_internal_process_constraint_on_threads
    ok 5 # SKIP test_cgcore_parent_becomes_threaded
    ok 6 # SKIP test_cgcore_invalid_domain
    ok 7 # SKIP test_cgcore_populated
    ok 8 test_cgcore_proc_migration
    ok 9 test_cgcore_thread_migration
    ok 10 test_cgcore_destroy
    ok 11 test_cgcore_lesser_euid_open
    ok 12 # SKIP test_cgcore_lesser_ns_open

Michal Koutný (4):
  selftests: cgroup_util: Add helpers for testing named v1 hierarchies
  selftests: cgroup: Add support for named v1 hierarchies in test_core
  selftests: cgroup: Optionally set up v1 environment
  selftests: cgroup: Fix compilation on pre-cgroupns kernels

 .../selftests/cgroup/lib/cgroup_util.c        |  4 +-
 .../cgroup/lib/include/cgroup_util.h          |  5 ++
 tools/testing/selftests/cgroup/test_core.c    | 84 ++++++++++++++++---
 3 files changed, 82 insertions(+), 11 deletions(-)


base-commit: 9afe652958c3ee88f24df1e4a97f298afce89407
-- 
2.49.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ