Re: [PATCH net v3] tipc: fix u16 MTU truncation in media and bearer MTU validation

From: Vadim Fedorenko

Date: Thu Jul 09 2026 - 05:30:56 EST


On 08/07/2026 23:41, Cen Zhang (Microsoft) wrote:
Sadly NLA_POLICY_MAX() cannot be used here -- its .max field
is s16 instead of u16 in struct nla_policy, which will
overflow to -1 during my testing.

Please let me know if we have any other better choices.
Otherwise, I'll prepare a patch adding .min check (
TIPC_MIN_BEARER_MTU).

Ah, yeah, you are right, let's keep full range check