All Virtuozzo development lists (kernel + QEMU)
 help / color / mirror / Atom feed
* [Devel] [PATCH hci-8.2 0/9] ms/mptcp: backport fixes for dropped stream segments
@ 2026-11-19  4:35 Eva Kurchatova
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 1/9] ms/tcp: Save lock_sock() for memcg in inet_csk_accept() Eva Kurchatova
                   ` (10 more replies)
  0 siblings, 11 replies; 30+ messages in thread
From: Eva Kurchatova @ 2026-11-19  4:35 UTC (permalink / raw)
  To: khorenko, vladimir.riabchun; +Cc: devel

Patchset for task https://virtuozzo.atlassian.net/browse/VSTOR-155321

Kuniyuki Iwashima (2):
  ms/tcp: Save lock_sock() for memcg in inet_csk_accept().
  ms/mptcp: Fix up subflow's memcg when CONFIG_SOCK_CGROUP_DATA=n.

Paolo Abeni (7):
  ms/net: factor-out _sk_charge() helper
  ms/mptcp: factor-out cgroup data inherit helper
  ms/mptcp: grafting MPJ subflow earlier
  ms/mptcp: fix memcg accounting for passive sockets
  ms/mptcp: handle first subflow closing consistently
  ms/mptcp: borrow forward memory from subflow
  ms/mptcp: reclaim forward-allocated memory on RX path errors

 include/linux/memcontrol.h      |   6 ++
 include/net/sock.h              |   2 +
 mm/memcontrol.c                 |  13 ++++
 net/core/sock.c                 |  18 +++++
 net/ipv4/af_inet.c              |   6 ++
 net/ipv4/inet_connection_sock.c |  23 -------
 net/mptcp/fastopen.c            |   4 +-
 net/mptcp/protocol.c            | 113 ++++++++++++++++++++++++--------
 net/mptcp/protocol.h            |  34 +++++++++-
 net/mptcp/subflow.c             |  45 ++++++++-----
 10 files changed, 195 insertions(+), 69 deletions(-)

-- 
2.56.1

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Devel] [PATCH hci-8.2 1/9] ms/tcp: Save lock_sock() for memcg in inet_csk_accept().
  2026-11-19  4:35 [Devel] [PATCH hci-8.2 0/9] ms/mptcp: backport fixes for dropped stream segments Eva Kurchatova
@ 2026-11-19  4:35 ` Eva Kurchatova
  2026-11-19  4:53   ` no-reply
  2026-11-19 17:08   ` Konstantin Khorenko
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 2/9] ms/mptcp: Fix up subflow's memcg when CONFIG_SOCK_CGROUP_DATA=n Eva Kurchatova
                   ` (9 subsequent siblings)
  10 siblings, 2 replies; 30+ messages in thread
From: Eva Kurchatova @ 2026-11-19  4:35 UTC (permalink / raw)
  To: khorenko, vladimir.riabchun; +Cc: devel

From: Kuniyuki Iwashima <kuniyu@google.com>

If memcg is enabled, accept() acquires lock_sock() twice for each new
TCP/MPTCP socket in inet_csk_accept() and __inet_accept().

Let's move memcg operations from inet_csk_accept() to __inet_accept().

Note that SCTP somehow allocates a new socket by sk_alloc() in
sk->sk_prot->accept() and clones fields manually, instead of using
sk_clone_lock().

mem_cgroup_sk_alloc() is called for SCTP before __inet_accept(),
so I added the protocol check in __inet_accept(), but this can be
removed once SCTP uses sk_clone_lock().

Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Reviewed-by: Shakeel Butt <shakeel.butt@linux.dev>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Acked-by: Roman Gushchin <roman.gushchin@linux.dev>
Link: https://patch.msgid.link/20251014235604.3057003-2-kuniyu@google.com
(cherry picked from commit 4a997d49d92ad9dda603f60881faa6c800d435e9)

Rebase note: this tree has neither mem_cgroup_from_sk() nor
mem_cgroup_sk_charge(), so sk->sk_memcg and mem_cgroup_charge_skmem()
are used directly. SCTP, which gets the memcg in sk_alloc(), is left
out by its protocol rather than by !sk_is_tcp(): that check would skip
the accepted MPTCP socket too, and this tree builds SCTP. Mainline
dropped the check when SCTP moved to sk_clone().

https://virtuozzo.atlassian.net/browse/VSTOR-155321
Feature: fix ms/net

Signed-off-by: Eva Kurchatova <eva.kurchatova@virtuozzo.com>
---
 net/ipv4/af_inet.c              | 22 ++++++++++++++++++++++
 net/ipv4/inet_connection_sock.c | 23 -----------------------
 2 files changed, 22 insertions(+), 23 deletions(-)

diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c
index db683e4a50c4..5c2097f96c8f 100644
--- a/net/ipv4/af_inet.c
+++ b/net/ipv4/af_inet.c
@@ -760,6 +760,28 @@ EXPORT_SYMBOL(inet_stream_connect);
 
 void __inet_accept(struct socket *sock, struct socket *newsock, struct sock *newsk)
 {
+	/* SCTP sets the memcg of its accepted sockets in sk_alloc() */
+	if (mem_cgroup_sockets_enabled && newsk->sk_protocol != IPPROTO_SCTP) {
+		gfp_t gfp = GFP_KERNEL | __GFP_NOFAIL;
+
+		mem_cgroup_sk_alloc(newsk);
+
+		if (newsk->sk_memcg) {
+			int amt;
+
+			/* The socket has not been accepted yet, no need
+			 * to look at newsk->sk_wmem_queued.
+			 */
+			amt = sk_mem_pages(newsk->sk_forward_alloc +
+					   atomic_read(&newsk->sk_rmem_alloc));
+			if (amt)
+				mem_cgroup_charge_skmem(newsk->sk_memcg, amt,
+							gfp);
+		}
+
+		kmem_cache_charge(newsk, gfp);
+	}
+
 	sock_rps_record_flow(newsk);
 	WARN_ON(!((1 << newsk->sk_state) &
 		  (TCPF_ESTABLISHED | TCPF_SYN_RECV |
diff --git a/net/ipv4/inet_connection_sock.c b/net/ipv4/inet_connection_sock.c
index 96a73fc5d3d9..723737f8ae6f 100644
--- a/net/ipv4/inet_connection_sock.c
+++ b/net/ipv4/inet_connection_sock.c
@@ -697,30 +697,7 @@ struct sock *inet_csk_accept(struct sock *sk, struct proto_accept_arg *arg)
 
 out:
 	release_sock(sk);
-	if (newsk && mem_cgroup_sockets_enabled) {
-		gfp_t gfp = GFP_KERNEL | __GFP_NOFAIL;
-		int amt = 0;
 
-		/* atomically get the memory usage, set and charge the
-		 * newsk->sk_memcg.
-		 */
-		lock_sock(newsk);
-
-		mem_cgroup_sk_alloc(newsk);
-		if (newsk->sk_memcg) {
-			/* The socket has not been accepted yet, no need
-			 * to look at newsk->sk_wmem_queued.
-			 */
-			amt = sk_mem_pages(newsk->sk_forward_alloc +
-					   atomic_read(&newsk->sk_rmem_alloc));
-		}
-
-		if (amt)
-			mem_cgroup_charge_skmem(newsk->sk_memcg, amt, gfp);
-		kmem_cache_charge(newsk, gfp);
-
-		release_sock(newsk);
-	}
 	if (req)
 		reqsk_put(req);
 
-- 
2.56.1

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Devel] [PATCH hci-8.2 2/9] ms/mptcp: Fix up subflow's memcg when CONFIG_SOCK_CGROUP_DATA=n.
  2026-11-19  4:35 [Devel] [PATCH hci-8.2 0/9] ms/mptcp: backport fixes for dropped stream segments Eva Kurchatova
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 1/9] ms/tcp: Save lock_sock() for memcg in inet_csk_accept() Eva Kurchatova
@ 2026-11-19  4:35 ` Eva Kurchatova
  2026-11-19  4:52   ` no-reply
  2026-11-19 17:08   ` Konstantin Khorenko
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 3/9] ms/net: factor-out _sk_charge() helper Eva Kurchatova
                   ` (8 subsequent siblings)
  10 siblings, 2 replies; 30+ messages in thread
From: Eva Kurchatova @ 2026-11-19  4:35 UTC (permalink / raw)
  To: khorenko, vladimir.riabchun; +Cc: devel

From: Kuniyuki Iwashima <kuniyu@google.com>

[ Upstream commit 68889dfd547bd8eabc5a98b58475d7b901cf5129 ]

When sk_alloc() allocates a socket, mem_cgroup_sk_alloc() sets
sk->sk_memcg based on the current task.

MPTCP subflow socket creation is triggered from userspace or
an in-kernel worker.

In the latter case, sk->sk_memcg is not what we want.  So, we fix
it up from the parent socket's sk->sk_memcg in mptcp_attach_cgroup().

Although the code is placed under #ifdef CONFIG_MEMCG, it is buried
under #ifdef CONFIG_SOCK_CGROUP_DATA.

The two configs are orthogonal.  If CONFIG_MEMCG is enabled without
CONFIG_SOCK_CGROUP_DATA, the subflow's memory usage is not charged
correctly.

Let's move the code out of the wrong ifdef guard.

Note that sk->sk_memcg is freed in sk_prot_free() and the parent
sk holds the refcnt of memcg->css here, so we don't need to use
css_tryget().

Fixes: 3764b0c5651e3 ("mptcp: attach subflow socket to parent cgroup")
Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Acked-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Acked-by: Shakeel Butt <shakeel.butt@linux.dev>
Link: https://patch.msgid.link/20250815201712.1745332-2-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: 37e02c42a00b ("net: restrict SO_RESERVE_MEM to TCP sockets and cap max value")
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit cce9dbd1ea56891bdb7b28ef58f879d4f11f4089)

https://virtuozzo.atlassian.net/browse/VSTOR-155321
Feature: fix ms/net

Signed-off-by: Eva Kurchatova <eva.kurchatova@virtuozzo.com>
---
 include/linux/memcontrol.h |  6 ++++++
 mm/memcontrol.c            | 13 +++++++++++++
 net/mptcp/subflow.c        | 11 +++--------
 3 files changed, 22 insertions(+), 8 deletions(-)

diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h
index e5b8ac79f6c7..b7723bf01058 100644
--- a/include/linux/memcontrol.h
+++ b/include/linux/memcontrol.h
@@ -1727,6 +1727,7 @@ extern struct static_key_false memcg_sockets_enabled_key;
 #define mem_cgroup_sockets_enabled static_branch_unlikely(&memcg_sockets_enabled_key)
 void mem_cgroup_sk_alloc(struct sock *sk);
 void mem_cgroup_sk_free(struct sock *sk);
+void mem_cgroup_sk_inherit(const struct sock *sk, struct sock *newsk);
 static inline bool mem_cgroup_under_socket_pressure(struct mem_cgroup *memcg)
 {
 #ifdef CONFIG_MEMCG_V1
@@ -1749,6 +1750,11 @@ void reparent_shrinker_deferred(struct mem_cgroup *memcg);
 #define mem_cgroup_sockets_enabled 0
 static inline void mem_cgroup_sk_alloc(struct sock *sk) { };
 static inline void mem_cgroup_sk_free(struct sock *sk) { };
+
+static inline void mem_cgroup_sk_inherit(const struct sock *sk, struct sock *newsk)
+{
+}
+
 static inline bool mem_cgroup_under_socket_pressure(struct mem_cgroup *memcg)
 {
 	return false;
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index a67c0bc0ee3d..948a8692d629 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -5719,6 +5719,19 @@ void mem_cgroup_sk_free(struct sock *sk)
 		css_put(&sk->sk_memcg->css);
 }
 
+void mem_cgroup_sk_inherit(const struct sock *sk, struct sock *newsk)
+{
+	if (sk->sk_memcg == newsk->sk_memcg)
+		return;
+
+	mem_cgroup_sk_free(newsk);
+
+	if (sk->sk_memcg)
+		css_get(&sk->sk_memcg->css);
+
+	newsk->sk_memcg = sk->sk_memcg;
+}
+
 /**
  * mem_cgroup_charge_skmem - charge socket memory
  * @memcg: memcg to charge
diff --git a/net/mptcp/subflow.c b/net/mptcp/subflow.c
index eeb4c926a66b..7a9f74fa938d 100644
--- a/net/mptcp/subflow.c
+++ b/net/mptcp/subflow.c
@@ -1726,19 +1726,14 @@ static void mptcp_attach_cgroup(struct sock *parent, struct sock *child)
 	/* only the additional subflows created by kworkers have to be modified */
 	if (cgroup_id(sock_cgroup_ptr(parent_skcd)) !=
 	    cgroup_id(sock_cgroup_ptr(child_skcd))) {
-#ifdef CONFIG_MEMCG
-		struct mem_cgroup *memcg = parent->sk_memcg;
-
-		mem_cgroup_sk_free(child);
-		if (memcg && css_tryget(&memcg->css))
-			child->sk_memcg = memcg;
-#endif /* CONFIG_MEMCG */
-
 		cgroup_sk_free(child_skcd);
 		*child_skcd = *parent_skcd;
 		cgroup_sk_clone(child_skcd);
 	}
 #endif /* CONFIG_SOCK_CGROUP_DATA */
+
+	if (mem_cgroup_sockets_enabled)
+		mem_cgroup_sk_inherit(parent, child);
 }
 
 static void mptcp_subflow_ops_override(struct sock *ssk)
-- 
2.56.1

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Devel] [PATCH hci-8.2 3/9] ms/net: factor-out _sk_charge() helper
  2026-11-19  4:35 [Devel] [PATCH hci-8.2 0/9] ms/mptcp: backport fixes for dropped stream segments Eva Kurchatova
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 1/9] ms/tcp: Save lock_sock() for memcg in inet_csk_accept() Eva Kurchatova
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 2/9] ms/mptcp: Fix up subflow's memcg when CONFIG_SOCK_CGROUP_DATA=n Eva Kurchatova
@ 2026-11-19  4:35 ` Eva Kurchatova
  2026-11-19  4:53   ` no-reply
  2026-11-19 17:08   ` Konstantin Khorenko
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 4/9] ms/mptcp: factor-out cgroup data inherit helper Eva Kurchatova
                   ` (7 subsequent siblings)
  10 siblings, 2 replies; 30+ messages in thread
From: Eva Kurchatova @ 2026-11-19  4:35 UTC (permalink / raw)
  To: khorenko, vladimir.riabchun; +Cc: devel

From: Paolo Abeni <pabeni@redhat.com>

Move out of __inet_accept() the code dealing charging newly
accepted socket to memcg. MPTCP will soon use it to on a per
subflow basis, in different contexts.

No functional changes intended.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Geliang Tang <geliang@kernel.org>
Acked-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20251121-net-next-mptcp-memcg-backlog-imp-v1-1-1f34b6c1e0b1@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
(cherry picked from commit 075b19c211dfeea5f27075293ddf8795b78c9bd9)

Rebase note: __sk_charge() uses sk->sk_memcg and
mem_cgroup_charge_skmem(), as this tree has neither mem_cgroup_from_sk()
nor mem_cgroup_sk_charge(), and __inet_accept() keeps SCTP out as in
the previous patch.

https://virtuozzo.atlassian.net/browse/VSTOR-155321
Feature: fix ms/net

Signed-off-by: Eva Kurchatova <eva.kurchatova@virtuozzo.com>
---
 include/net/sock.h |  2 ++
 net/core/sock.c    | 18 ++++++++++++++++++
 net/ipv4/af_inet.c | 18 +-----------------
 3 files changed, 21 insertions(+), 17 deletions(-)

diff --git a/include/net/sock.h b/include/net/sock.h
index 17c965061c30..bfd578ffe66c 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -1585,6 +1585,8 @@ static inline void sk_mem_uncharge(struct sock *sk, int size)
 	sk_mem_reclaim(sk);
 }
 
+void __sk_charge(struct sock *sk, gfp_t gfp);
+
 #if IS_ENABLED(CONFIG_PROVE_LOCKING) && IS_ENABLED(CONFIG_MODULES)
 static inline void sk_owner_set(struct sock *sk, struct module *owner)
 {
diff --git a/net/core/sock.c b/net/core/sock.c
index 46e20b96214c..f43ce9cd1847 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -3375,6 +3375,24 @@ void __sk_mem_reclaim(struct sock *sk, int amount)
 }
 EXPORT_SYMBOL(__sk_mem_reclaim);
 
+void __sk_charge(struct sock *sk, gfp_t gfp)
+{
+	int amt;
+
+	gfp |= __GFP_NOFAIL;
+	if (sk->sk_memcg) {
+		/* The socket has not been accepted yet, no need
+		 * to look at newsk->sk_wmem_queued.
+		 */
+		amt = sk_mem_pages(sk->sk_forward_alloc +
+				   atomic_read(&sk->sk_rmem_alloc));
+		if (amt)
+			mem_cgroup_charge_skmem(sk->sk_memcg, amt, gfp);
+	}
+
+	kmem_cache_charge(sk, gfp);
+}
+
 int sk_set_peek_off(struct sock *sk, int val)
 {
 	WRITE_ONCE(sk->sk_peek_off, val);
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c
index 5c2097f96c8f..f02efe8201dd 100644
--- a/net/ipv4/af_inet.c
+++ b/net/ipv4/af_inet.c
@@ -762,24 +762,8 @@ void __inet_accept(struct socket *sock, struct socket *newsock, struct sock *new
 {
 	/* SCTP sets the memcg of its accepted sockets in sk_alloc() */
 	if (mem_cgroup_sockets_enabled && newsk->sk_protocol != IPPROTO_SCTP) {
-		gfp_t gfp = GFP_KERNEL | __GFP_NOFAIL;
-
 		mem_cgroup_sk_alloc(newsk);
-
-		if (newsk->sk_memcg) {
-			int amt;
-
-			/* The socket has not been accepted yet, no need
-			 * to look at newsk->sk_wmem_queued.
-			 */
-			amt = sk_mem_pages(newsk->sk_forward_alloc +
-					   atomic_read(&newsk->sk_rmem_alloc));
-			if (amt)
-				mem_cgroup_charge_skmem(newsk->sk_memcg, amt,
-							gfp);
-		}
-
-		kmem_cache_charge(newsk, gfp);
+		__sk_charge(newsk, GFP_KERNEL);
 	}
 
 	sock_rps_record_flow(newsk);
-- 
2.56.1

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Devel] [PATCH hci-8.2 4/9] ms/mptcp: factor-out cgroup data inherit helper
  2026-11-19  4:35 [Devel] [PATCH hci-8.2 0/9] ms/mptcp: backport fixes for dropped stream segments Eva Kurchatova
                   ` (2 preceding siblings ...)
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 3/9] ms/net: factor-out _sk_charge() helper Eva Kurchatova
@ 2026-11-19  4:35 ` Eva Kurchatova
  2026-11-19  4:54   ` no-reply
  2026-11-19 17:08   ` Konstantin Khorenko
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 5/9] ms/mptcp: grafting MPJ subflow earlier Eva Kurchatova
                   ` (6 subsequent siblings)
  10 siblings, 2 replies; 30+ messages in thread
