Article View: linux.kernel.netdev
Article #19228[PATCH net 3/3] net: multicast: account group and source allocations to memcg
From: Yingjie Wang
Date: Thu, 19 Nov 2026 15:34
Date: Thu, 19 Nov 2026 15:34
128 lines
28674 bytes
28674 bytes
IPv4 and IPv6 multicast source filter entries and their tomb records, as
well as live and deleted IPv6 device multicast group records, can
outlive the socket operation which creates them. These allocations do
not request memcg accounting, so socket operations can retain this
memory outside the caller's memory.max limit.
This was found while fuzzing socket option paths and reproduced after
entering a user and network namespace, then raising per-netns multicast
limits. With 1,200 memberships and 1,024 sources per membership, IPv4
retained about 85 MiB of slab while a cgroup with memory.max set to 64 MiB
reported less than 1 MiB in memory.current.
Account the IPv4 source and tomb allocations with __GFP_ACCOUNT while
preserving their GFP_ATOMIC constraint under the multicast spinlock.
GFP_ATOMIC includes __GFP_HIGH, so memcg force-charges these allocations
instead of failing them. Such charges can leave memory.current above
memory.max until the cgroup later performs a blocking charge or the
objects are freed.
Use GFP_KERNEL_ACCOUNT for the corresponding IPv6 source and tomb
allocations and for deleted IPv6 device group records, which are
allocated under a mutex. Pass GFP_KERNEL_ACCOUNT when a socket join
creates a live IPv6 device group; socket joins already propagate
allocation failure to the caller. Keep GFP_KERNEL for ipv6_dev_mc_inc()
callers such as address configuration, which may ignore allocation
failure.
For socket operations, the charge goes to the task that allocates a
shared group, source entry or tomb record, even if other sockets later
share it. A group created by address configuration stays uncharged when
a socket joins it.
In a QEMU guest with memory.max set to 64 MiB, normal IPv4 and IPv6
source operations succeeded. A 1,200-by-1,024 IPv4 source-filter run
was stopped by the memcg OOM killer. Its memory.peak reached about 82 MiB
against the 64 MiB limit, consistent with the forced atomic charges.
With delayed MLD reports and a 16 MiB limit on both kernels, the
unpatched kernel completed 200,000 IPv6 join/leave operations without
reaching the limit; with this change, the memcg OOM killer stopped the
run after at least 60,000 operations. Kernel selftests were not run.
Fixes: a9bb7e620efd ("memcg: only account kmem allocations marked as __GFP_ACCOUNT")
Cc: <stable+noautosel@kernel.org> # changes memcg charging; not stable material
Signed-off-by: Yingjie Wang <x-professor@outlook.com>
---
Tested on net/main e203d8a4751d with this series: x86_64 W=1 kernel
build, affected-object builds for allmodconfig, i386 and
CONFIG_IP_MULTICAST=n, and the QEMU reproducers and regression tests
described in the cover letter.
net/ipv4/igmp.c | 8 +++++---
net/ipv6/mcast.c | 25 ++++++++++++++-----------
2 files changed, 19 insertions(+), 14 deletions(-)
diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c
index 5fe8736c7b47..ff2bb189dd64 100644
--- a/net/ipv4/igmp.c
+++ b/net/ipv4/igmp.c
@@ -2055,7 +2055,8 @@ static int ip_mc_del1_src(struct ip_mc_list *pmc, int sfmode,
#ifdef CONFIG_IP_MULTICAST
if (psf->sf_oldin &&
!IGMP_V1_SEEN(in_dev) && !IGMP_V2_SEEN(in_dev)) {
- struct ip_sf_list *dpsf = kmalloc_obj(*dpsf, GFP_ATOMIC);
+ struct ip_sf_list *dpsf = kmalloc_obj(*dpsf,
+ GFP_ATOMIC | __GFP_ACCOUNT);
if (dpsf) {
*dpsf = *psf;
@@ -2155,7 +2156,7 @@ static int ip_mc_add1_src(struct ip_mc_list *pmc, int sfmode,
psf_prev = psf;
}
if (!psf) {
- psf = kzalloc_obj(*psf, GFP_ATOMIC);
+ psf = kzalloc_obj(*psf, GFP_ATOMIC | __GFP_ACCOUNT);
if (!psf)
return -ENOBUFS;
psf->sf_inaddr = *psfsrc;
@@ -2237,7 +2238,8 @@ static int sf_setstate(struct ip_mc_list *pmc)
break;
}
if (!dpsf) {
- dpsf = kmalloc_obj(*dpsf, GFP_ATOMIC);
+ dpsf = kmalloc_obj(*dpsf,
+ GFP_ATOMIC | __GFP_ACCOUNT);
if (!dpsf)
continue;
*dpsf = *psf;
diff --git a/net/ipv6/mcast.c b/net/ipv6/mcast.c
index ede1f0825bad..e7afe6187113 100644
--- a/net/ipv6/mcast.c
+++ b/net/ipv6/mcast.c
@@ -91,7 +91,8 @@ static int ip6_mc_add_src(struct inet6_dev *idev, const struct in6_addr *pmca,
static int ip6_mc_leave_src(struct sock *sk, struct ipv6_mc_socklist *iml,
struct inet6_dev *idev);
static int __ipv6_dev_mc_inc(struct net_device *dev,
- const struct in6_addr *addr, unsigned int mode);
+ const struct in6_addr *addr, unsigned int mode,
+ gfp_t gfp);
#define MLD_QRV_DEFAULT 2
/* RFC3810, 9.2. Query Interval */
@@ -232,7 +233,7 @@ static int __ipv6_sock_mc_join(struct sock *sk, int ifindex,
RCU_INIT_POINTER(mc_lst->sflist, NULL);
/* now add/increase the group membership on the device */
- err = __ipv6_dev_mc_inc(dev, addr, mode);
+ err = __ipv6_dev_mc_inc(dev, addr, mode, GFP_KERNEL_ACCOUNT);
dev_put(dev);
@@ -770,7 +771,7 @@ static void mld_add_delrec(struct inet6_dev *idev, struct ifmcaddr6 *im)
* for deleted items allows change reports to use common code with
* non-deleted or query-response MCA's.
*/
- pmc = kzalloc_obj(*pmc);
+ pmc = kzalloc_obj(*pmc, GFP_KERNEL_ACCOUNT);
if (!pmc)
return;
@@ -894,13 +895,13 @@ static void ma_put(struct ifmcaddr6 *mc)
static struct ifmcaddr6 *mca_alloc(struct inet6_dev *idev,
const struct in6_addr *addr,
- unsigned int mode)
+ unsigned int mode, gfp_t gfp)
{
struct ifmcaddr6 *mc;
mc_assert_locked(idev);
- mc = kzalloc_obj(*mc);
+ mc = kzalloc_obj(*mc, gfp);
if (!mc)
return NULL;
@@ -963,7 +964,8 @@ static void inet6_ifmcaddr_notify(struct net_device *dev,
* device multicast group inc (add if not found)
*/
static int __ipv6_dev_mc_inc(struct net_device *dev,
- const struct in6_addr *addr, unsigned int mode)
+ const struct in6_addr *addr, unsigned int mode,
+ gfp_t gfp)
{
struct inet6_dev *idev;
struct ifmcaddr6 *mc;
@@ -991,7 +993,7 @@ static int __ipv6_dev_mc_inc(struct net_device *dev,
}
}
- mc = mca_alloc(idev, addr, mode);
+ mc = mca_alloc(idev, addr, mode, gfp);
if (!mc) {
mutex_unlock(&idev->mc_lock);
in6_dev_put(idev);
@@ -1011,7 +1013,7 @@ static int __ipv6_dev_mc_inc(struct net_device *dev,
int ipv6_dev_mc_inc(struct net_device *dev, const struct in6_addr *addr)
{
- return __ipv6_dev_mc_inc(dev, addr, MCAST_EXCLUDE);
+ return __ipv6_dev_mc_inc(dev, addr, MCAST_EXCLUDE, GFP_KERNEL);
}
EXPORT_SYMBOL(ipv6_dev_mc_inc);
@@ -2384,7 +2386,8 @@ static int ip6_mc_del1_src(struct ifmcaddr6 *pmc, int sfmode,
if (psf->sf_oldin && !(pmc->mca_flags & MAF_NOREPORT) &&
!mld_in_v1_mode(idev)) {
- struct ip6_sf_list *dpsf = kmalloc_obj(*dpsf);
+ struct ip6_sf_list *dpsf = kmalloc_obj(*dpsf,
+ GFP_KERNEL_ACCOUNT);
if (dpsf) {
*dpsf = *psf;
@@ -2469,7 +2472,7 @@ static int ip6_mc_add1_src(struct ifmcaddr6 *pmc, int sfmode,
psf_prev = psf;
}
if (!psf) {
- psf = kzalloc_obj(*psf);
+ psf = kzalloc_obj(*psf, GFP_KERNEL_ACCOUNT);
if (!psf)
return -ENOBUFS;
@@ -2554,7 +2557,7 @@ static int sf_setstate(struct ifmcaddr6 *pmc)
&psf->sf_addr))
break;
if (!dpsf) {
- dpsf = kmalloc_obj(*dpsf);
+ dpsf = kmalloc_obj(*dpsf, GFP_KERNEL_ACCOUNT);
if (!dpsf)
continue;
*dpsf = *psf;
--
2.43.0
Technical Details
Message-ID:
<eabf67fe94dc239f6cc59720e8468f2bf9b4cd62.1795102467.git.x-professor@outlook.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367121-linux-kernel-netdev=dewy.ruReferences:
<cover.1795102467.git.x-professor@outlook.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367121-linux-kernel-netdev=dewy.ru From: x-professor@outlook.com (Yingjie Wang) Newsgroups: linux.kernel.netdev Subject: [PATCH net 3/3] net: multicast: account group and source allocations to memcg Date: Thu, 19 Nov 2026 15:34:40 +0000 Organization: Usenet Network Message-ID: <eabf67fe94dc239f6cc59720e8468f2bf9b4cd62.1795102467.git.x-professor@outlook.com> References: <cover.1795102467.git.x-professor@outlook.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Injection-Info: usenet.network; logging-data="2912370"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:zQEU2FG44p4YRXjAi2B/WY46GTc= sha256:lh7ATcxuAZhqdMwTKfTFqwQx/Dbj1y5ocSXdWPvFaHM= sha1:SlI49ysRtvcGIejGZvk28ctpOLY= sha256:nP2u06ORyGI8b/IImN2FTkhG1pjCtkgPWraZ/WMZne4= Content-Language: en-US List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-MS-Has-Attach X-MS-TNEF-Correlator X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 3015F1156C6; Thu, 19 Nov 2026 18:35:20 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.049 X-Spam-Status: No, score=-3.049 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=outlook.com X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id I5Hn7PBXnXzc; Thu, 19 Nov 2026 18:35:17 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-367121-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=outlook.com X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id D6A161156C3; Thu, 19 Nov 2026 18:35:07 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 89EFD2C0E75; Thu, 19 Nov 2026 15:34:58 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795102483; b=u9d3lWW9GE8ChLOa1f7gfBrcRtGeeaNZ/2VQMdm/4fMItW46I/5OS+J4EEyLatQ1WJPu OsOaB8aUm+ZFxlf79kZAOF5kuJ2a8KF+gQMFCixJTXcCRHrlTwJNZ2QlMTTTCW0zkfE9u /tA61CtyUYQsGeINQORWjVSUI4mZkBSsoBWsux6cXImA0M01cdQuauMQ3aF5dqRBCX7h6 xoChurz91Y48PyqAq2jbO8dYm3AlMt1GowB6Pd9xEiiV0TK7QGSfcgpzuBN15OBvsgdFg 54PU3BSwwVFWXpj7I8ATb7OL6UhhlKuV8zBv73DM2LiyPcwsWW4YkLR0K0WKAf+Gr0w== X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795102483; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Received: From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID: References:In-Reply-To:Accept-Language:Content-Language: X-MS-Has-Attach:X-MS-TNEF-Correlator:x-ms-publictraffictype: x-ms-traffictypediagnostic:x-ms-office365-filtering-correlation-id: x-ms-exchange-slblob-mailprops:x-microsoft-antispam: x-microsoft-antispam-message-info: x-ms-exchange-antispam-messagedata-chunkcount: x-ms-exchange-antispam-messagedata-0:Content-Type: Content-Transfer-Encoding:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version: X-OriginatorOrg:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-originalarrivaltime: X-MS-Exchange-CrossTenant-fromentityheader: X-MS-Exchange-CrossTenant-id: X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=J262G/uixRp92geaGVsSzL7mTwJKuGY+sdOuuHWKV3o=; b=4Ba0tz71PfapgiGcokZ1ORuMJa2iybxkF9TaxUdSIlVDrwxPHlo2NLBNprqChXAc6Ft0 LHJD7KZbEfBVQzhO+WC6afX2EjXVvnW6vEKNCeLrtHS3aP1E3AxDJK+3h4ClBCvjPQ7QJ Xjh+NRM+hPbu8usyRghTesokhQ3enTVJqYCNN16utjnMpRhFX3gTpwS5+hPvvBOJi172o +8jrDT/VekTFiG0hADBKmtxhFSspSYjstXiA2Ompsli36v9Gy5WDvYLLNkyuNwMlENMqO +Wb4NV3Jxo5F09xhiEyS8mINF6GwvCIo+2sOOLN9UtnpOz/ET8Qfx/fiBEZ1QZGJZUA== X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=outlook.com header.i=@outlook.com header.a=rsa-sha256 header.s=selector1 header.b=HC3BRHl4; dmarc=pass header.from=outlook.com; spf=pass smtp.mailfrom=outlook.com; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 76D1860A2633; Thu, 19 Nov 2026 15:34:43 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=outlook.com header.i=@outlook.com header.a=rsa-sha256 header.s=selector1 header.b=HC3BRHl4 X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=52.103.14.30 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795102482; b=p0rSFa3jRf+AjnL1x8/aqSS0lt+G6FUYoplDrM6c51YZdvGphwbIIHb7FKMgigLNAGe4 BnSMbq0pFCWFpM8+rAGxnC5xG7aftKn2v3gB77NDKSrme0/pSUUF4CJyUS38s1zy4r6f3 +kkyGlALKhXBzus8z18cXBbK6+35K1D4A6D1k//pD48KVmy+wZXCv9aBBCzJB6YmflywX oflydSt3CAezH8bYpCzmAmWPvEBfWnpTgpINC4jR2SX9aEsFEitNstp1gsr5PCH8jXTpM aPdH4jDjrGnSZwOJBcDz6VxOP2PV3sQjHaVU+gSpgRSshS5o6ZCP7js2QqJv7KN00Qw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795102482; h=DMARC-Filter:DKIM-Signature:Received:Received:From:To:CC:Subject: Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To: Accept-Language:Content-Language:X-MS-Has-Attach:X-MS-TNEF-Correlator: x-ms-publictraffictype:x-ms-traffictypediagnostic: x-ms-office365-filtering-correlation-id: x-ms-exchange-slblob-mailprops:x-microsoft-antispam: x-microsoft-antispam-message-info: x-ms-exchange-antispam-messagedata-chunkcount: x-ms-exchange-antispam-messagedata-0:Content-Type: Content-Transfer-Encoding:MIME-Version:X-OriginatorOrg: X-MS-Exchange-CrossTenant-AuthAs:X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-originalarrivaltime: X-MS-Exchange-CrossTenant-fromentityheader: X-MS-Exchange-CrossTenant-id: X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=J262G/uixRp92geaGVsSzL7mTwJKuGY+sdOuuHWKV3o=; b=b4kSl7ivB7dWJXSEPzIaaXnV3eUY/YCaOyZyRVhCFF2GtxRpgYbV1x/pm/GyvcUviCmX rz6KQmrPdTyXfNTxe1MrtbVEvnXXIdqA8afx9gaORqv1uv+R4tJjNh9tdHuN9u8JjWP+b GINgSymL9yBGqw0GxwNTTbSWuKE9EIDGhutoL7NRTxXc8A+JRzzsRqPd/vtPJ4kjgftkE 9sovQx0jYkFLw7d9HoBQJhIg3k+q6RYnVuxVcNTp57WrJlF3LY8Hm3Bxvau5w5tdMTksY Z4HyuzUX2px1BQfwSUVlSt/Pf5fuSYtOIzO6hA3nAo2Znk0bOs0SEmXkPuXUbkedToA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=outlook.com; spf=pass smtp.mailfrom=outlook.com; dkim=pass header.d=outlook.com header.i=@outlook.com header.a=rsa-sha256 header.s=selector1 header.b=HC3BRHl4; arc=pass header.oldest-pass=0 smtp.remote-ip=52.103.14.30 X-Received: from SN4PR0501CU005.outbound.protection.outlook.com (mail-southcentralusazolkn19011030.outbound.protection.outlook.com [52.103.14.30]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2BA23606A339; Thu, 19 Nov 2026 15:34:42 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2BA23606A339 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=outlook.com X-ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=q0gl8x/DG0ELqTF5MZeFVj2qQsFUlK06EPQk7f1DnNitnDqJm7fIdpqdivE0M0cwFDsX8qvTGf7S0ltdEC0/Qtpr9ufNP1VYJpxlPdUf+jnh278nuZXypHhjOCqbaz53/8LO6o2JDnxLbARq80ikw+wQM7aTdMAcAT7koqPoovnPXyT2joUkKHk7d9Zb4Ysi5GyVbT5PQ9PZf04brg1rdfBRofMhPBFi9/g9xI5KxtSGwJAUFuFfk5ljYOQGMAbdAwmDbvokMfKI6fZhvL/4o34+aVMpAu8ZXoHP8fllELY7m95N5eEG1mMSWKNSmElUJVq/6J1uOU/x2V6QO6XR/g== X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:MIME-Version; bh=J262G/uixRp92geaGVsSzL7mTwJKuGY+sdOuuHWKV3o=; b=ZQLuhL0uWjeaamunP8SLqlxoQZ6jyJaSvlnct3qdTbttEFnzLdrezFpuNRSh7TWMHT/mIba7qLmZixcKotwyGc4ssmNN2TsvlGw+K0yp9dcuHqfyKN/ZLLP4ZOrj9uXtpohmwXzXTb4GKG0tabMsJfbea9lvMwdCEkXaX5M4HfPrsmNbXGCV9wsZ3QE0Tvmm4HH50sozPxYHFsu75g8pr2GJTp22WZ8xHRBusRVKEicYY1TNQV9uJSj/djeILT4cU8OQHlOxs4yTLNRRgqBvJkSikPFI/L4eM93XMnKQUrk3ORVbGdu+5UTlYLi4jzmZGP5eUK+9PjmXNTEZlNebRA== X-ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=J262G/uixRp92geaGVsSzL7mTwJKuGY+sdOuuHWKV3o=; b=HC3BRHl4j2pKq++LchErdvbAXBgI3kV9zHqkX5vQFU+pWHq0LqLXsrf8ptN2EKrb05M89uOKcn5MbkYnFKLu75rFjKZBAoskPTcEZGA591CePq1flRvG14BGfKvkKMnU7mcCIDrDvrrkEV6CJjgB6QNpIiWBQcQYs0TW+bRhv3addxaBeqMdtWpUJbp+U85qJfrevouZ3j3iGwd6pGXw09KVMu6MLVcPAVx0hFpurFgzC+eEGF8tWtWMewM1JUOWL7nfAQYpvVcdY0cNgp7whpyjHUAxbwiwxilP3X4Oj7OOnPZXkX2b+Ydq02AyTh6pyWg7tMWrSHgy1Y8zHsg0oA== X-Received: from BN6PR05MB3281.namprd05.prod.outlook.com (2603:10b6:405:40::35) by IA3PR05MB396616.namprd05.prod.outlook.com (2603:10b6:208:626::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.639.10; Thu, 19 Nov 2026 15:34:40 +0000 X-Received: from BN6PR05MB3281.namprd05.prod.outlook.com ([fe80::5b9b:67c7:5397:c42]) by BN6PR05MB3281.namprd05.prod.outlook.com ([fe80::5b9b:67c7:5397:c42%5]) with mapi id 15.21.0639.010; Thu, 19 Nov 2026 15:34:40 +0000 X-CC: David Ahern <dsahern@kernel.org>, Ido Schimmel <idosch@nvidia.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>, Johannes Weiner <hannes@cmpxchg.org>, Michal Hocko <mhocko@kernel.org>, Roman Gushchin <roman.gushchin@linux.dev>, Shakeel Butt <shakeel.butt@linux.dev>, Muchun Song <muchun.song@linux.dev>, Andrew Morton <akpm@linux-foundation.org>, Vladimir Davydov <vdavydov.dev@gmail.com>, "cgroups@vger.kernel.org" <cgroups@vger.kernel.org>, "linux-mm@kvack.org" <linux-mm@kvack.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org> X-Thread-Topic: [PATCH net 3/3] net: multicast: account group and source allocations to memcg X-Thread-Index: AQHdeDt+HDtbJPueB0eu+W2XR+i3XQ== X-In-Reply-To: <cover.1795102467.git.x-professor@outlook.com> X-Accept-Language: en-US, zh-CN x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BN6PR05MB3281:EE_|IA3PR05MB396616:EE_ x-ms-office365-filtering-correlation-id: 9d935f91-7ca9-4f34-edcd-08df4652a0ab x-ms-exchange-slblob-mailprops: Cq7lScuPrnrlC5lHdFGci+YUsdS3F/CITEFvb5AXZTK5JQeQP7NW+kezk/HJ4SBVVSYBDmx1N3GYKSdaks77nu3+EYROErNQhi19KiUh2VjAM1/HtI3xQY3NLtXVxz+HEN+lHzfIbYzvjwRWR6tAo423DQ5OzkHcBBkPPSh1XGTjfpAF1N87qOqlTS+5vXz/gVB6uPL4R+AVbhy/c9yi++VasCUWCAiiUiFxhRyvPeUaaYOljz8WRwC9brN4g9eFYQF5iAUGjtdP9FIc6aerOl++sVevayjoBdsQc7/jKhsykkr6TyqMAXQpEnbVQKw9rRDW1jtP6udLp/ROudDu6FXkZPakrwVsUfK4rJY4+uuobhz9/9Q5kaaKBZGIOp4aRl/bG5mgVP6ycoFnwa/PTWNOhg71Z3M0S8JSXYjxlFMWljREW0XLCkfd6T1Ut6KMr8GFRXxCJQmOHCdrwFXP0oGRsqjy8FLSiLMF7OpbpozUdQ9l1pY9Ib0o1XNV6x7kUx2YxzwiZTeOkRs7IQvaf7M5mD9GR4SVtYfnjlv1WeYNFwferMNqQdQq5IfW6FJ1/F6mbAudEQS9zp45qbsHt3ttjyhnsgz7l+hU+JnuyYnm392/Dg7cz480WmapM1qyFRSxgnacXr137smW7wsPSLGHLxk1cE5/kSnjzqxjWQwbe8UBamALKOXWrCVlKQfXt3VMIBT6MJjZFC2wH9wOW39Dzu0d33RASBiGpB1xYOGqlrbKYzPVAeMbWtnRnpSXopwQmsuiMmw= x-microsoft-antispam: BCL:0;ARA:14566002|16051099003|24021099003|12121999013|10092599007|4140399003|51005399006|25010399006|21061999006|38102599003|8060799015|15080799012|19110799012|8062599012|41001999006|11091999009|24121999003|22091999003|31061999003|40105399003|26121999007|102099032|3412199025|440099028; x-microsoft-antispam-message-info: My8uVSYHJXqrjMDEva3R/JRiIjT9NvCvhP4kZGG7iTMw6ojjxU4bc+QIDOUwkvY1Y9Cyovd4GwJLyYNVF9fsghONRWnnqrXLjJBMbXc5xtUvNmrqQt+knOCvLx3wJYt8xJI65K2qL3nFIunafPmV1SVZdk2dpsY2OJt3XXP7fN+X2Ewc7KxtdL4A8f9Pl+sRE2ySUYYzre3gQEBcks7QWxC/yWqxmpCSBmSU6V9dPXWukLEfdD7G8NP/4XMqFpeQaawXZPgVPutIcfvJd68q/39oPyvFte4oybV6WYvJQVgV0i+rkIDFbdUAtwpHRrntiNWE3CeQ4yQuHIgVRi3c9GEDzJmRJpD7wpb5JYI/5EDvcjAap1g9t9+47+biQEstFjtSyaNLT39Ho8ClWETPsNcpIsiHyEkk69Mx9BKDV3MRwP63vyu20EcHmfDhmuDygT680NssZD03eUGLOKebR8GcqSvcnORd8U1LCZrJZ1eQ+Lc/x1Emo35DZGb/qgEAwzMdFC/4iuzawwVY2KbDIMFSGtuChjBRQlJHxhy79+SiskC6Rm7cHl/vFmdUSPQfVKtczIZM4DFRMd0rmdW6chUgzm2aOXnpxE8mcymOS0FvgRm7Xin4P0KH4Rnmd80CpNSCuYHA1/XrI8wuYgfMRIz1t4qlwDH+eKEdvEq3/2iWgTJVhgv6aUICSwAbwtv8nOKfOo14qxza6sulSmAQ5qIL8kKKnK28Dxy1LChJKl1BgCC99Xf7M5IBz6jRxGR2qvJfqTnZaDIJbU0SsW5TOsqKOup9CIUS2Plid/JsxzWgXe2+G+dQIkeUlcwjN/piPB7dNkgWGOYjHgWMIANjtBcXnuePYYkgRH2/AJaZZYCiSWBElK/aPkvZBLUukC5EYSzzV54/+MJHSfzchQHS0JpJ3Ksf6OIqHW+sBrzwMS2SjI72bKiJZuNPmsAydLbjSeEPH3r00cymWL1BC+2y8TcyDTR27RUu57WGve2+NcydQueFNqM2ho9lcBUM+dBIzNEsc2iErWNRW/lax73o3l6cPeTbIdHVEgtZfr42IZ7Lf9qpXpXGwjqIb+tDAhhOjo8zP0mWDsjuXACdkxbRk4Vo9qVBlVVsibfCYjFfEn/iZ5L/TtCuSZaCnXRlwxUcTAyINbvPAC3iYqwPzZCAffCDvJuBBGS4JXaQIZyf46m8CtQC00GWfFg95M86eooDruRxJjH2p4r2f1FzZMkRngkDKpysPtz32/lerIsP0JFx+nFbgQ0RfPiL6l5NcSQW x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: qk93bCU79O899USeUnIj27f0diyuIMGWQdwuJhiRG5zm3mr0DiV6/u2hGGkoGXjOBCX4TJPEykMHOQI4PfwHXlWRTtLtTdJTea6z/35NQXsrNPd3RHekSjSflBQEyUy2hnZaJDPhG10hnDk32rrh/aTaGLtL54fFl0gtlPwGEQpwP48vKHU8xGQ0VwbcUFGX/Lzx6BaHF+JSCWSYjUDhZ4YFg8YM8FX/qn7mElCj74KcOTk6kaTTslDyK1N7cPDNvjvNfkf2FQ+GDiq0Hvw2SmfauT9g3XsGvwd/W6ltB7eYjH+CadLTZQPPFnbhq0OO05vj6ud30RsDn4klcg4wJnVf9g9IrqsLcYqYZwJzmPHSsPXAtB+SNizkhH8YTbJftgTalcqCQYHTcdhh5Tp66qtXMFu71BLn8P+MGCj5mNls9T9dMv69rxT7VJRFIKaKAOZv9MqbhosUMzOiYZftDSa4PmsK6d46S4VhpReQCGFANn+6KHGpw4NzlvsRjdRl0eFoy1fiJboWxKOn5KQtJinKI5cdMhMfueQjkglfYBA1gh0Hdzwq9AWoBFiWSn5gkhlYG5jEZh6MHiWP3yawfS5m6tyYKrtBh8f51KjknCz6Nwjzb+eEqrcnTE/txvBdhjqapcmre5K5s7WGYYaR3ZWJkaTdae7Fs5TuxSKz8vSHlqwA/Zcmk18OCGUckukQuTC+NUxMsF+hvHmyKtUXxyYzWmnsUq1neJE82X5nOcQmNVS2Em9ZJ5wqrLJBZLlPkXhQkGC1uDj+qnCf9SHf9SAJ9Fzjc0i3GyCISA9n8SyA1aXg7V61HEv7zEfIWoLPQyYlJP/UJFl/0IlG7u27eaVsY8D6N5gXDocbTQOX8lOLwDbUrMHrmr/SpSsbWcfs9tdOPh2Sf2fyjFHq0hJJFI3dH947lKUXD3SvBpTWJpilT6WVHOe8uMMnx/u8GNwjaAGqNGsvhD4183iBFi8g1ZNUks+gR02BJSPrJeknDyxIV3vNGkCWQonvqChjxmfoFqZQqN/RRg6OjGDO/hfIFeXAOGXVMN8dBgNOmY6ghsoqT6GDy18IAYwJDct35tP74SkySECXzd3TUk+9rozSgF6CEsGXALlE1AyGvyZ0/dGaHV4nSeTS21VE7XJm4GJjISh88PknDf5yzqxTlUI3PeJ3jXqJiOW2x/bQ9ukUuFTvpl2mAZ9/g2SPyKckhd8l5hOln/gPFhORZoWPmfZ6Cio/LJeChiRuCPhs30yC7OXrZ4gW7bJjsImIE7YW6CBCnwb0mJIbFo0ptiba/5UjAQuSrYGmLlOAznUJSR54lCQ0q8Gy8JNW18U1qasOZtW6R6bTgqsCoUQbabo5F26sWGlCWweIpEextiMOpTeDOCI= X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN6PR05MB3281.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 9d935f91-7ca9-4f34-edcd-08df4652a0ab X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Nov 2026 15:34:40.6746 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA3PR05MB396616