mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kyuwon Cho <kyuwoncho18@gmail.com>
To: Tung Quang Nguyen <tung.quang.nguyen@est.tech>
Cc: "David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Simon Horman <horms@kernel.org>,
	netdev@vger.kernel.org, tipc-discussion@lists.sourceforge.net,
	linux-kernel@vger.kernel.org, Jon Maloy <jmaloy@redhat.com>
Subject: Re: [PATCH net] tipc: drop discovery messages shorter than the fields they carry
Date: Wed, 25 Nov 2026 07:55:48 -0800 (PST)	[thread overview]
Message-ID: <179562208894.3410737.11139865919662209546@gmail.com> (raw)
In-Reply-To: =?utf-8?q?=3CAM7P189MB1137AEF136434E219D4075C3C6432=40AM7P189MB?= =?utf-8?q?1137=2EEURP189=2EPROD=2EOUTLOOK=2ECOM=3E?=

Hi Tung,

On Wed, Nov 25, 2026 at 09:44:59AM +0000, Tung Quang Nguyen wrote:
> Discovery message's  header size (MAX_H_SIZE == 60) is stated in tipc_disc_init_msg() and it is a protocol message.
> How can the peer send a discovery message with a 24-byte header ?

A TIPC node cannot. Anyone who can reach the bearer can, though: the
message in our test is built by hand and sent as a plain UDP datagram
to the bearer's port, with no TIPC node involved.

> As sashiko pointed out, the lecacy node (before commit 948fa2d115c5 ("tipc: increase size of tipc discovery
> messages") sends 40-byte header. The above check will drop that discovery message. This breaks our compatibility rule.

Since forged discovery messages are outside TIPC's model, I'll drop
this patch.

Thanks,
Kyuwon

      parent reply	other threads:[~2026-11-25 15:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24  7:52 Kyuwon Cho
2026-11-25  8:21 ` netdev-bot+sashiko
2026-11-25  9:44 ` Tung Quang Nguyen
2026-11-25 15:55 ` Kyuwon Cho [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179562208894.3410737.11139865919662209546@gmail.com \
    --to=kyuwoncho18@gmail.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=horms@kernel.org \
    --cc=jmaloy@redhat.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=tipc-discussion@lists.sourceforge.net \
    --cc=tung.quang.nguyen@est.tech \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®