Merge branch 'tipc-fixes'
authorDavid S. Miller <davem@davemloft.net>
Mon, 15 May 2023 09:21:21 +0000 (10:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 May 2023 09:21:21 +0000 (10:21 +0100)
commitd1b2777d1467a3aa86d403492cc0411bf429dbe4
treeab4a17e1ba482527d1a03d895bfb776f7e73f8b8
parentb48a18644046c9bc0667493a147dfa01e8241eab
parent35a089b5d793d2bfd2cc7cfa6104545184de2ce7
Merge branch 'tipc-fixes'

Xin Long says:

====================
tipc: fix the mtu update in link mtu negotiation

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

Reviewed-by: Tung Nguyen <tung.q.nguyen@dektech.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>