+1
−1
Loading
bpf_mptcp_sock_from_subflow() only checks if sk->sk_protocol is IPPROTO_TCP, but RAW socket can bypass it: socket(AF_INET, SOCK_RAW, IPPROTO_TCP) In this case, it would NOT be valid to call sk_is_mptcp() which will assume sk is a pointer to a struct tcp_sock, and wrongly checks for: tcp_sk(sk)->is_mptcp. Fixes: 3bc253c2 ("bpf: Add bpf_skc_to_mptcp_sock_proto") Signed-off-by:Matthieu Baerts (NGI0) <matttbe@kernel.org> Signed-off-by:
Kuniyuki Iwashima <kuniyu@google.com> Signed-off-by:
Martin KaFai Lau <martin.lau@kernel.org> Reviewed-by:
Kuniyuki Iwashima <kuniyu@google.com> Link: https://patch.msgid.link/20260504210610.180150-4-kuniyu@google.com