selftest-memcg-skip-memcg_sock-test-if-address-family-not-supported.patch removed from -mm tree
The quilt patch titled
Subject: selftest: memcg: skip memcg_sock test if address family not supported
has been removed from the -mm tree. Its filename was
selftest-memcg-skip-memcg_sock-test-if-address-family-not-supported.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Waiman Long <[email protected]>
Subject: selftest: memcg: skip memcg_sock test if address family not supported
Date: Wed, 11 Mar 2026 16:05:26 -0400
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.
---
tools/testing/selftests/cgroup/test_memcontrol.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)
tools/testing/selftests/cgroup/test_memcontrol.c renamed from tools/testing/selftests/cgroup/test_memcontrol.c~selftest-memcg-skip-memcg_sock-test-if-address-family-not-supported +10 -1
@@ -1280,8 +1280,11 @@ static int tcp_server(const char *cgroup saddr.sin6_port =htons (srv_args->port); sk =socket (AF_INET6 ,SOCK_STREAM ,0 ); -if (sk <0 ) +if (sk <0 ) { +/* Pass back errno to the ctl_fd */ +write (ctl_fd, &errno,sizeof (errno));return ret; + }if (setsockopt (sk,SOL_SOCKET ,SO_REUSEADDR , &yes,sizeof (yes)) <0 ) goto cleanup;
@@ -1412,6 +1415,12 @@ static int test_memcg_sock(const char *r goto cleanup;close (args.ctl[0 ]); +/* Skip if address family not supported by protocol */ +if (err ==EAFNOSUPPORT ) { + ret =KSFT_SKIP ; + goto cleanup; + } +if (!err)break ;if (err !=EADDRINUSE )
_
Patches currently in -mm which might be from [email protected] are