[Devel] [PATCH hci-8.2 v2 0/8] ms/net: backport request migration RCU fixes and lockless refcount ordering
Konstantin Khorenko
khorenko at virtuozzo.com
Wed Nov 25 13:35:25 MSK 2026
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
More information about the Devel
mailing list