netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/2] tipc: fix the mtu update in link mtu negotiation
@ 2023-04-29 22:40 Xin Long
  2023-04-29 22:40 ` [PATCH net 1/2] tipc: add tipc_bearer_min_mtu to calculate min mtu Xin Long
  2023-04-29 22:40 ` [PATCH net 2/2] tipc: do not update mtu if msg_max is too small Xin Long
  0 siblings, 2 replies; 6+ messages in thread
From: Xin Long @ 2023-04-29 22:40 UTC (permalink / raw)
  To: network dev, tipc-discussion
  Cc: davem, kuba, Eric Dumazet, Paolo Abeni, Jon Maloy

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, and 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 function.

Xin Long (2):
  tipc: add tipc_bearer_min_mtu to calculate min mtu
  tipc: do not update mtu if msg_max is too small

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

-- 
2.39.1


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

end of thread, other threads:[~2023-05-01 20:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-29 22:40 [PATCH net 0/2] tipc: fix the mtu update in link mtu negotiation Xin Long
2023-04-29 22:40 ` [PATCH net 1/2] tipc: add tipc_bearer_min_mtu to calculate min mtu Xin Long
2023-05-01  5:21   ` [tipc-discussion] " Tung Quang Nguyen
     [not found]     ` <CADvbK_cbgUh4XN2C+xQuM6PKSXEW2LLyE0E2QtePeTce6NdP-g@mail.gmail.com>
2023-05-01 20:18       ` Xin Long
2023-04-29 22:40 ` [PATCH net 2/2] tipc: do not update mtu if msg_max is too small Xin Long
2023-05-01  5:22   ` Tung Quang Nguyen

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).