netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv3 net 0/3] tipc: fix the mtu update in link mtu negotiation
@ 2023-05-14 19:52 Xin Long
  2023-05-14 19:52 ` [PATCHv3 net 1/3] tipc: add tipc_bearer_min_mtu to calculate min mtu Xin Long
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Xin Long @ 2023-05-14 19:52 UTC (permalink / raw)
  To: network dev, tipc-discussion
  Cc: davem, kuba, Eric Dumazet, Paolo Abeni, Jon Maloy, Tung Nguyen

This patchset fixes a crash caused by a too small MTU carried in the
activate msg. Note that as such malicious packet does not exist in
the normal env, the fix won't break any application

The 1st patch introduces a function to calculate the minimum MTU for
the bearer, and the 2nd patch fixes the crash with this helper. While
at it, the 3rd patch fixes the udp bearer mtu update by netlink with
this helper.

Xin Long (3):
  tipc: add tipc_bearer_min_mtu to calculate min mtu
  tipc: do not update mtu if msg_max is too small in mtu negotiation
  tipc: check the bearer min mtu properly when setting it by netlink

 net/tipc/bearer.c    | 17 +++++++++++++++--
 net/tipc/bearer.h    |  3 +++
 net/tipc/link.c      |  9 ++++++---
 net/tipc/udp_media.c |  5 +++--
 4 files changed, 27 insertions(+), 7 deletions(-)

-- 
2.39.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-05-15  9:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-14 19:52 [PATCHv3 net 0/3] tipc: fix the mtu update in link mtu negotiation Xin Long
2023-05-14 19:52 ` [PATCHv3 net 1/3] tipc: add tipc_bearer_min_mtu to calculate min mtu Xin Long
2023-05-14 19:52 ` [PATCHv3 net 2/3] tipc: do not update mtu if msg_max is too small in mtu negotiation Xin Long
2023-05-14 19:52 ` [PATCHv3 net 3/3] tipc: check the bearer min mtu properly when setting it by netlink Xin Long
2023-05-15  2:41 ` [PATCHv3 net 0/3] tipc: fix the mtu update in link mtu negotiation Tung Quang Nguyen
2023-05-15  9:30 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).