From: Eva Kurchatova @ 2026-11-19  4:35 UTC (permalink / raw)
  To: khorenko, vladimir.riabchun; +Cc: devel

From: Paolo Abeni <pabeni@redhat.com>

MPTCP will soon need the same functionality for passive sockets,
factor them out in a common helper. No functional change intended.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Geliang Tang <geliang@kernel.org>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20251121-net-next-mptcp-memcg-backlog-imp-v1-2-1f34b6c1e0b1@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
(cherry picked from commit bd92dd8e03d98a499c8525e3748f046aaca2090d)

https://virtuozzo.atlassian.net/browse/VSTOR-155321
Feature: fix ms/net

Signed-off-by: Eva Kurchatova <eva.kurchatova@virtuozzo.com>
---
 net/mptcp/protocol.h |  2 ++
 net/mptcp/subflow.c  | 20 ++++++++++++--------
 2 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/net/mptcp/protocol.h b/net/mptcp/protocol.h
index eb672230c6cb..3aead322b473 100644
--- a/net/mptcp/protocol.h
+++ b/net/mptcp/protocol.h
@@ -701,6 +701,8 @@ mptcp_subflow_delegated_next(struct mptcp_delegated_action *delegated)
 	return ret;
 }
 
+void __mptcp_inherit_cgrp_data(struct sock *sk, struct sock *ssk);
+
 int mptcp_is_enabled(const struct net *net);
 unsigned int mptcp_get_add_addr_timeout(const struct net *net);
 int mptcp_is_checksum_enabled(const struct net *net);
diff --git a/net/mptcp/subflow.c b/net/mptcp/subflow.c
index 7a9f74fa938d..cd9fb65fb832 100644
--- a/net/mptcp/subflow.c
+++ b/net/mptcp/subflow.c
@@ -1717,21 +1717,25 @@ int __mptcp_subflow_connect(struct sock *sk, const struct mptcp_pm_local *local,
 	return err;
 }
 
-static void mptcp_attach_cgroup(struct sock *parent, struct sock *child)
+void __mptcp_inherit_cgrp_data(struct sock *sk, struct sock *ssk)
 {
 #ifdef CONFIG_SOCK_CGROUP_DATA
-	struct sock_cgroup_data *parent_skcd = &parent->sk_cgrp_data,
-				*child_skcd = &child->sk_cgrp_data;
+	struct sock_cgroup_data *sk_cd = &sk->sk_cgrp_data,
+				*ssk_cd = &ssk->sk_cgrp_data;
 
 	/* only the additional subflows created by kworkers have to be modified */
-	if (cgroup_id(sock_cgroup_ptr(parent_skcd)) !=
-	    cgroup_id(sock_cgroup_ptr(child_skcd))) {
-		cgroup_sk_free(child_skcd);
-		*child_skcd = *parent_skcd;
-		cgroup_sk_clone(child_skcd);
+	if (cgroup_id(sock_cgroup_ptr(sk_cd)) !=
+	    cgroup_id(sock_cgroup_ptr(ssk_cd))) {
+		cgroup_sk_free(ssk_cd);
+		*ssk_cd = *sk_cd;
+		cgroup_sk_clone(sk_cd);
 	}
 #endif /* CONFIG_SOCK_CGROUP_DATA */
+}
 
+static void mptcp_attach_cgroup(struct sock *parent, struct sock *child)
+{
+	__mptcp_inherit_cgrp_data(parent, child);
 	if (mem_cgroup_sockets_enabled)
 		mem_cgroup_sk_inherit(parent, child);
 }
-- 
2.56.1

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Devel] [PATCH hci-8.2 5/9] ms/mptcp: grafting MPJ subflow earlier
  2026-11-19  4:35 [Devel] [PATCH hci-8.2 0/9] ms/mptcp: backport fixes for dropped stream segments Eva Kurchatova
                   ` (3 preceding siblings ...)
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 4/9] ms/mptcp: factor-out cgroup data inherit helper Eva Kurchatova
@ 2026-11-19  4:35 ` Eva Kurchatova
  2026-11-19  4:59   ` no-reply
  2026-11-19 17:08   ` Konstantin Khorenko
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 6/9] ms/mptcp: fix memcg accounting for passive sockets Eva Kurchatova
                   ` (5 subsequent siblings)
  10 siblings, 2 replies; 30+ messages in thread
From: Eva Kurchatova @ 2026-11-19  4:35 UTC (permalink / raw)
  To: khorenko, vladimir.riabchun; +Cc: devel

From: Paolo Abeni <pabeni@redhat.com>

Later patches need to ensure that all MPJ subflows are grafted to the
msk socket before accept() completion.

Currently the grafting happens under the msk socket lock: potentially
at msk release_cb time which make satisfying the above condition a bit
tricky.

Move the MPJ subflow grafting earlier, under the msk data lock, so that
we can use such lock as a synchronization point.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20251121-net-next-mptcp-memcg-backlog-imp-v1-3-1f34b6c1e0b1@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
(cherry picked from commit e777a7fb06b17cd62f6935313eef0206174ed71d)

https://virtuozzo.atlassian.net/browse/VSTOR-155321
Feature: fix ms/net

Signed-off-by: Eva Kurchatova <eva.kurchatova@virtuozzo.com>
---
 net/mptcp/protocol.c | 30 +++++++++++++++++++++++-------
 1 file changed, 23 insertions(+), 7 deletions(-)

diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c
index 26e608355663..d91d6a5a3fd2 100644
--- a/net/mptcp/protocol.c
+++ b/net/mptcp/protocol.c
@@ -894,12 +894,6 @@ static bool __mptcp_finish_join(struct mptcp_sock *msk, struct sock *ssk)
 	mptcp_subflow_joined(msk, ssk);
 	spin_unlock_bh(&msk->fallback_lock);
 
-	/* attach to msk socket only after we are sure we will deal with it
-	 * at close time
-	 */
-	if (sk->sk_socket && !ssk->sk_socket)
-		mptcp_sock_graft(ssk, sk->sk_socket);
-
 	mptcp_subflow_ctx(ssk)->subflow_id = msk->subflow_id++;
 	mptcp_sockopt_sync_locked(msk, ssk);
 	mptcp_stop_tout_timer(sk);
@@ -3757,6 +3751,20 @@ void mptcp_sock_graft(struct sock *sk, struct socket *parent)
 	write_unlock_bh(&sk->sk_callback_lock);
 }
 
+/* Can be called without holding the msk socket lock; use the callback lock
+ * to avoid {READ_,WRITE_}ONCE annotations on sk_socket.
+ */
+static void mptcp_sock_check_graft(struct sock *sk, struct sock *ssk)
+{
+	struct socket *sock;
+
+	write_lock_bh(&sk->sk_callback_lock);
+	sock = sk->sk_socket;
+	write_unlock_bh(&sk->sk_callback_lock);
+	if (sock)
+		mptcp_sock_graft(ssk, sock);
+}
+
 bool mptcp_finish_join(struct sock *ssk)
 {
 	struct mptcp_subflow_context *subflow = mptcp_subflow_ctx(ssk);
@@ -3772,7 +3780,9 @@ bool mptcp_finish_join(struct sock *ssk)
 		return false;
 	}
 
-	/* active subflow, already present inside the conn_list */
+	/* Active subflow, already present inside the conn_list; is grafted
+	 * either by __mptcp_subflow_connect() or accept.
+	 */
 	if (!list_empty(&subflow->node)) {
 		spin_lock_bh(&msk->fallback_lock);
 		if (!msk->allow_subflows) {
@@ -3797,11 +3807,17 @@ bool mptcp_finish_join(struct sock *ssk)
 		if (ret) {
 			sock_hold(ssk);
 			list_add_tail(&subflow->node, &msk->conn_list);
+			mptcp_sock_check_graft(parent, ssk);
 		}
 	} else {
 		sock_hold(ssk);
 		list_add_tail(&subflow->node, &msk->join_list);
 		__set_bit(MPTCP_FLUSH_JOIN_LIST, &msk->cb_flags);
+
+		/* In case of later failures, __mptcp_flush_join_list() will
+		 * properly orphan the ssk via mptcp_close_ssk().
+		 */
+		mptcp_sock_check_graft(parent, ssk);
 	}
 	mptcp_data_unlock(parent);
 
-- 
2.56.1

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Devel] [PATCH hci-8.2 6/9] ms/mptcp: fix memcg accounting for passive sockets
  2026-11-19  4:35 [Devel] [PATCH hci-8.2 0/9] ms/mptcp: backport fixes for dropped stream segments Eva Kurchatova
                   ` (4 preceding siblings ...)
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 5/9] ms/mptcp: grafting MPJ subflow earlier Eva Kurchatova
@ 2026-11-19  4:35 ` Eva Kurchatova
  2026-11-19  4:58   ` no-reply
  2026-11-19 17:08   ` Konstantin Khorenko
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 7/9] ms/mptcp: handle first subflow closing consistently Eva Kurchatova
                   ` (4 subsequent siblings)
  10 siblings, 2 replies; 30+ messages in thread
From: Eva Kurchatova @ 2026-11-19  4:35 UTC (permalink / raw)
  To: khorenko, vladimir.riabchun; +Cc: devel

From: Paolo Abeni <pabeni@redhat.com>

The passive sockets never got proper memcg accounting: the msk
socket is associated with the memcg at accept time, but the
passive subflows never got it right.

At accept time, traverse the subflows list and associate each of them
with the msk memcg, and try to do the same at join completion time, if
the msk has been already accepted.

Fixes: cf7da0d66cc1 ("mptcp: Create SUBFLOW socket for incoming connections")
Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/298
Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/597
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20251121-net-next-mptcp-memcg-backlog-imp-v1-4-1f34b6c1e0b1@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
(cherry picked from commit 68c7c386714512219e3517ec1097d164aee102fb)

Rebase note: this tree has no mptcp_rps_record_subflows(), so
mptcp_stream_accept() only calls mptcp_graft_subflows() in its place.
mptcp_graft_subflows() first moves the subflows that joined while
accept() held the msk from join_list to conn_list, so that they are
grafted and charged too. Mainline does that, with memcg enabled, since
6228efe0cc01 ("mptcp: leverage the backlog for RX packet processing"),
which also brings the backlog this tree lacks. A subflow that joined
after sk_socket was set got the memcg and its charge at join time
already, so __mptcp_inherit_memcg() leaves a subflow that has the memcg
of the msk alone rather than charge it again.

https://virtuozzo.atlassian.net/browse/VSTOR-155321
Feature: fix ms/net

Signed-off-by: Eva Kurchatova <eva.kurchatova@virtuozzo.com>
---
 net/mptcp/protocol.c | 44 ++++++++++++++++++++++++++++++++++----------
 net/mptcp/protocol.h |  1 +
 net/mptcp/subflow.c  | 14 ++++++++++++++
 3 files changed, 49 insertions(+), 10 deletions(-)

diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c
index d91d6a5a3fd2..91c47ff3093c 100644
--- a/net/mptcp/protocol.c
+++ b/net/mptcp/protocol.c
@@ -3761,8 +3761,11 @@ static void mptcp_sock_check_graft(struct sock *sk, struct sock *ssk)
 	write_lock_bh(&sk->sk_callback_lock);
 	sock = sk->sk_socket;
 	write_unlock_bh(&sk->sk_callback_lock);
-	if (sock)
+	if (sock) {
 		mptcp_sock_graft(ssk, sock);
+		__mptcp_inherit_cgrp_data(sk, ssk);
+		__mptcp_inherit_memcg(sk, ssk, GFP_ATOMIC);
+	}
 }
 
 bool mptcp_finish_join(struct sock *ssk)
@@ -4087,6 +4090,35 @@ static int mptcp_listen(struct socket *sock, int backlog)
 	return err;
 }
 
