[PATCH net 00/10] mptcp: misc fixes for v7.4-rc5

Matthieu Baerts (NGI0) posted 10 patches 6 hours ago
Failed in applying to current master (apply log)
include/net/sock.h              |  1 +
net/core/sock.c                 |  9 +++++++--
net/ipv4/inet_connection_sock.c | 12 ++++++++----
net/ipv4/syncookies.c           |  3 ++-
net/mptcp/protocol.c            | 42 +++++++++++++++++++++++++++++++++--------
net/mptcp/protocol.h            | 18 ++++++++++++++++--
net/mptcp/subflow.c             | 32 ++++++++++++++++++++++++++++---
7 files changed, 97 insertions(+), 20 deletions(-)
[PATCH net 00/10] mptcp: misc fixes for v7.4-rc5
Posted by Matthieu Baerts (NGI0) 6 hours ago
Here are some unrelated fixes:

- Patches 1-2: drain the queues of a TCP or MPTCP socket when listen()
  fails, not to leak sockets and their netns. Fixes for v4.4 and v5.11.

- Patch 3: clear inet_opt in the child of an IPv6 listener, to avoid a
  double free with SELinux and NetLabel. A fix for v5.6.

- Patch 4: fix UaF in corner cases from delegated actions. A fix for
  v5.12.

- Patches 5-6: do not leak an orphan moved to the CLOSE state outside
  the worker. Fixes for v6.15, and for another fix introduced in v6.6
  and targeting v5.11.

- Patches 7-8: do not let PM listeners pin their netns, leaked
  otherwise. A fix for v5.12.

- Patch 9: initialize drop_req, not to leak sockets with SO_REUSEPORT
  migration. A fix for v5.14.

- Patch 10: do not pass a BPF request sock to an MPTCP listener, to
  avoid a slab-out-of-bounds write. A fix for v6.9.

Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
---
Chris Mason (6):
      tcp: drain the queues of a listen() that fails
      mptcp: drain the queues of a listen() that fails
      mptcp: clear inet_opt in the child of an IPv6 listener
      mptcp: leave an orphan's DATA_FIN to the worker
      mptcp: initialize drop_req in subflow_init_req()
      tcp: do not pass a BPF reqsk to an MPTCP listener

Hyunwoo Kim (1):
      mptcp: fix use-after-free of the subflow context on the delegated list

Josef Bacik (1):
      mptcp: pm: don't let listeners pin their netns

Matthieu Baerts (NGI0) (2):
      mptcp: don't leak an orphan when the PM closes its last subflow
      net: add __sk_net_refcnt_upgrade() with a GFP mask

 include/net/sock.h              |  1 +
 net/core/sock.c                 |  9 +++++++--
 net/ipv4/inet_connection_sock.c | 12 ++++++++----
 net/ipv4/syncookies.c           |  3 ++-
 net/mptcp/protocol.c            | 42 +++++++++++++++++++++++++++++++++--------
 net/mptcp/protocol.h            | 18 ++++++++++++++++--
 net/mptcp/subflow.c             | 32 ++++++++++++++++++++++++++++---
 7 files changed, 97 insertions(+), 20 deletions(-)
---
base-commit: 3896ae4adf5ffc11ffd0f7f42c3923e8dc195e75
change-id: 20261123-net-mptcp-misc-fixes-7-4-rc5-965d6b4fb777

Best regards,
--  
Matthieu Baerts (NGI0) <matttbe@kernel.org>