Re: [PATCH net] tipc: drop discovery messages shorter than the fields they carry

From: Kyuwon Cho

Date: Wed Nov 25 2026 - 10:56:01 EST


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