From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.222.175 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796059343; b=tKEIq1Zstq8smhnbn3WGxW12PItzHpdY8i4HdL3VKd5epchPtam2ehg8eetYywlfClc4 By9sdPT6V0810aK6xHIOwiK3jEJveRQFplcV8FYuHB86r6rO5YisggjNKNm4CzJlQI3Ze 932KQ1n6rAqOiwRpExC8/0kF6Vqa8bt99P27u0uYtrSINwLm6XSnKlr3lP0l1fJj8D8lI Iazjcts7AH7qOgbGkCHUAlJr+cvjj+dzRrOufUFJEXOoFCE5NDi/V7QKN3shLwG2EMkw8 mWUcy2P4lmaVGRRn+DLIpiSeGlGmjK9udRiGv1pc5RX0rW0fS5xewyRGdWuwUnSeA/Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796059343; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=b+SOk29iP/aRestSPJUi7YUG+85lA0MjUrFfbdVp/ns=; b=FnvCaJ6tc26EABRDvHIDMQGpVIANFdHJeh99k9axWfggzZPvyOihTL6A5UJ2F7SYbsuL ukOhee3Y9iFvZ8k9E4R6RGp7SYMmsLlsee4eAzsIvL1ER3Kth4vmG5eJMP7ShauqIQLj5 1CSZscYcn3D67UJcLAAknLZQ+9qCIXvQw+0Orn7iERE8/ZsKmu5gKQnJzAO9XcxYNOYwZ im/LVn5SmBZqNFl9Q96Ovy8x4SYQ3zJyyDgpiHYNuKURHxXMv+6qS7vuue4SDHCoIaFaa 096I2LNtSKPZYbEM3f7qurq6czB6HDEXZVyo6u1vKaY06Yyzf4XX1AGCIHRkpxwFkDg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=stellman-greene.com; spf=none smtp.mailfrom=stellman-greene.com; dkim=pass header.d=stellman-greene-com.20260707.gappssmtp.com header.i=@stellman-greene-com.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=gvraGtva; arc=none smtp.remote-ip=209.85.222.175 Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 710D160A2601 for ; Mon, 30 Nov 2026 17:22:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 710D160A2601 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=stellman-greene.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=stellman-greene.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=stellman-greene-com.20260707.gappssmtp.com header.i=@stellman-greene-com.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=gvraGtva Received: by mail-qk1-f175.google.com with SMTP id af79cd13be357-93f20b304c0so967709985a.3 for ; Mon, 30 Nov 2026 09:22:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stellman-greene-com.20260707.gappssmtp.com; s=20260707; t=1796059342; x=1796664142; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=b+SOk29iP/aRestSPJUi7YUG+85lA0MjUrFfbdVp/ns=; b=gvraGtva6WHlQkk+s16jQaTX4yeYIvoG2L/R8RarCRSjNFTbMpUph2121Q6hqXxpUC ZD7NuQiOBiGaD13IRfOC9+WN1yngEUKZ9CECg3GN1UUibqA3H0bI8PD6FF9nsP0Plvq7 wEYJ//r5wshtsFO+3u0q401pjtE3U72la1S1sVccgU/bUi75sIzKkP0iEPof8nYrvIbF ZJcRwPcr3tw8EVT95JURHi6EnZJ5DUURt32cDJFmCbuYVb7Xhl/0etA+t80kayzcRNE0 P7lZTYr7qLSqbv/UPk5uZdewOmEPpSqtdcckqougCUyPiXO9iWxGEUPPZ5AKzwm/Y5IK /0sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796059342; x=1796664142; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=b+SOk29iP/aRestSPJUi7YUG+85lA0MjUrFfbdVp/ns=; b=y/aES6k1bqFj0fQiWx6H+KM/JckEKvO7CNM1xJuZPwyBja6pe18le3fa6Bh0kVK5TJ Hp8l1p/w3Wed+LYIkMePATrQnEpkSwwk3WgCRGd7T2m/jRUKLUkCmO5Hx+BpZ6LLAgef 9bOL3LrQNHgGjhqfjqkC57E8GvtrkUn6Iz9+eYH+a4UPH7wn4KGO5AeY+2O48VxlzPmO gUH5a60KzYFPgT2Ov2sS3uTGC2aYSf/teuERcW5gqJiXfl7KUXeNjxDEsBrzjbis74u2 pU6jU8bf6qXWz2YbM3WqAVlgEFOd6RwCH4KY5K7s5cc55opgHbtL6jwirG8CpaNDNn4h n2eA== X-Forwarded-Encrypted: i=1; AL+hErEUUxVr+nmVPmrW9ytkdfNOR+FcyDVi+UT9IpHb5NBSZYPatgtUQ4emSlemnbcWOwTyWmxyw1IwAE5BAk4=@vger.kernel.org X-Gm-Message-State: APuU4Z88qEfk/M46r1Ev8hSFxOHc7iqbQgVV/4V+72pPbVxfH8K/WltE VS5gBVveIspuXFXlqiIojJvIWtd7XqPJfAhRb8IhdlWo/HPD52c0eITv012Ka9BrGMQ= X-Gm-Gg: AZFdTZdzfhNnTCsDdKklprf+bqTDjTdNgao4ddOJfcrFT+tLx1xe8KbaCfqR5+nsiAW 9ddVylrwzi3LkIwmbyouK5AoHSn2RkYdprijVREBfCqK1TRss3lepupC1xe9kRThktsqNMFvwFX qdHyPWNxRcdr23nn5KHJNC0rR9lxsW2HVK6nJcNqy83F0Uu6Y+NuYZl83Qn+r7gAr1zJju7P2UU TwxvfwlNSr58HtFJLaEGfueTrac0LOW4v7zwQRihCh/DzMt/S+aK2LiwfB8RzHWDxUOlGIXP9Xg M4BGze+0ZTh1UMgJ6T54qLxCvAOFecaJG3OIt8/vdEMLfzo8pfVbwb8c0j5v9uL+4Tx51EX4ioD FvCfS/9HqxI/dy8Grezlri2NOh5YImVjrk8ih583rdoHnecwA+HKGrNf7OTaTLA5mcp43SZ56zh xL1B0hdImRH9jlok6H1S1HiHhfl7obMX1WcYfNarBEvhSEnIhyvkB/T52QyfmS50xaT8NjL12rm iOwromoUAvoIK+Rf/SntkN4h0uo8i1kgZwYMuPOM2pjdBj3B9Ov0NOQu9dS29Vj3PjB4Az8GA3W K26ZjDhzUutqX8KXcpJYklH2j/ZWWGb2/A15oxOOBftcZimEkoFwbQrDrihOXnyMHm1Uc2uFMsL IMQ== X-Received: by 2002:a05:620a:40c2:b0:949:5db7:b32a with SMTP id af79cd13be357-949ba9be85fmr6140842685a.43.1796059340863; Mon, 30 Nov 2026 09:22:20 -0800 (PST) Received: from Mac.mynetworksettings.com ([2600:4041:5c28:200:c430:30ff:570a:a90e]) by smtp.gmail.com with ESMTPSA id af79cd13be357-949bb031601sm2587695485a.6.2026.11.30.09.22.20 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 30 Nov 2026 09:22:20 -0800 (PST) From: Andrew Stellman To: Tung Quang Nguyen Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , netdev@vger.kernel.org, tipc-discussion@lists.sourceforge.net, linux-kernel@vger.kernel.org, Jon Maloy Subject: Re: [PATCH net] tipc: don't set SYN on multicast from connection-oriented sockets Date: Mon, 30 Nov 2026 12:22:19 -0500 Message-ID: <20261130172219.69694-1-bugs@stellman-greene.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: References: <20261129144901.90934-1-bugs@stellman-greene.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Mon, Nov 30, 2026 at 04:01:57PM +0000, Tung Quang Nguyen wrote: > I do not understand above writing. > Can you demonstrate by using current code (what functions, what lines) ? Sure, this is on net-next f89726ffabef. A SEQPACKET or STREAM socket that isn't connected sends through __tipc_sendmsg() (for STREAM, via tipc_sendstream()). For a connection-oriented socket, __tipc_sendmsg() sets SYN in the socket's header at net/tipc/socket.c:1463, msg_set_syn(hdr, 1), before it looks at the address type. For a TIPC_SERVICE_RANGE destination it then calls tipc_sendmcast(), so the multicast goes out with SYN set. A range send doesn't connect the socket, so every later range send from it sets SYN again. On the receiving node, tipc_sk_filter_rcv() hands the message to tipc_mcast_filter_msg(), which puts a SYN message it can't match to a sync message on mc_method.deferredq instead of the receive queue. In my test the first range send from each socket got through, because tipc_mcast_xmit() also sent a sync message (tipc_mcast_send_sync()) when it chose the multicast method. The second one had no matching sync message and never reached the receiver. > Can you demonstrate by using current code (what functions, what lines) ? The patch changes that one line to msg_set_syn(hdr, atype != TIPC_SERVICE_RANGE), so a range send no longer sets SYN. TIPC_SERVICE_ADDR and TIPC_SOCKET_ADDR destinations still set it, so connection setup doesn't change. > Please show me what KASAN reported ? Nothing. KASAN was enabled in the test kernel and didn't report anything, with or without the patch. The problem isn't a memory error; the second range send just never arrives at the remote receiver. > Definitely. I need your reproducer to understand the problem. I'll send it to you off-list. Andrew