From: no-reply@sashiko.virtuozzo.com
To: Eva Kurchatova <eva.kurchatova@virtuozzo.com>,
khorenko@virtuozzo.com, vladimir.riabchun@virtuozzo.com
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.2 3/4] ms/mptcp: hold MP_JOIN msk ref when cloning reqsk
Date: Thu, 19 Nov 2026 06:41:48 +0000 [thread overview]
Message-ID: <010701a1f28a3e78-5e2f67b7-aa29-4412-95f7-e547e83a3bee-000000@eu-central-1.amazonses.com> (raw)
In-Reply-To: <20261119063525.1233606-4-eva.kurchatova@virtuozzo.com>
> From: Ruide Cao <caoruide123@gmail.com>
>
> [ Upstream commit c9c90cf437a9e6597611b6d3aad6e255fad22867 ]
>
> TCP request migration clones pending request sockets with
> inet_reqsk_clone(). For MPTCP MP_JOIN requests this byte-copies
> subflow_req->msk, but the clone does not own a reference.
>
> The original and cloned requests can consequently drop the same msk
> reference, leaving one request with a dangling pointer. This manifests as
> a KASAN slab-use-after-free in subflow_req_destructor():
>
> BUG: KASAN: slab-use-after-free in subflow_req_destructor (net/mptcp/subflow.c:45)
> Write of size 4 at addr ff1100010e008d40 by task swapper/0/0
> CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 7.2.0-rc5-00353-gc27e36054537 #10 PREEMPT(full)
> [ ... ]
>
> https://virtuozzo.atlassian.net/browse/VSTOR-155530
> 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/20261119063525.1233606-1-eva.kurchatova@virtuozzo.com?part=3
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
next prev parent reply other threads:[~2026-11-19 6:43 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 6:32 [Devel] [PATCH hci-8.2 0/4] ms/mptcp: backport msk refcount fixes Eva Kurchatova
2026-11-19 6:32 ` [Devel] [PATCH hci-8.2 1/4] ms/mptcp: only reset subflow errors when propagated Eva Kurchatova
2026-11-19 6:38 ` no-reply
2026-11-19 17:09 ` Konstantin Khorenko
2026-11-19 6:32 ` [Devel] [PATCH hci-8.2 2/4] ms/refcount: provide ops for cases when object's memory can be reused Eva Kurchatova
2026-11-19 6:38 ` no-reply
2026-11-19 17:09 ` Konstantin Khorenko
2026-11-19 6:32 ` [Devel] [PATCH hci-8.2 3/4] ms/mptcp: hold MP_JOIN msk ref when cloning reqsk Eva Kurchatova
2026-11-19 6:41 ` no-reply [this message]
2026-11-19 17:09 ` Konstantin Khorenko
2026-11-19 6:32 ` [Devel] [PATCH hci-8.2 4/4] ms/mptcp: fix MP_CAPABLE token migration " Eva Kurchatova
2026-11-19 6:42 ` no-reply
2026-11-19 17:09 ` Konstantin Khorenko
2026-11-19 17:09 ` [Devel] [PATCH hci-8.2 0/4] ms/mptcp: backport msk refcount fixes Konstantin Khorenko
2026-11-19 17:10 ` Konstantin Khorenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=010701a1f28a3e78-5e2f67b7-aa29-4412-95f7-e547e83a3bee-000000@eu-central-1.amazonses.com \
--to=no-reply@sashiko.virtuozzo.com \
--cc=devel@openvz.org \
--cc=eva.kurchatova@virtuozzo.com \
--cc=khorenko@virtuozzo.com \
--cc=vladimir.riabchun@virtuozzo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox