OpenVZ / Virtuozzo kernel development (devel@openvz.org)
 help / color / mirror / Atom feed
* [Devel] [PATCH hci-8.2 v2 0/8] ms/net: backport request migration RCU fixes and lockless refcount ordering
@ 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
                   ` (8 more replies)
  0 siblings, 9 replies; 12+ messages in thread
From: Eva Kurchatova @ 2026-11-25  6:14 UTC (permalink / raw)
  To: khorenko, vladimir.riabchun; +Cc: devel

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

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 and 2 are the 6.12.y backports, d69100340b4c and 6f4fc93f76cd,
of the mainline series merged as 7b1fd973214d; they are plain
cherry-picks. Patches 4 and 6-8 are plain cherry-picks of mainline,
patch 3 conflicted only in context, and patch 5 has a rebase note for
__reqsk_free(), which is still inline here. Patch 7 is a mainline
prerequisite of 8. Patch 2 uses the refcount acquire helpers that came
with "ms/refcount: provide ops for cases when object's memory can be
reused". The IPv4 part of patch 4, e3f33b0a1d89 ("ipv4: free inet_opt
and ireq_opt after an RCU grace period"), is already in this tree.

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.

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

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 (1):
  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 | 22 +++++++++++++---------
 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, 51 insertions(+), 32 deletions(-)

-- 
2.56.1

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

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

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

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-25  6:14 [Devel] [PATCH hci-8.2 v2 0/8] ms/net: backport request migration RCU fixes and lockless refcount ordering 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 ` [Devel] [PATCH hci-8.2 v2 0/8] ms/net: backport request migration RCU fixes and lockless refcount ordering Konstantin Khorenko

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