+static void mptcp_graft_subflows(struct sock *sk)
+{
+	struct mptcp_subflow_context *subflow;
+	struct mptcp_sock *msk = mptcp_sk(sk);
+	LIST_HEAD(join_list);
+
+	/* Subflows that joined while accept() held the msk wait in join_list */
+	mptcp_data_lock(sk);
+	list_splice_init(&msk->join_list, &join_list);
+	mptcp_data_unlock(sk);
+	__mptcp_flush_join_list(sk, &join_list);
+
+	mptcp_for_each_subflow(msk, subflow) {
+		struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
+
+		lock_sock(ssk);
+
+		/* Set ssk->sk_socket of accept()ed flows to mptcp socket.
+		 * This is needed so NOSPACE flag can be set from tcp stack.
+		 */
+		if (!ssk->sk_socket)
+			mptcp_sock_graft(ssk, sk->sk_socket);
+
+		__mptcp_inherit_cgrp_data(sk, ssk);
+		__mptcp_inherit_memcg(sk, ssk, GFP_KERNEL);
+		release_sock(ssk);
+	}
+}
+
 static int mptcp_stream_accept(struct socket *sock, struct socket *newsock,
 			       struct proto_accept_arg *arg)
 {
@@ -4134,15 +4166,7 @@ static int mptcp_stream_accept(struct socket *sock, struct socket *newsock,
 		msk = mptcp_sk(newsk);
 		msk->in_accept_queue = 0;
 
-		/* set ssk->sk_socket of accept()ed flows to mptcp socket.
-		 * This is needed so NOSPACE flag can be set from tcp stack.
-		 */
-		mptcp_for_each_subflow(msk, subflow) {
-			struct sock *ssk = mptcp_subflow_tcp_sock(subflow);
-
-			if (!ssk->sk_socket)
-				mptcp_sock_graft(ssk, newsock);
-		}
+		mptcp_graft_subflows(newsk);
 
 		/* Do late cleanup for the first subflow as necessary. Also
 		 * deal with bad peers not doing a complete shutdown.
diff --git a/net/mptcp/protocol.h b/net/mptcp/protocol.h
index 3aead322b473..214efbf3e788 100644
--- a/net/mptcp/protocol.h
+++ b/net/mptcp/protocol.h
@@ -701,6 +701,7 @@ mptcp_subflow_delegated_next(struct mptcp_delegated_action *delegated)
 	return ret;
 }
 
+void __mptcp_inherit_memcg(struct sock *sk, struct sock *ssk, gfp_t gfp);
 void __mptcp_inherit_cgrp_data(struct sock *sk, struct sock *ssk);
 
 int mptcp_is_enabled(const struct net *net);
diff --git a/net/mptcp/subflow.c b/net/mptcp/subflow.c
index cd9fb65fb832..498142276cac 100644
--- a/net/mptcp/subflow.c
+++ b/net/mptcp/subflow.c
@@ -1717,6 +1717,20 @@ int __mptcp_subflow_connect(struct sock *sk, const struct mptcp_pm_local *local,
 	return err;
 }
 
+void __mptcp_inherit_memcg(struct sock *sk, struct sock *ssk, gfp_t gfp)
+{
+	/* Only if the msk has been accepted already (and not orphaned).*/
+	if (!mem_cgroup_sockets_enabled || !sk->sk_socket)
+		return;
+
+	/* Charged when it got the memcg, e.g. on a join during accept() */
+	if (ssk->sk_memcg && ssk->sk_memcg == sk->sk_memcg)
+		return;
+
+	mem_cgroup_sk_inherit(sk, ssk);
+	__sk_charge(ssk, gfp);
+}
+
 void __mptcp_inherit_cgrp_data(struct sock *sk, struct sock *ssk)
 {
 #ifdef CONFIG_SOCK_CGROUP_DATA
-- 
2.56.1

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Devel] [PATCH hci-8.2 7/9] ms/mptcp: handle first subflow closing consistently
  2026-11-19  4:35 [Devel] [PATCH hci-8.2 0/9] ms/mptcp: backport fixes for dropped stream segments Eva Kurchatova
                   ` (5 preceding siblings ...)
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 6/9] ms/mptcp: fix memcg accounting for passive sockets Eva Kurchatova
@ 2026-11-19  4:35 ` Eva Kurchatova
  2026-11-19  4:59   ` no-reply
  2026-11-19 17:08   ` Konstantin Khorenko
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 8/9] ms/mptcp: borrow forward memory from subflow Eva Kurchatova
                   ` (3 subsequent siblings)
  10 siblings, 2 replies; 30+ messages in thread
From: Eva Kurchatova @ 2026-11-19  4:35 UTC (permalink / raw)
  To: khorenko, vladimir.riabchun; +Cc: devel

From: Paolo Abeni <pabeni@redhat.com>

Currently, as soon as the PM closes a subflow, the msk stops accepting
data from it, even if the TCP socket could be still formally open in the
incoming direction, with the notable exception of the first subflow.

The root cause of such behavior is that code currently piggy back two
separate semantic on the subflow->disposable bit: the subflow context
must be released and that the subflow must stop accepting incoming
data.

The first subflow is never disposed, so it also never stop accepting
incoming data. Use a separate bit to mark the latter status and set such
bit in __mptcp_close_ssk() for all subflows.

Beyond making per subflow behaviour more consistent this will also
simplify the next patch.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20251121-net-next-mptcp-memcg-backlog-imp-v1-11-1f34b6c1e0b1@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
(cherry picked from commit 0eeb372deebce6c25b9afc09e35d6c75a744299a)

Rebase note: close_event_done is a bool outside the bitfield in this
tree, and "ms/mptcp: move the stale logic out of retrans scheduler"
already dropped the stale bit, so __unused goes from 11 to 10 instead
of from 9 to 8.

https://virtuozzo.atlassian.net/browse/VSTOR-155321
Feature: fix ms/net

Signed-off-by: Eva Kurchatova <eva.kurchatova@virtuozzo.com>
---
 net/mptcp/protocol.c | 14 +++++++++-----
 net/mptcp/protocol.h |  3 ++-
 2 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c
index 91c47ff3093c..e278f199a200 100644
--- a/net/mptcp/protocol.c
+++ b/net/mptcp/protocol.c
@@ -858,10 +858,10 @@ void mptcp_data_ready(struct sock *sk, struct sock *ssk)
 	struct mptcp_subflow_context *subflow = mptcp_subflow_ctx(ssk);
 
 	/* The peer can send data while we are shutting down this
-	 * subflow at msk destruction time, but we must avoid enqueuing
+	 * subflow at subflow destruction time, but we must avoid enqueuing
 	 * more data to the msk receive queue
 	 */
-	if (unlikely(subflow->disposable))
+	if (unlikely(subflow->closing))
 		return;
 
 	mptcp_data_lock(sk);
@@ -2449,6 +2449,13 @@ static void __mptcp_close_ssk(struct sock *sk, struct sock *ssk,
 	struct mptcp_sock *msk = mptcp_sk(sk);
 	bool dispose_it, need_push = false;
 
+	/* Do not pass RX data to the msk, even if the subflow socket is not
+	 * going to be freed (i.e. even for the first subflow on graceful
+	 * subflow close.
+	 */
+	lock_sock_nested(ssk, SINGLE_DEPTH_NESTING);
+	subflow->closing = 1;
+
 	/* If the first subflow moved to a close state before accept, e.g. due
 	 * to an incoming reset or listener shutdown, the subflow socket is
 	 * already deleted by inet_child_forget() and the mptcp socket can't
@@ -2459,7 +2466,6 @@ static void __mptcp_close_ssk(struct sock *sk, struct sock *ssk,
 		/* ensure later check in mptcp_worker() will dispose the msk */
 		sock_set_flag(sk, SOCK_DEAD);
 		mptcp_set_close_tout(sk, tcp_jiffies32 - (mptcp_close_timeout(sk) + 1));
-		lock_sock_nested(ssk, SINGLE_DEPTH_NESTING);
 		mptcp_subflow_drop_ctx(ssk);
 		goto out_release;
 	}
@@ -2468,8 +2474,6 @@ static void __mptcp_close_ssk(struct sock *sk, struct sock *ssk,
 	if (dispose_it)
 		list_del(&subflow->node);
 
-	lock_sock_nested(ssk, SINGLE_DEPTH_NESTING);
-
 	if (subflow->send_fastclose && ssk->sk_state != TCP_CLOSE)
 		tcp_set_state(ssk, TCP_CLOSE);
 
diff --git a/net/mptcp/protocol.h b/net/mptcp/protocol.h
index 214efbf3e788..282176fe111d 100644
--- a/net/mptcp/protocol.h
+++ b/net/mptcp/protocol.h
@@ -531,10 +531,11 @@ struct mptcp_subflow_context {
 		send_infinite_map : 1,
 		remote_key_valid : 1,        /* received the peer key from */
 		disposable : 1,	    /* ctx can be free at ulp release time */
+		closing : 1,	    /* must not pass rx data to msk anymore */
 		valid_csum_seen : 1,        /* at least one csum validated */
 		is_mptfo : 1,	    /* subflow is doing TFO */
 		mpc_drop : 1,	    /* the MPC option has been dropped in a rtx */
-		__unused : 11;
+		__unused : 10;
 	bool	data_avail;
 	bool	scheduled;
 	bool	pm_listener;	    /* a listener managed by the kernel PM? */
-- 
2.56.1

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Devel] [PATCH hci-8.2 8/9] ms/mptcp: borrow forward memory from subflow
  2026-11-19  4:35 [Devel] [PATCH hci-8.2 0/9] ms/mptcp: backport fixes for dropped stream segments Eva Kurchatova
                   ` (6 preceding siblings ...)
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 7/9] ms/mptcp: handle first subflow closing consistently Eva Kurchatova
@ 2026-11-19  4:35 ` Eva Kurchatova
  2026-11-19  5:03   ` no-reply
  2026-11-19 17:08   ` Konstantin Khorenko
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 9/9] ms/mptcp: reclaim forward-allocated memory on RX path errors Eva Kurchatova
                   ` (2 subsequent siblings)
  10 siblings, 2 replies; 30+ messages in thread
From: Eva Kurchatova @ 2026-11-19  4:35 UTC (permalink / raw)
  To: khorenko, vladimir.riabchun; +Cc: devel

From: Paolo Abeni <pabeni@redhat.com>

In the MPTCP receive path, we release the subflow allocated fwd
memory just to allocate it again shortly after for the msk.

That could increases the failures chances, especially when we will
add backlog processing, with other actions could consume the just
released memory before the msk socket has a chance to do the
rcv allocation.

Replace the skb_orphan() call with an open-coded variant that
explicitly borrows, the fwd memory from the subflow socket instead
of releasing it.

The borrowed memory does not have PAGE_SIZE granularity; rounding to
the page size will make the fwd allocated memory higher than what is
strictly required and could make the incoming subflow fwd mem
consistently negative. Instead, keep track of the accumulated frag and
borrow the full page at subflow close time.

This allow removing the last drop in the TCP to MPTCP transition and
the associated, now unused, MIB.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20251121-net-next-mptcp-memcg-backlog-imp-v1-12-1f34b6c1e0b1@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
(cherry picked from commit 9db5b3cec4ec1c0cd3239689f5c8653d691a1754)

Rebase note: mptcp_init_skb() is not split out of __mptcp_move_skb() in
this tree, so the subflow lends and the msk borrows the forward memory
there, in place of skb_orphan() and the sk_rmem_schedule() check.
lent_mem_frag goes after the close_event_done bool.
Here the patch comes after "ms/mptcp: implemented OoO queue pruning",
which it precedes in mainline, so RcvPruned and the drop label stay
for the in-sequence check of that patch. Mainline removed the counter
here and brought it back with e0e4d56b0505 ("mptcp: explicitly drop
over memory limits").

https://virtuozzo.atlassian.net/browse/VSTOR-155321
Feature: fix ms/net

Signed-off-by: Eva Kurchatova <eva.kurchatova@virtuozzo.com>
---
 net/mptcp/fastopen.c |  4 +++-
 net/mptcp/protocol.c | 21 ++++++++++++++-------
 net/mptcp/protocol.h | 28 ++++++++++++++++++++++++++++
 3 files changed, 45 insertions(+), 8 deletions(-)

diff --git a/net/mptcp/fastopen.c b/net/mptcp/fastopen.c
index b9e451197902..82ec15bcfd7f 100644
--- a/net/mptcp/fastopen.c
+++ b/net/mptcp/fastopen.c
@@ -32,7 +32,8 @@ void mptcp_fastopen_subflow_synack_set_params(struct mptcp_subflow_context *subf
 	/* dequeue the skb from sk receive queue */
 	__skb_unlink(skb, &ssk->sk_receive_queue);
 	skb_ext_reset(skb);
-	skb_orphan(skb);
+
+	mptcp_subflow_lend_fwdmem(subflow, skb);
 
 	/* We copy the fastopen data, but that don't belong to the mptcp sequence
 	 * space, need to offset it in the subflow sequence, see mptcp_subflow_get_map_offset()
@@ -50,6 +51,7 @@ void mptcp_fastopen_subflow_synack_set_params(struct mptcp_subflow_context *subf
 	mptcp_data_lock(sk);
 	DEBUG_NET_WARN_ON_ONCE(sock_owned_by_user_nocheck(sk));
 
+	mptcp_borrow_fwdmem(sk, skb);
 	skb_set_owner_r(skb, sk);
 	__skb_queue_tail(&sk->sk_receive_queue, skb);
 	mptcp_sk(sk)->bytes_received += skb->len;
diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c
index e278f199a200..ff0a56db0876 100644
--- a/net/mptcp/protocol.c
+++ b/net/mptcp/protocol.c
@@ -349,13 +349,8 @@ static bool __mptcp_move_skb(struct mptcp_sock *msk, struct sock *ssk,
 	__skb_unlink(skb, &ssk->sk_receive_queue);
 
 	skb_ext_reset(skb);
-	skb_orphan(skb);
-
-	/* try to fetch required memory from subflow */
-	if (!sk_rmem_schedule(sk, skb, skb->truesize)) {
-		MPTCP_INC_STATS(sock_net(sk), MPTCP_MIB_RCVPRUNED);
-		goto drop;
-	}
+	mptcp_subflow_lend_fwdmem(subflow, skb);
+	mptcp_borrow_fwdmem(sk, skb);
 
 	has_rxtstamp = TCP_SKB_CB(skb)->has_rxtstamp;
 
@@ -2448,6 +2443,7 @@ static void __mptcp_close_ssk(struct sock *sk, struct sock *ssk,
 {
 	struct mptcp_sock *msk = mptcp_sk(sk);
 	bool dispose_it, need_push = false;
+	int fwd_remaining;
 
 	/* Do not pass RX data to the msk, even if the subflow socket is not
 	 * going to be freed (i.e. even for the first subflow on graceful
@@ -2456,6 +2452,17 @@ static void __mptcp_close_ssk(struct sock *sk, struct sock *ssk,
 	lock_sock_nested(ssk, SINGLE_DEPTH_NESTING);
 	subflow->closing = 1;
 
+	/* Borrow the fwd allocated page left-over; fwd memory for the subflow
+	 * could be negative at this point, but will be reach zero soon - when
+	 * the data allocated using such fragment will be freed.
+	 */
+	if (subflow->lent_mem_frag) {
+		fwd_remaining = PAGE_SIZE - subflow->lent_mem_frag;
+		sk_forward_alloc_add(sk, fwd_remaining);
+		sk_forward_alloc_add(ssk, -fwd_remaining);
+		subflow->lent_mem_frag = 0;
+	}
+
 	/* If the first subflow moved to a close state before accept, e.g. due
 	 * to an incoming reset or listener shutdown, the subflow socket is
 	 * already deleted by inet_child_forget() and the mptcp socket can't
diff --git a/net/mptcp/protocol.h b/net/mptcp/protocol.h
index 282176fe111d..51a8a3357e2d 100644
--- a/net/mptcp/protocol.h
+++ b/net/mptcp/protocol.h
@@ -543,6 +543,7 @@ struct mptcp_subflow_context {
 	bool	close_event_done;   /* has done the post-closed part,
 				     * protected by msk socket lock
 				     */
+	u32	lent_mem_frag;
 	u32	remote_nonce;
 	u64	thmac;
 	u32	local_nonce;
@@ -646,6 +647,33 @@ mptcp_send_active_reset_reason(struct sock *sk)
 	tcp_send_active_reset(sk, GFP_ATOMIC, reason);
 }
 
+/* Made the fwd mem carried by the given skb available to the msk,
+ * To be paired with a previous mptcp_subflow_lend_fwdmem() before freeing
+ * the skb or setting the skb ownership.
+ */
+static inline void mptcp_borrow_fwdmem(struct sock *sk, struct sk_buff *skb)
+{
+	struct sock *ssk = skb->sk;
+
+	/* The subflow just lend the skb fwd memory, and we know that the skb
+	 * is only accounted on the incoming subflow rcvbuf.
+	 */
+	DEBUG_NET_WARN_ON_ONCE(skb->destructor);
+	skb->sk = NULL;
+	sk_forward_alloc_add(sk, skb->truesize);
+	atomic_sub(skb->truesize, &ssk->sk_rmem_alloc);
+}
+
+static inline void
+mptcp_subflow_lend_fwdmem(struct mptcp_subflow_context *subflow,
+			  struct sk_buff *skb)
+{
+	int frag = (subflow->lent_mem_frag + skb->truesize) & (PAGE_SIZE - 1);
+
+	skb->destructor = NULL;
+	subflow->lent_mem_frag = frag;
+}
+
 static inline u64
 mptcp_subflow_get_map_offset(const struct mptcp_subflow_context *subflow)
 {
-- 
2.56.1

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Devel] [PATCH hci-8.2 9/9] ms/mptcp: reclaim forward-allocated memory on RX path errors
  2026-11-19  4:35 [Devel] [PATCH hci-8.2 0/9] ms/mptcp: backport fixes for dropped stream segments Eva Kurchatova
                   ` (7 preceding siblings ...)
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 8/9] ms/mptcp: borrow forward memory from subflow Eva Kurchatova
@ 2026-11-19  4:35 ` Eva Kurchatova
  2026-11-19  5:01   ` no-reply
  2026-11-19 17:08   ` Konstantin Khorenko
  2026-11-19 17:08 ` [Devel] [PATCH hci-8.2 0/9] ms/mptcp: backport fixes for dropped stream segments Konstantin Khorenko
  2026-11-19 17:08 ` Konstantin Khorenko
  10 siblings, 2 replies; 30+ messages in thread
From: Eva Kurchatova @ 2026-11-19  4:35 UTC (permalink / raw)
  To: khorenko, vladimir.riabchun; +Cc: devel

From: Paolo Abeni <pabeni@redhat.com>

After commit 9db5b3cec4ec ("mptcp: borrow forward memory from subflow"),
errors in the receive path prior to queueing skbs into the receive
queue do not trigger forward-allocated memory reclaiming.

Prevent forward memory from growing unboundedly in pathological drop
scenarios by explicitly reclaiming memory when skbs are dropped.

Fixes: 9db5b3cec4ec ("mptcp: borrow forward memory from subflow")
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20260803-net-mptcp-misc-fixes-7-2-rc6-v2-8-b8f496d71664@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
(cherry picked from commit 41b49a8b914ec7dcb03eae93fb27f3c464078644)

Rebase note: this tree counts the drop with sk_drops_add().

https://virtuozzo.atlassian.net/browse/VSTOR-155321
Feature: fix ms/net

Signed-off-by: Eva Kurchatova <eva.kurchatova@virtuozzo.com>
---
 net/mptcp/protocol.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c
index ff0a56db0876..00852e9c71fb 100644
--- a/net/mptcp/protocol.c
+++ b/net/mptcp/protocol.c
@@ -116,6 +116,12 @@ struct sock *__mptcp_nmpc_sk(struct mptcp_sock *msk)
 
 static void mptcp_drop(struct sock *sk, struct sk_buff *skb)
 {
+	/* The skb forward memory was already transferred to sk by
+	 * mptcp_borrow_fwdmem(), even before setting the destructor.
+	 */
+	if (!skb->destructor)
+		sk_mem_reclaim(sk);
+
 	sk_drops_add(sk, skb);
 	__kfree_skb(skb);
 }
-- 
2.56.1

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [Devel] [PATCH hci-8.2 2/9] ms/mptcp: Fix up subflow's memcg when CONFIG_SOCK_CGROUP_DATA=n.
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 2/9] ms/mptcp: Fix up subflow's memcg when CONFIG_SOCK_CGROUP_DATA=n Eva Kurchatova
@ 2026-11-19  4:52   ` no-reply
  2026-11-19 17:08   ` Konstantin Khorenko
  1 sibling, 0 replies; 30+ messages in thread
From: no-reply @ 2026-11-19  4:52 UTC (permalink / raw)
  To: Eva Kurchatova, khorenko, vladimir.riabchun; +Cc: devel

> From: Kuniyuki Iwashima <kuniyu@google.com>
> 
> [ Upstream commit 68889dfd547bd8eabc5a98b58475d7b901cf5129 ]
> 
> When sk_alloc() allocates a socket, mem_cgroup_sk_alloc() sets
> sk->sk_memcg based on the current task.
> 
> MPTCP subflow socket creation is triggered from userspace or
> an in-kernel worker.
> 
> In the latter case, sk->sk_memcg is not what we want.  So, we fix
> it up from the parent socket's sk->sk_memcg in mptcp_attach_cgroup().
> 
> Although the code is placed under #ifdef CONFIG_MEMCG, it is buried
> under #ifdef CONFIG_SOCK_CGROUP_DATA.
> [ ... ]
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-155321
> Feature: fix ms/net
> 
> Signed-off-by: Eva Kurchatova <eva.kurchatova@virtuozzo.com>

Sashiko has reviewed this patch and found no issues.

Carry the trailer below into the next revision and Sashiko will not review this patch again.

Reviewed-by: Sashiko <no-reply@sashiko.virtuozzo.com>

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261119044702.1218722-1-eva.kurchatova@virtuozzo.com?part=2


_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [Devel] [PATCH hci-8.2 3/9] ms/net: factor-out _sk_charge() helper
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 3/9] ms/net: factor-out _sk_charge() helper Eva Kurchatova
@ 2026-11-19  4:53   ` no-reply
  2026-11-19 17:08   ` Konstantin Khorenko
  1 sibling, 0 replies; 30+ messages in thread
From: no-reply @ 2026-11-19  4:53 UTC (permalink / raw)
  To: Eva Kurchatova, khorenko, vladimir.riabchun; +Cc: devel

> From: Paolo Abeni <pabeni@redhat.com>
> 
> Move out of __inet_accept() the code dealing charging newly
> accepted socket to memcg. MPTCP will soon use it to on a per
> subflow basis, in different contexts.
> 
> No functional changes intended.
> 
> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
> Acked-by: Geliang Tang <geliang@kernel.org>
> Acked-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
> Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
> Link: https://patch.msgid.link/20251121-net-next-mptcp-memcg-backlog-imp-v1-1-1f34b6c1e0b1@kernel.org
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
> (cherry picked from commit 075b19c211dfeea5f27075293ddf8795b78c9bd9)
> 
> Rebase note: __sk_charge() uses sk->sk_memcg and
> mem_cgroup_charge_skmem(), as this tree has neither mem_cgroup_from_sk()
> nor mem_cgroup_sk_charge(), and __inet_accept() keeps SCTP out as in
> the previous patch.
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-155321
> Feature: fix ms/net
> 
> Signed-off-by: Eva Kurchatova <eva.kurchatova@virtuozzo.com>

Sashiko has reviewed this patch and found no issues.

Carry the trailer below into the next revision and Sashiko will not review this patch again.

Reviewed-by: Sashiko <no-reply@sashiko.virtuozzo.com>

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261119044702.1218722-1-eva.kurchatova@virtuozzo.com?part=3


_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [Devel] [PATCH hci-8.2 1/9] ms/tcp: Save lock_sock() for memcg in inet_csk_accept().
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 1/9] ms/tcp: Save lock_sock() for memcg in inet_csk_accept() Eva Kurchatova
@ 2026-11-19  4:53   ` no-reply
  2026-11-19 17:08   ` Konstantin Khorenko
  1 sibling, 0 replies; 30+ messages in thread
From: no-reply @ 2026-11-19  4:53 UTC (permalink / raw)
  To: Eva Kurchatova, khorenko, vladimir.riabchun; +Cc: devel

> From: Kuniyuki Iwashima <kuniyu@google.com>
> 
> If memcg is enabled, accept() acquires lock_sock() twice for each new
> TCP/MPTCP socket in inet_csk_accept() and __inet_accept().
> 
> Let's move memcg operations from inet_csk_accept() to __inet_accept().
> 
> Note that SCTP somehow allocates a new socket by sk_alloc() in
> sk->sk_prot->accept() and clones fields manually, instead of using
> sk_clone_lock().
> 
> mem_cgroup_sk_alloc() is called for SCTP before __inet_accept(),
> so I added the protocol check in __inet_accept(), but this can be
> removed once SCTP uses sk_clone_lock().
> 
> [ ... ]
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-155321
> Feature: fix ms/net
> 
> Signed-off-by: Eva Kurchatova <eva.kurchatova@virtuozzo.com>

Sashiko has reviewed this patch and found no issues.

Carry the trailer below into the next revision and Sashiko will not review this patch again.

Reviewed-by: Sashiko <no-reply@sashiko.virtuozzo.com>

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261119044702.1218722-1-eva.kurchatova@virtuozzo.com?part=1


_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [Devel] [PATCH hci-8.2 4/9] ms/mptcp: factor-out cgroup data inherit helper
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 4/9] ms/mptcp: factor-out cgroup data inherit helper Eva Kurchatova
@ 2026-11-19  4:54   ` no-reply
  2026-11-19 17:08   ` Konstantin Khorenko
  1 sibling, 0 replies; 30+ messages in thread
From: no-reply @ 2026-11-19  4:54 UTC (permalink / raw)
  To: Eva Kurchatova, khorenko, vladimir.riabchun; +Cc: devel

> From: Paolo Abeni <pabeni@redhat.com>
> 
> MPTCP will soon need the same functionality for passive sockets,
> factor them out in a common helper. No functional change intended.
> 
> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
> Reviewed-by: Geliang Tang <geliang@kernel.org>
> Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
> Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
> Link: https://patch.msgid.link/20251121-net-next-mptcp-memcg-backlog-imp-v1-2-1f34b6c1e0b1@kernel.org
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
> (cherry picked from commit bd92dd8e03d98a499c8525e3748f046aaca2090d)
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-155321
> Feature: fix ms/net
> 
> Signed-off-by: Eva Kurchatova <eva.kurchatova@virtuozzo.com>

Sashiko has reviewed this patch and found no issues.

Carry the trailer below into the next revision and Sashiko will not review this patch again.

Reviewed-by: Sashiko <no-reply@sashiko.virtuozzo.com>

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261119044702.1218722-1-eva.kurchatova@virtuozzo.com?part=4


_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [Devel] [PATCH hci-8.2 6/9] ms/mptcp: fix memcg accounting for passive sockets
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 6/9] ms/mptcp: fix memcg accounting for passive sockets Eva Kurchatova
@ 2026-11-19  4:58   ` no-reply
  2026-11-19 17:08   ` Konstantin Khorenko
  1 sibling, 0 replies; 30+ messages in thread
From: no-reply @ 2026-11-19  4:58 UTC (permalink / raw)
  To: Eva Kurchatova, khorenko, vladimir.riabchun; +Cc: devel

> From: Paolo Abeni <pabeni@redhat.com>
> 
> The passive sockets never got proper memcg accounting: the msk
> socket is associated with the memcg at accept time, but the
> passive subflows never got it right.
> 
> At accept time, traverse the subflows list and associate each of them
> with the msk memcg, and try to do the same at join completion time, if
> the msk has been already accepted.
> 
> Fixes: cf7da0d66cc1 ("mptcp: Create SUBFLOW socket for incoming connections")
> Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/298
> Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/597
> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
> Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
> [ ... ]
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-155321
> Feature: fix ms/net
> 
> Signed-off-by: Eva Kurchatova <eva.kurchatova@virtuozzo.com>

Sashiko has reviewed this patch and found no issues.

Carry the trailer below into the next revision and Sashiko will not review this patch again.

Reviewed-by: Sashiko <no-reply@sashiko.virtuozzo.com>

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261119044702.1218722-1-eva.kurchatova@virtuozzo.com?part=6


_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [Devel] [PATCH hci-8.2 5/9] ms/mptcp: grafting MPJ subflow earlier
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 5/9] ms/mptcp: grafting MPJ subflow earlier Eva Kurchatova
@ 2026-11-19  4:59   ` no-reply
  2026-11-19 17:08   ` Konstantin Khorenko
  1 sibling, 0 replies; 30+ messages in thread
From: no-reply @ 2026-11-19  4:59 UTC (permalink / raw)
  To: Eva Kurchatova, khorenko, vladimir.riabchun; +Cc: devel

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] mptcp: early MPJ graft leaves join_list subflow with stale
  sk_socket/sk_wq after close()
--

commit c62554dd87cdc961afc2cec2473eafa18b00fb88
Author: Paolo Abeni <pabeni@redhat.com>

ms/mptcp: grafting MPJ subflow earlier

This commit moves the grafting of MPJ subflows to the msk socket from
__mptcp_finish_join() to mptcp_finish_join(). The graft now happens under
the msk data lock through a new helper, mptcp_sock_check_graft(), instead
of under the msk socket lock.

Link: https://patch.msgid.link/20251121-net-next-mptcp-memcg-backlog-imp-v1-3-1f34b6c1e0b1@kernel.org

> diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c
> index 26e608355663..d91d6a5a3fd2 100644
> --- a/net/mptcp/protocol.c
> +++ b/net/mptcp/protocol.c

[ ... ]

> @@ -3797,11 +3807,17 @@ bool mptcp_finish_join(struct sock *ssk)
>  		if (ret) {
>  			sock_hold(ssk);
>  			list_add_tail(&subflow->node, &msk->conn_list);
> +			mptcp_sock_check_graft(parent, ssk);
>  		}
>  	} else {
>  		sock_hold(ssk);
>  		list_add_tail(&subflow->node, &msk->join_list);
>  		__set_bit(MPTCP_FLUSH_JOIN_LIST, &msk->cb_flags);
> +
> +		/* In case of later failures, __mptcp_flush_join_list() will
> +		 * properly orphan the ssk via mptcp_close_ssk().
> +		 */
> +		mptcp_sock_check_graft(parent, ssk);
>  	}
>  	mptcp_data_unlock(parent);

[Severity: Medium]
Can this leave a stale sk_socket and sk_wq on a join_list subflow after
close()? Before this patch the graft ran in __mptcp_finish_join() under the
msk socket lock and only if msk->sk_socket was still non-NULL, so it could
not happen after sock_orphan(). Now the graft runs under the data lock
only, and close() does not take that lock around the orphan loop.

CPU0 (close)                      CPU1 (<softirq>)
mptcp_close()
  lock_sock(sk)
  __mptcp_close()
                                  mptcp_finish_join()
                                    sock_owned_by_user() -> join_list
                                    mptcp_sock_check_graft()
                                      ssk->sk_socket/sk_wq = msk's
    orphan loop (conn_list only)
    sock_orphan(sk)
  release_sock()
    __mptcp_flush_join_list()
      __mptcp_finish_join() fails
      mptcp_subflow_reset(ssk)
                                  later subflow callback
                                    uses ssk->sk_wq  <-- use-after-free

The orphan loop in __mptcp_close() uses mptcp_for_each_subflow(), which
walks conn_list and never visits join_list, so it never clears
ssk->sk_socket and ssk->sk_wq for this subflow. The same happens if
mptcp_sock_check_graft() samples sk_socket just before sock_orphan() but
calls mptcp_sock_graft() after it, since the pointer is used after
sk_callback_lock is dropped with nothing pinning it.

The new comment says __mptcp_flush_join_list() will orphan the ssk on
failure. The failure path only calls mptcp_subflow_reset() and does not
clear sk_socket or sk_wq. Would it make sense to clear them in that path,
or to make the graft check against close() under a lock that close() also
holds?

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261119044702.1218722-1-eva.kurchatova@virtuozzo.com?part=5

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [Devel] [PATCH hci-8.2 7/9] ms/mptcp: handle first subflow closing consistently
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 7/9] ms/mptcp: handle first subflow closing consistently Eva Kurchatova
@ 2026-11-19  4:59   ` no-reply
  2026-11-19 17:08   ` Konstantin Khorenko
  1 sibling, 0 replies; 30+ messages in thread
From: no-reply @ 2026-11-19  4:59 UTC (permalink / raw)
  To: Eva Kurchatova, khorenko, vladimir.riabchun; +Cc: devel

> From: Paolo Abeni <pabeni@redhat.com>
> 
> Currently, as soon as the PM closes a subflow, the msk stops accepting
> data from it, even if the TCP socket could be still formally open in the
> incoming direction, with the notable exception of the first subflow.
> 
> The root cause of such behavior is that code currently piggy back two
> separate semantic on the subflow->disposable bit: the subflow context
> must be released and that the subflow must stop accepting incoming
> data.
> 
> The first subflow is never disposed, so it also never stop accepting
> incoming data. Use a separate bit to mark the latter status and set such
> bit in __mptcp_close_ssk() for all subflows.
> 
> [ ... ]
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-155321
> Feature: fix ms/net
> 
> Signed-off-by: Eva Kurchatova <eva.kurchatova@virtuozzo.com>

Sashiko has reviewed this patch and found no issues.

Carry the trailer below into the next revision and Sashiko will not review this patch again.

Reviewed-by: Sashiko <no-reply@sashiko.virtuozzo.com>

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261119044702.1218722-1-eva.kurchatova@virtuozzo.com?part=7


_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [Devel] [PATCH hci-8.2 9/9] ms/mptcp: reclaim forward-allocated memory on RX path errors
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 9/9] ms/mptcp: reclaim forward-allocated memory on RX path errors Eva Kurchatova
@ 2026-11-19  5:01   ` no-reply
  2026-11-19 17:08   ` Konstantin Khorenko
  1 sibling, 0 replies; 30+ messages in thread
From: no-reply @ 2026-11-19  5:01 UTC (permalink / raw)
  To: Eva Kurchatova, khorenko, vladimir.riabchun; +Cc: devel

> From: Paolo Abeni <pabeni@redhat.com>
> 
> After commit 9db5b3cec4ec ("mptcp: borrow forward memory from subflow"),
> errors in the receive path prior to queueing skbs into the receive
> queue do not trigger forward-allocated memory reclaiming.
> 
> Prevent forward memory from growing unboundedly in pathological drop
> scenarios by explicitly reclaiming memory when skbs are dropped.
> 
> Fixes: 9db5b3cec4ec ("mptcp: borrow forward memory from subflow")
> Cc: stable@vger.kernel.org
> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
> Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
> Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
> Link: https://patch.msgid.link/20260803-net-mptcp-misc-fixes-7-2-rc6-v2-8-b8f496d71664@kernel.org
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
> (cherry picked from commit 41b49a8b914ec7dcb03eae93fb27f3c464078644)
> 
> Rebase note: this tree counts the drop with sk_drops_add().
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-155321
> Feature: fix ms/net
> 
> Signed-off-by: Eva Kurchatova <eva.kurchatova@virtuozzo.com>

Sashiko has reviewed this patch and found no issues.

Carry the trailer below into the next revision and Sashiko will not review this patch again.

Reviewed-by: Sashiko <no-reply@sashiko.virtuozzo.com>

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261119044702.1218722-1-eva.kurchatova@virtuozzo.com?part=9


_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [Devel] [PATCH hci-8.2 8/9] ms/mptcp: borrow forward memory from subflow
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 8/9] ms/mptcp: borrow forward memory from subflow Eva Kurchatova
@ 2026-11-19  5:03   ` no-reply
  2026-11-19 17:08   ` Konstantin Khorenko
  1 sibling, 0 replies; 30+ messages in thread
From: no-reply @ 2026-11-19  5:03 UTC (permalink / raw)
  To: Eva Kurchatova, khorenko, vladimir.riabchun; +Cc: devel

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Low] mptcp: vacuous DEBUG_NET_WARN_ON_ONCE in mptcp_borrow_fwdmem()
- [Low] mptcp: commit message claims RCVPRUNED MIB and last drop
  removed, but both remain
--

commit ab2d16826da729da089390db8fdf38dd6e2d8ff6
Author: Paolo Abeni <pabeni@redhat.com>

ms/mptcp: borrow forward memory from subflow

This replaces skb_orphan() in the MPTCP receive path with helpers that lend
the skb's forward memory from the subflow and borrow it on the msk. The
subflow's leftover page fragment is borrowed when the subflow is closed.

Link: https://patch.msgid.link/20251121-net-next-mptcp-memcg-backlog-imp-v1-12-1f34b6c1e0b1@kernel.org

> This allow removing the last drop in the TCP to MPTCP transition and the
> associated, now unused, MIB.

[Severity: Low]
Is this sentence true for this tree? After this patch __mptcp_move_skb()
still does this:

	if (!mptcp_try_rmem_schedule(sk, skb)) {
		MPTCP_INC_STATS(sock_net(sk), MPTCP_MIB_RCVPRUNED);
		goto drop;
	}

MPTCP_MIB_RCVPRUNED is also still incremented in mptcp_data_queue_ofo().
Only the sk_rmem_schedule() check and its counter increment were removed.
The rebase note explains the divergence from mainline, but the sentence
itself is wrong here. The last patch of the series still has the MIB and
both increments. Could the sentence be dropped or reworded?

> diff --git a/net/mptcp/protocol.h b/net/mptcp/protocol.h
> index 282176fe111d..51a8a3357e2d 100644
> --- a/net/mptcp/protocol.h
> +++ b/net/mptcp/protocol.h

[ ... ]

> +static inline void mptcp_borrow_fwdmem(struct sock *sk, struct sk_buff *skb)
> +{
> +	struct sock *ssk = skb->sk;
> +
> +	/* The subflow just lend the skb fwd memory, and we know that the skb
> +	 * is only accounted on the incoming subflow rcvbuf.
> +	 */
> +	DEBUG_NET_WARN_ON_ONCE(skb->destructor);
> +	skb->sk = NULL;
> +	sk_forward_alloc_add(sk, skb->truesize);
> +	atomic_sub(skb->truesize, &ssk->sk_rmem_alloc);
> +}

[Severity: Low]
Can this DEBUG_NET_WARN_ON_ONCE() ever fire? Both callers,
__mptcp_move_skb() and mptcp_fastopen_subflow_synack_set_params(), call
mptcp_subflow_lend_fwdmem() right before this helper, and that helper sets
skb->destructor = NULL. The condition is therefore always false, so the
assertion cannot catch a misuse, while skb->sk is dereferenced without any
check. Would testing skb->sk here be more useful?

Carry the trailer below into the next revision and Sashiko will not review this patch again.

Reviewed-by: Sashiko <no-reply@sashiko.virtuozzo.com>

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261119044702.1218722-1-eva.kurchatova@virtuozzo.com?part=8

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [Devel] [PATCH hci-8.2 0/9] ms/mptcp: backport fixes for dropped stream segments
  2026-11-19  4:35 [Devel] [PATCH hci-8.2 0/9] ms/mptcp: backport fixes for dropped stream segments Eva Kurchatova
                   ` (8 preceding siblings ...)
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 9/9] ms/mptcp: reclaim forward-allocated memory on RX path errors Eva Kurchatova
@ 2026-11-19 17:08 ` Konstantin Khorenko
  2026-11-19 17:08 ` Konstantin Khorenko
  10 siblings, 0 replies; 30+ messages in thread
From: Konstantin Khorenko @ 2026-11-19 17:08 UTC (permalink / raw)
  To: Eva Kurchatova; +Cc: devel

Applying the series as is.

Separate patches, not needed for this series. I created a task for it:

1. 8/9 (as in mainline) leaves the fwd memory of the msk and of each
   subflow page-aligned only as a sum. Data moved to the msk before
   accept() makes __sk_charge() round each socket up on its own, so the
   memcg gets one page more per such subflow, never uncharged. This
   needs a fix upstream first; the vz-only parts of 6/9 (join_list
   flush with memcg off, no second charge of a subflow that already has
   the msk memcg) are worth sending along.
   https://virtuozzo.atlassian.net/browse/VSTOR-156047

On Thu, 19 Nov 2026 06:35:25 +0200, Eva Kurchatova wrote:
> Patchset for task https://virtuozzo.atlassian.net/browse/VSTOR-155321

Next time please say in the cover what breaks (a fallback socket drops
TCP-acked data on an msk rmem charge failure) and why the memcg patches
come along (8/9 needs the msk and its subflows in one memcg).

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [Devel] [PATCH hci-8.2 1/9] ms/tcp: Save lock_sock() for memcg in inet_csk_accept().
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 1/9] ms/tcp: Save lock_sock() for memcg in inet_csk_accept() Eva Kurchatova
  2026-11-19  4:53   ` no-reply
@ 2026-11-19 17:08   ` Konstantin Khorenko
  1 sibling, 0 replies; 30+ messages in thread
From: Konstantin Khorenko @ 2026-11-19 17:08 UTC (permalink / raw)
  To: Eva Kurchatova; +Cc: devel

Applying as is.

On Thu, 19 Nov 2026 06:35:26 +0200, Eva Kurchatova wrote:
> If memcg is enabled, accept() acquires lock_sock() twice for each new

Thanks.

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [Devel] [PATCH hci-8.2 2/9] ms/mptcp: Fix up subflow's memcg when CONFIG_SOCK_CGROUP_DATA=n.
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 2/9] ms/mptcp: Fix up subflow's memcg when CONFIG_SOCK_CGROUP_DATA=n Eva Kurchatova
  2026-11-19  4:52   ` no-reply
