> __tipc_sendmsg() sets the SYN bit on every message sent from an
> unconnected SEQPACKET or STREAM socket, including messages sent to a
> service range, which go out as multicast. A range send doesn't connect
> the socket, so every range send from it carries SYN.
I do not understand above writing.
Can you demonstrate by using current code (what functions, what lines) ?
> Don't set SYN when the destination is a service range. Connection
> setup to a service or socket address still sets it.
Can you demonstrate by using current code (what functions, what lines) ?
> Tested on net-next (f89726ffabef) in arm64 QEMU with KASAN, with two
> TIPC nodes in network namespaces linked by veth, an unprivileged
> sender and RDM receivers with a 3-second receive timeout. Each socket
> made two range sends. Without this patch, in each of five runs, the
> remote receiver got the first range send from the SEQPACKET socket
> and the first from the STREAM socket, but not the second from either.
> With it, in each of two runs, it got all four. RDM multicast and a
> SEQPACKET unicast were received in every run, and KASAN reported
> nothing.
Please show me what KASAN reported ?
> A reproducer is available on request.
Definitely. I need your reproducer to understand the problem.