OpenVZ / Virtuozzo kernel development (devel@openvz.org)
 help / color / mirror / Atom feed
* [Devel] [PATCH hci-8.2 v3 00/10] ms/net: backport request migration RCU fixes and lockless refcount ordering
@ 2026-11-26  6:11 Eva Kurchatova
  2026-11-26  6:11 ` [Devel] [PATCH hci-8.2 v3 01/10] ms/tcp: Fix potential UAF in reqsk_timer_handler() Eva Kurchatova
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: Eva Kurchatova @ 2026-11-26  6:11 UTC (permalink / raw)
  To: khorenko, vladimir.riabchun; +Cc: devel

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.

Patches 1-4 are plain cherry-picks from 6.12.y. Patches 5-10 are picks
from mainline, where patch 5 needed altered context, patch 7 is rebased,
and patch 9 is a prerequisite of 10. Patch 4 uses the refcount helpers:
"ms/refcount: provide ops for cases when object's memory can be reused".
The IPv4 part of patch 6, e3f33b0a1d89, is already in this tree.

Tested in QEMU with lockdep and PROVE_RCU, with and without the series:
request migration with net.ipv4.tcp_migrate_req=1 over IPv4 with IP
options and IPv6 with a TCP_SAVE_SYN client, an RST to a migrated
request, IPv6 flowlabel reflection with migration, SYN cookies and Fast
Open, and the TIME_WAIT purge of a deleted netns. CALIPSO was not
tested. Only the RST test differs: without the series the listener
stops answering SYNs. No kernel warnings.

Changes in v3:
- New patches 1 and 2, from the same upstream series.
- Patch 9: Mention it is a prerequisite of 10.
- Cover letter: Fix a typo, list the tests.

Link to v2: http://lore.virtuozzo.com/kernel/179560292536.21986.9036901252604111346.b4-review@b4/T/#t

Changes in v2:
- Added patch 1, which is the first of the upstream series.
- Added patches 6, 7, 8. Patchess 6 and 8 are fixes for commits
  d4f2c86b2b7e and e3d95ad7da4f, patch 7 is the prerequisite to 8.
- Rebased on rh10-6.12.0-211.75.1.26.4.vz10.
- Updated cover letter to reflect this.
- Reviewed-by: Sashiko on patches 2-5.

Link to v1: http://lore.virtuozzo.com/kernel/179542345218.373048.999591508027024680.b4-review@b4/T/#t

Eric Dumazet (2):
  ms/tcp: ipv6: do not read ireq->pktopts from tcp_v6_send_synack()
  ms/tcp: ipv6: free ireq->ipv6_opt after an RCU grace period

Hyunwoo Kim (3):
  ms/inet: reject unhashed sockets during established lookups
  ms/net: restore refcount ordering for lockless socket access
  ms/tcp: fix request_sock use-after-free during Fast Open accept()

Jeremy Harris (1):
  ms/tcp: fastopen: note that a child socket was created

Kuniyuki Iwashima (3):
  ms/tcp: Fix potential UAF in reqsk_timer_handler().
  ms/tcp: Fix imbalanced icsk_accept_queue count.
  ms/tcp: Pass req->rsk_listener to inet_csk_reqsk_queue_drop() in
    tcp_check_req().

Yingjie Wang (1):
  ms/tcp: free saved_syn after an RCU grace period

 include/linux/tcp.h             | 12 ++++++++----
 include/net/request_sock.h      |  5 +++--
 net/core/filter.c               |  4 ++--
 net/ipv4/inet_connection_sock.c | 26 +++++++++++++++-----------
 net/ipv4/inet_hashtables.c      |  7 ++++---
 net/ipv4/inet_timewait_sock.c   |  4 ++--
 net/ipv4/syncookies.c           |  4 +++-
 net/ipv4/tcp.c                  |  1 +
 net/ipv4/tcp_fastopen.c         |  3 ++-
 net/ipv4/tcp_input.c            |  6 ++++--
 net/ipv4/tcp_minisocks.c        |  2 +-
 net/ipv6/inet6_hashtables.c     |  6 ++++--
 net/ipv6/tcp_ipv6.c             |  7 ++++---
 13 files changed, 53 insertions(+), 34 deletions(-)

-- 
2.56.1

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

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

end of thread, other threads:[~2026-11-30 15:52 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-26  6:11 [Devel] [PATCH hci-8.2 v3 00/10] ms/net: backport request migration RCU fixes and lockless refcount ordering Eva Kurchatova
2026-11-26  6:11 ` [Devel] [PATCH hci-8.2 v3 01/10] ms/tcp: Fix potential UAF in reqsk_timer_handler() Eva Kurchatova
2026-11-26  6:11 ` [Devel] [PATCH hci-8.2 v3 02/10] ms/tcp: Fix imbalanced icsk_accept_queue count Eva Kurchatova
2026-11-26  6:11 ` [Devel] [PATCH hci-8.2 v3 03/10] ms/inet: reject unhashed sockets during established lookups Eva Kurchatova
2026-11-26  6:11 ` [Devel] [PATCH hci-8.2 v3 04/10] ms/net: restore refcount ordering for lockless socket access Eva Kurchatova
2026-11-26  6:11 ` [Devel] [PATCH hci-8.2 v3 05/10] ms/tcp: ipv6: do not read ireq->pktopts from tcp_v6_send_synack() Eva Kurchatova
2026-11-26  6:11 ` [Devel] [PATCH hci-8.2 v3 06/10] ms/tcp: ipv6: free ireq->ipv6_opt after an RCU grace period Eva Kurchatova
2026-11-26  6:11 ` [Devel] [PATCH hci-8.2 v3 07/10] ms/tcp: free saved_syn " Eva Kurchatova
2026-11-26  6:11 ` [Devel] [PATCH hci-8.2 v3 08/10] ms/tcp: Pass req->rsk_listener to inet_csk_reqsk_queue_drop() in tcp_check_req() Eva Kurchatova
2026-11-26  6:11 ` [Devel] [PATCH hci-8.2 v3 09/10] ms/tcp: fastopen: note that a child socket was created Eva Kurchatova
2026-11-26  6:11 ` [Devel] [PATCH hci-8.2 v3 10/10] ms/tcp: fix request_sock use-after-free during Fast Open accept() Eva Kurchatova
2026-11-30 15:50 ` [Devel] [PATCH hci-8.2 v3 00/10] ms/net: backport request migration RCU fixes and lockless refcount ordering Konstantin Khorenko
2026-11-30 15:51 ` Konstantin Khorenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox