All Virtuozzo development lists (kernel + QEMU)
 help / color / mirror / Atom feed
From: Konstantin Khorenko <khorenko@virtuozzo.com>
To: Eva Kurchatova <eva.kurchatova@virtuozzo.com>
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.2 v2 0/8] ms/net: backport request migration RCU fixes and lockless refcount ordering
Date: Wed, 25 Nov 2026 11:35:25 +0100	[thread overview]
Message-ID: <179560292536.21986.9036901252604111346.b4-review@b4> (raw)
In-Reply-To: <20261125062128.1996509-1-eva.kurchatova@virtuozzo.com>

I won't apply this version, please send v3 with the changes below.

1. Add 97c8a3c1f73d8 ("tcp: Fix potential UAF in
   reqsk_timer_handler().") and 7eca3292cac7c ("tcp: Fix imbalanced
   icsk_accept_queue count.") before 1/8, in that order.
2. 7/8: add a line saying it is taken as a prerequisite of 8/8.
3. Cover letter: fix "Patchess", say what the QEMU test ran.

All eight patches match mainline, the rebase note of 5/8 is right, and
the v1 items are done.

On Wed, 25 Nov 2026 08:14:10 +0200, Eva Kurchatova wrote:
> Mainline fixes for sockets whose data another CPU can still read after
> an ownership transfer, mostly with request migration, or after the TCP
> handshake completes on another CPU.

Item 1: both fix reqsk_timer_handler(), the function 1/8 changes, and
both are missing in hci-8.2; they come from one upstream series and
apply cleanly on the base. Upstream wrote 1/8 on top of 97c8a3c1f73d8,
see the reply to 1/8. 7eca3292cac7c is the bug of 6/8 at the drop:
label of the timer: the new listener's qlen is decremented for a
request counted in the old one, it goes negative and the listener stops
answering SYNs.

> - Added patches 6, 7, 8. Patchess 6 and 8 are fixes for commits
>   d4f2c86b2b7e and e3d95ad7da4f, patch 7 is the prerequisite to 8.

Item 3: "Patchess".

> Tested in QEMU on rh10-6.12.0-211.75.1.26.4.vz10 with lockdep and
> PROVE_RCU.

Item 3: none of the fixed paths runs without net.ipv4.tcp_migrate_req=1,
Fast Open or CALIPSO. Please name the test.

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

1. Two more mainline fixes of the same code: a0ab2ba83e351 ("tcp: fix
   TFO max_qlen accounting across reuseport migration") and
   8e759cd1f6444 ("tcp: Don't call skb_clone_and_charge_r() for
   close()d listener in tcp_v6_do_rcv()."), the latter with the same
   Fixes: target as 3/8.
   https://virtuozzo.atlassian.net/browse/VSTOR-157090

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team

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

      parent reply	other threads:[~2026-11-25 10:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25  6:14 Eva Kurchatova
2026-11-25  6:14 ` [Devel] [PATCH hci-8.2 v2 1/8] ms/inet: reject unhashed sockets during established lookups Eva Kurchatova
2026-11-25 10:35   ` Konstantin Khorenko
2026-11-25  6:14 ` [Devel] [PATCH hci-8.2 v2 2/8] ms/net: restore refcount ordering for lockless socket access Eva Kurchatova
2026-11-25  6:14 ` [Devel] [PATCH hci-8.2 v2 3/8] ms/tcp: ipv6: do not read ireq->pktopts from tcp_v6_send_synack() Eva Kurchatova
2026-11-25  6:14 ` [Devel] [PATCH hci-8.2 v2 4/8] ms/tcp: ipv6: free ireq->ipv6_opt after an RCU grace period Eva Kurchatova
2026-11-25  6:14 ` [Devel] [PATCH hci-8.2 v2 5/8] ms/tcp: free saved_syn " Eva Kurchatova
2026-11-25  6:14 ` [Devel] [PATCH hci-8.2 v2 6/8] ms/tcp: Pass req->rsk_listener to inet_csk_reqsk_queue_drop() in tcp_check_req() Eva Kurchatova
2026-11-25  6:14 ` [Devel] [PATCH hci-8.2 v2 7/8] ms/tcp: fastopen: note that a child socket was created Eva Kurchatova
2026-11-25 10:35   ` Konstantin Khorenko
2026-11-25  6:14 ` [Devel] [PATCH hci-8.2 v2 8/8] ms/tcp: fix request_sock use-after-free during Fast Open accept() Eva Kurchatova
2026-11-25 10:35 ` Konstantin Khorenko [this message]

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=179560292536.21986.9036901252604111346.b4-review@b4 \
    --to=khorenko@virtuozzo.com \
    --cc=devel@openvz.org \
    --cc=eva.kurchatova@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 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.