linux-yocto/net/mptcp
Matthieu Baerts (NGI0) 392dfed4af mptcp: sockopt: fix getting freebind & transparent
commit e2f4ac7bab upstream.

When adding a socket option support in MPTCP, both the get and set parts
are supposed to be implemented.

IP(V6)_FREEBIND and IP(V6)_TRANSPARENT support for the setsockopt part
has been added a while ago, but it looks like the get part got
forgotten. It should have been present as a way to verify a setting has
been set as expected, and not to act differently from TCP or any other
socket types.

Everything was in place to expose it, just the last step was missing.
Only new code is added to cover these specific getsockopt(), that seems
safe.

Fixes: c9406a23c1 ("mptcp: sockopt: add SOL_IP freebind & transparent options")
Cc: stable@vger.kernel.org
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250314-net-mptcp-fix-data-stream-corr-sockopt-v1-3-122dbb249db3@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
[ Conflict in sockopt.c due to commit e08d0b3d17 ("inet: implement
  lockless IP_TOS") not being in this version. The conflict is in the
  context and the modification can still be applied in
  mptcp_getsockopt_v4() after the IP_TOS case. ]
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-04-25 10:45:54 +02:00
..
bpf.c bpf: Add update_socket_protocol hook 2023-08-16 10:22:16 -07:00
crypto_test.c
crypto.c
ctrl.c mptcp: sysctl: sched: avoid using current->nsproxy 2025-01-17 13:36:17 +01:00
diag.c mptcp: correct MPTCP_SUBFLOW_ATTR_SSN_OFFSET reserved size 2024-08-29 17:33:19 +02:00
fastopen.c mptcp: pr_debug: add missing \n at the end 2024-09-08 07:54:35 +02:00
Kconfig
Makefile mptcp: add struct mptcp_sched_ops 2023-08-22 17:31:18 -07:00
mib.c mptcp: prevent MPC handshake on port-based signal endpoints 2024-10-22 15:46:25 +02:00
mib.h mptcp: prevent MPC handshake on port-based signal endpoints 2024-10-22 15:46:25 +02:00
mptcp_diag.c
options.c mptcp: Fix data stream corruption in the address announcement 2025-03-28 21:59:56 +01:00
pm_netlink.c mptcp: fix 'scheduling while atomic' in mptcp_pm_nl_append_new_local_addr 2025-03-13 12:58:26 +01:00
pm_userspace.c mptcp: hold pm lock when deleting entry 2024-11-22 15:38:36 +01:00
pm.c mptcp: pr_debug: add missing \n at the end 2024-09-08 07:54:35 +02:00
protocol.c mptcp: prevent excessive coalescing on receive 2025-02-17 09:40:42 +01:00
protocol.h mptcp: safety check before fallback 2025-03-22 12:50:44 -07:00
sched.c mptcp: pr_debug: add missing \n at the end 2024-09-08 07:54:35 +02:00
sockopt.c mptcp: sockopt: fix getting freebind & transparent 2025-04-25 10:45:54 +02:00
subflow.c mptcp: only inc MPJoinAckHMacFailure for HMAC failures 2025-04-25 10:45:29 +02:00
syncookies.c
token_test.c
token.c