linux/tools/testing/selftests
Waiman Long 2d028f3e4b selftest: memcg: skip memcg_sock test if address family not supported
The test_memcg_sock test in memcontrol.c sets up an IPv6 socket and send
data over it to consume memory and verify that memory.stat.sock and
memory.current values are close.

On systems where IPv6 isn't enabled or not configured to support
SOCK_STREAM, the test_memcg_sock test always fails.  When the socket()
call fails, there is no way we can test the memory consumption and verify
the above claim.  I believe it is better to just skip the test in this
case instead of reporting a test failure hinting that there may be
something wrong with the memcg code.

Link: https://lkml.kernel.org/r/20260311200526.885899-1-longman@redhat.com
Fixes: 5f8f019380 ("selftests: cgroup/memcontrol: add basic test for socket accounting")
Signed-off-by: Waiman Long <longman@redhat.com>
Acked-by: Michal Koutný <mkoutny@suse.com>
Acked-by: Shakeel Butt <shakeel.butt@linux.dev>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Michal Koutný <mkoutny@suse.com>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2026-04-05 13:53:27 -07:00
..
acct
alsa selftests: ALSA: Remove unused variable in utimer-test 2026-01-19 09:12:59 +01:00
amd-pstate
arm64 selftest/arm64: Fix sve2p1_sigill() to hwcap test 2026-03-06 11:54:26 +00:00
bpf selftests/bpf: Add a test cases for sync_linked_regs regarding zext propagation 2026-03-21 13:19:40 -07:00
breakpoints
cachestat
capabilities
cgroup selftest: memcg: skip memcg_sock test if address family not supported 2026-04-05 13:53:27 -07:00
clone3
connector
core
coredump
cpu-hotplug
cpufreq
damon selftests/damon/sysfs.py: test goal_tuner commit 2026-04-05 13:53:26 -07:00
devices
dm-verity selftests: add dm-verity keyring selftests 2026-01-19 15:21:26 +01:00
dmabuf-heaps
drivers selftests: team: Add a reference count leak test 2026-02-25 19:17:05 -08:00
dt
efivarfs
exec
fchmodat2
filelock
filesystems selftests: fix mntns iteration selftests 2026-02-27 22:00:11 +01:00
firmware
fpu
ftrace selftests/tracing: Fix test_multiple_writes stall 2026-01-09 15:49:32 -07:00
futex
gpio
hid selftests/hid: fix compilation when bpf_wq and hid_device are not exported 2026-03-16 16:21:06 +01:00
ia64
intel_pstate
iommu
ipc
ir
kcmp
kexec
kho kho: remove finalize state and clients 2026-04-05 13:53:04 -07:00
kmod
kselftest
kselftest_harness
kvm KVM: s390: Fixes for 7.0 2026-03-24 17:32:13 +01:00
landlock selftests/landlock: Add filesystem access benchmark 2026-02-10 16:46:42 +01:00
lib
livepatch
liveupdate
lkdtm lkdtm/bugs: Add __counted_by_ptr() test PTR_BOUNDS 2026-01-17 11:00:37 -08:00
locking
lsm
media_tests
membarrier
memfd selftests/memfd: use IPC semaphore instead of SIGSTOP/SIGCONT 2026-02-12 15:45:57 -08:00
memory-hotplug
mincore
mm selftests/mm: pagemap_ioctl: remove hungarian notation 2026-04-05 13:53:27 -07:00
module
mount
mount_setattr
move_mount_set_group
mqueue
mseal_system_mappings
namespaces
nci
net selftests: rtnetlink: add neighbour update test 2026-03-11 19:04:55 -07:00
nolibc tools/nolibc: Add a simple test for writing to a FILE and reading it back 2026-01-11 12:47:47 +01:00
ntb
openat2
pci_endpoint selftests: pci_endpoint: Add BAR subrange mapping test case 2026-01-29 17:42:37 -06:00
pcie_bwctrl
perf_events
pid_namespace
pidfd selftests/pidfd: fix typo in comment 2026-01-21 10:56:25 -07:00
power_supply
powerpc powerpc/selftests/copyloops: extend selftest to exercise __copy_tofrom_user_power7_vmx 2026-03-12 11:03:48 +05:30
prctl
proc
pstore
ptp selftests: ptp: treat unsupported PHC operations as skip 2026-01-27 17:57:28 -08:00
ptrace
rcutorture scftorture: Update due to x86 not supporting none/voluntary preemption 2026-03-05 13:11:10 -08:00
resctrl selftests/resctrl: Fix non-contiguous CBM check for Hygon 2026-01-09 16:49:01 -07:00
ring-buffer
riscv selftests: riscv: vstate_exec_nolibc: Use the regular prctl() function 2026-02-09 15:27:33 -07:00
rlimits
rseq selftests/rseq: Add rseq slice histogram script 2026-01-22 11:11:20 +01:00
rtc
rust
safesetid
sched
sched_ext sched_ext/selftests: Fix format specifier and buffer length in file_write_long() 2026-03-04 12:07:43 -10:00
seccomp
sgx
signal
size
sparc64
splice
static_keys
sync
syscall_user_dispatch
sysctl
tc-testing selftests/tc-testing: Add tests exercising act_ife metalist replace behaviour 2026-03-05 07:54:09 -08:00
tdx
thermal/intel thermal: intel: selftests: workload_hint: Support slow workload hints 2026-01-07 21:42:10 +01:00
timens
timers
tmpfs
tpm2
tty
turbostat
ublk for-7.0/block-20260206 2026-02-09 17:57:21 -08:00
uevent
user_events
vDSO * VDSO rework and cleanups 2026-02-10 19:34:26 -08:00
verification
vfio vfio: selftests: only build tests on arm64 and x86_64 2026-02-06 15:08:05 -07:00
vsock selftests/vsock: change tests to respect write-once child ns mode 2026-02-26 11:10:03 +01:00
watchdog
wireguard watchdog: softlockup: panic when lockup duration exceeds N thresholds 2026-01-20 19:44:20 -08:00
x86 selftests/x86: Clean up sysret_rip coding style 2026-01-19 12:06:11 +01:00
zram
.gitignore
gen_kselftest_tar.sh
kselftest_deps.sh
kselftest_harness.h selftests/harness: order TEST_F and XFAIL_ADD constructors 2026-03-05 07:34:54 -08:00
kselftest_install.sh
kselftest_module.h
kselftest.h
lib.mk
Makefile netconsole: selftests: Move netconsole selftests to separate target 2026-01-29 17:30:48 -08:00
run_kselftest.sh selftests/run_kselftest.sh: Add --skip argument option 2026-01-16 13:46:40 -07:00