@ 2026-11-19 17:08   ` Konstantin Khorenko
  1 sibling, 0 replies; 30+ messages in thread
From: Konstantin Khorenko @ 2026-11-19 17:08 UTC (permalink / raw)
  To: Eva Kurchatova; +Cc: devel

Applying as is.

On Thu, 19 Nov 2026 06:35:27 +0200, Eva Kurchatova wrote:
> When sk_alloc() allocates a socket, mem_cgroup_sk_alloc() sets

Thanks.

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [Devel] [PATCH hci-8.2 4/9] ms/mptcp: factor-out cgroup data inherit helper
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 4/9] ms/mptcp: factor-out cgroup data inherit helper Eva Kurchatova
  2026-11-19  4:54   ` no-reply
@ 2026-11-19 17:08   ` Konstantin Khorenko
  1 sibling, 0 replies; 30+ messages in thread
From: Konstantin Khorenko @ 2026-11-19 17:08 UTC (permalink / raw)
  To: Eva Kurchatova; +Cc: devel

Applying as is.

On Thu, 19 Nov 2026 06:35:29 +0200, Eva Kurchatova wrote:
> MPTCP will soon need the same functionality for passive sockets,

Thanks.

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [Devel] [PATCH hci-8.2 6/9] ms/mptcp: fix memcg accounting for passive sockets
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 6/9] ms/mptcp: fix memcg accounting for passive sockets Eva Kurchatova
  2026-11-19  4:58   ` no-reply
@ 2026-11-19 17:08   ` Konstantin Khorenko
  1 sibling, 0 replies; 30+ messages in thread
From: Konstantin Khorenko @ 2026-11-19 17:08 UTC (permalink / raw)
  To: Eva Kurchatova; +Cc: devel

Applying as is.

On Thu, 19 Nov 2026 06:35:31 +0200, Eva Kurchatova wrote:
> The passive sockets never got proper memcg accounting: the msk

Thanks.

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [Devel] [PATCH hci-8.2 3/9] ms/net: factor-out _sk_charge() helper
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 3/9] ms/net: factor-out _sk_charge() helper Eva Kurchatova
  2026-11-19  4:53   ` no-reply
@ 2026-11-19 17:08   ` Konstantin Khorenko
  1 sibling, 0 replies; 30+ messages in thread
From: Konstantin Khorenko @ 2026-11-19 17:08 UTC (permalink / raw)
  To: Eva Kurchatova; +Cc: devel

Applying as is.

On Thu, 19 Nov 2026 06:35:28 +0200, Eva Kurchatova wrote:
> Move out of __inet_accept() the code dealing charging newly

Thanks.

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [Devel] [PATCH hci-8.2 5/9] ms/mptcp: grafting MPJ subflow earlier
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 5/9] ms/mptcp: grafting MPJ subflow earlier Eva Kurchatova
  2026-11-19  4:59   ` no-reply
@ 2026-11-19 17:08   ` Konstantin Khorenko
  1 sibling, 0 replies; 30+ messages in thread
From: Konstantin Khorenko @ 2026-11-19 17:08 UTC (permalink / raw)
  To: Eva Kurchatova; +Cc: devel

Applying as is.

On Thu, 19 Nov 2026 06:35:30 +0200, Eva Kurchatova wrote:
> Later patches need to ensure that all MPJ subflows are grafted to the

Sashiko's concern on this one: a subflow grafted while close() holds
the msk keeps the msk sk_socket/sk_wq, but nothing reads them before
mptcp_subflow_reset() closes and unhashes it and sock_orphan() clears
them. Mainline is the same, so nothing to change here.

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [Devel] [PATCH hci-8.2 7/9] ms/mptcp: handle first subflow closing consistently
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 7/9] ms/mptcp: handle first subflow closing consistently Eva Kurchatova
  2026-11-19  4:59   ` no-reply
@ 2026-11-19 17:08   ` Konstantin Khorenko
  1 sibling, 0 replies; 30+ messages in thread
From: Konstantin Khorenko @ 2026-11-19 17:08 UTC (permalink / raw)
  To: Eva Kurchatova; +Cc: devel

Applying as is.

On Thu, 19 Nov 2026 06:35:32 +0200, Eva Kurchatova wrote:
> Currently, as soon as the PM closes a subflow, the msk stops accepting

Thanks.

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [Devel] [PATCH hci-8.2 8/9] ms/mptcp: borrow forward memory from subflow
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 8/9] ms/mptcp: borrow forward memory from subflow Eva Kurchatova
  2026-11-19  5:03   ` no-reply
@ 2026-11-19 17:08   ` Konstantin Khorenko
  1 sibling, 0 replies; 30+ messages in thread
From: Konstantin Khorenko @ 2026-11-19 17:08 UTC (permalink / raw)
  To: Eva Kurchatova; +Cc: devel

Applying as is.

On Thu, 19 Nov 2026 06:35:33 +0200, Eva Kurchatova wrote:
> In the MPTCP receive path, we release the subflow allocated fwd

Thanks.

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [Devel] [PATCH hci-8.2 9/9] ms/mptcp: reclaim forward-allocated memory on RX path errors
  2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 9/9] ms/mptcp: reclaim forward-allocated memory on RX path errors Eva Kurchatova
  2026-11-19  5:01   ` no-reply
@ 2026-11-19 17:08   ` Konstantin Khorenko
  1 sibling, 0 replies; 30+ messages in thread
From: Konstantin Khorenko @ 2026-11-19 17:08 UTC (permalink / raw)
  To: Eva Kurchatova; +Cc: devel

Applying as is.

On Thu, 19 Nov 2026 06:35:34 +0200, Eva Kurchatova wrote:
> After commit 9db5b3cec4ec ("mptcp: borrow forward memory from subflow"),

Thanks.

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [Devel] [PATCH hci-8.2 0/9] ms/mptcp: backport fixes for dropped stream segments
  2026-11-19  4:35 [Devel] [PATCH hci-8.2 0/9] ms/mptcp: backport fixes for dropped stream segments Eva Kurchatova
                   ` (9 preceding siblings ...)
  2026-11-19 17:08 ` [Devel] [PATCH hci-8.2 0/9] ms/mptcp: backport fixes for dropped stream segments Konstantin Khorenko
@ 2026-11-19 17:08 ` Konstantin Khorenko
  10 siblings, 0 replies; 30+ messages in thread
From: Konstantin Khorenko @ 2026-11-19 17:08 UTC (permalink / raw)
  To: vladimir.riabchun, Eva Kurchatova; +Cc: devel

On Thu, 19 Nov 2026 06:35:25 +0200, Eva Kurchatova wrote:
> ms/mptcp: backport fixes for dropped stream segments
> 
> Patchset for task https://virtuozzo.atlassian.net/browse/VSTOR-155321
> 
> Kuniyuki Iwashima (2):
>   ms/tcp: Save lock_sock() for memcg in inet_csk_accept().
>   ms/mptcp: Fix up subflow's memcg when CONFIG_SOCK_CGROUP_DATA=n.
> 
> [...]

Applied to branch-rh10-6.12.0-211.75.1.26.x.vz10-ovz, will be released in rh10-6.12.0-211.75.1.26.4.vz10, thanks!

[1/9] ms/tcp: Save lock_sock() for memcg in inet_csk_accept().
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/ca8080855585
[2/9] ms/mptcp: Fix up subflow's memcg when CONFIG_SOCK_CGROUP_DATA=n.
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/e49cb5acd90f
[3/9] ms/net: factor-out _sk_charge() helper
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/4172db40f821
[4/9] ms/mptcp: factor-out cgroup data inherit helper
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/8cc260fc35a3
[5/9] ms/mptcp: grafting MPJ subflow earlier
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/c9ad17d667aa
[6/9] ms/mptcp: fix memcg accounting for passive sockets
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/a45bddca5a3d
[7/9] ms/mptcp: handle first subflow closing consistently
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/2d2e46636c4b
[8/9] ms/mptcp: borrow forward memory from subflow
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/826f40be0406
[9/9] ms/mptcp: reclaim forward-allocated memory on RX path errors
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/b7704f4d8e1c

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team


_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2026-11-19 17:10 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-19  4:35 [Devel] [PATCH hci-8.2 0/9] ms/mptcp: backport fixes for dropped stream segments Eva Kurchatova
2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 1/9] ms/tcp: Save lock_sock() for memcg in inet_csk_accept() Eva Kurchatova
2026-11-19  4:53   ` no-reply
2026-11-19 17:08   ` Konstantin Khorenko
2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 2/9] ms/mptcp: Fix up subflow's memcg when CONFIG_SOCK_CGROUP_DATA=n Eva Kurchatova
2026-11-19  4:52   ` no-reply
2026-11-19 17:08   ` Konstantin Khorenko
2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 3/9] ms/net: factor-out _sk_charge() helper Eva Kurchatova
2026-11-19  4:53   ` no-reply
2026-11-19 17:08   ` Konstantin Khorenko
2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 4/9] ms/mptcp: factor-out cgroup data inherit helper Eva Kurchatova
2026-11-19  4:54   ` no-reply
2026-11-19 17:08   ` Konstantin Khorenko
2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 5/9] ms/mptcp: grafting MPJ subflow earlier Eva Kurchatova
2026-11-19  4:59   ` no-reply
2026-11-19 17:08   ` Konstantin Khorenko
2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 6/9] ms/mptcp: fix memcg accounting for passive sockets Eva Kurchatova
2026-11-19  4:58   ` no-reply
2026-11-19 17:08   ` Konstantin Khorenko
2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 7/9] ms/mptcp: handle first subflow closing consistently Eva Kurchatova
2026-11-19  4:59   ` no-reply
2026-11-19 17:08   ` Konstantin Khorenko
2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 8/9] ms/mptcp: borrow forward memory from subflow Eva Kurchatova
2026-11-19  5:03   ` no-reply
2026-11-19 17:08   ` Konstantin Khorenko
2026-11-19  4:35 ` [Devel] [PATCH hci-8.2 9/9] ms/mptcp: reclaim forward-allocated memory on RX path errors Eva Kurchatova
2026-11-19  5:01   ` no-reply
2026-11-19 17:08   ` Konstantin Khorenko
2026-11-19 17:08 ` [Devel] [PATCH hci-8.2 0/9] ms/mptcp: backport fixes for dropped stream segments Konstantin Khorenko
2026-11-19 17:08 ` Konstantin Khorenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.