From: Xin Long <lucien.xin@gmail.com>
To: network dev <netdev@vger.kernel.org>,
tipc-discussion@lists.sourceforge.net
Cc: davem@davemloft.net, kuba@kernel.org,
Eric Dumazet <edumazet@google.com>,
Paolo Abeni <pabeni@redhat.com>, Jon Maloy <jmaloy@redhat.com>
Subject: [PATCH net 0/2] tipc: fix the mtu update in link mtu negotiation
Date: Sat, 29 Apr 2023 18:40:45 -0400 [thread overview]
Message-ID: <cover.1682807958.git.lucien.xin@gmail.com> (raw)
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
next reply other threads:[~2023-04-29 22:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-29 22:40 Xin Long [this message]
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
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=cover.1682807958.git.lucien.xin@gmail.com \
--to=lucien.xin@gmail.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=jmaloy@redhat.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=tipc-discussion@lists.sourceforge.net \
/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;
as well as URLs for NNTP newsgroup(s).