> Subject: Re: [PATCH net v2 2/2] tipc: reject SYN sent from a connection-oriented socket to a datagram server
> Hi Tung,
> Thanks for picking these up. In 2/2, the new condition is narrower
> than the existing (!sk_conn && msg_connected(hdr)) line right after it,
> which the patch leaves in place, so as far as I can tell it doesn't
> change behaviour. __tipc_sendmsg() sends a SYN as a NAMED or DIRECT
> message with the SYN bit set, so msg_connected() (TIPC_CONN_MSG) won't
> match it. Did you mean msg_is_syn(hdr) instead of msg_connected(hdr)?
Oops. My bad !
I believe I copied "msg_connected(hdr)" from a wrong place.
I will correct in v3 after 24 hours.
Thanks for your quick check.