You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[CWS] Register connected flows from __inet_hash_connect
security_sk_classify_flow runs in tcp_{v4,v6}_connect before the ephemeral
source port and the source address have been picked, so the flow it reports
for a connecting socket is incomplete. Until now the transmit path called the
hook again once both were known; since Linux 7.0 inet6_csk_xmit only routes on
a dst cache miss, so that second call never happens and IPv6 TCP client flows
are either registered under a wildcard address or, when the socket was never
bound, not registered at all.
Register the flow on the return of __inet_hash_connect instead, reading the
final port and source address from the socket, and drop the entry the earlier
classification left behind. Both address families funnel into that function,
so a single hook point covers them.
0 commit comments