Skip to content

Commit aeab3d7

Browse files
Paolo Abenigregkh
Paolo Abeni
authored andcommitted
mptcp: fix security context on server socket
[ Upstream commit 0c14846 ] Currently MPTCP is not propagating the security context from the ingress request socket to newly created msk at clone time. Address the issue invoking the missing security helper. Fixes: cf7da0d ("mptcp: Create SUBFLOW socket for incoming connections") Signed-off-by: Paolo Abeni <[email protected]> Reviewed-by: Mat Martineau <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent a969a63 commit aeab3d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

net/mptcp/protocol.c

+2
Original file line numberDiff line numberDiff line change
@@ -2081,6 +2081,8 @@ struct sock *mptcp_sk_clone(const struct sock *sk,
20812081
sock_reset_flag(nsk, SOCK_RCU_FREE);
20822082
/* will be fully established after successful MPC subflow creation */
20832083
inet_sk_state_store(nsk, TCP_SYN_RECV);
2084+
2085+
security_inet_csk_clone(nsk, req);
20842086
bh_unlock_sock(nsk);
20852087

20862088
/* keep a single reference */

0 commit comments

Comments
 (0)