openwrt-routing/batman-adv/patches
Sven Eckelmann 364379c056 batman-adv: Fix lock assert after fragmentation change
The automatic recalculation of the maximum allowed MTU is usually triggered
by code sections which are already rtnl lock protected by callers outside
of batman-adv. But when the fragmentation setting is changed via
batman-adv's own batadv genl family, then the rtnl lock is not yet taken.

But dev_set_mtu requires that the caller holds the rtnl lock because it
uses netdevice notifiers. And this code will then fail the check for this
lock:

  RTNL: assertion failed at net/core/dev.c (1953)

Fixes: e7ee4c55de ("batman-adv: update to version 2023.2")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
2023-08-22 18:54:26 +02:00
..
0001-Revert-batman-adv-Migrate-to-linux-container_of.h.patch batman-adv: Drop support for kernel < 5.15 2023-05-27 12:15:47 +02:00
0002-fix-batadv_is_cfg80211_netdev.patch batman-adv: Drop support for kernel < 5.15 2023-05-27 12:15:47 +02:00
0003-batman-adv-Hold-rtnl-lock-during-MTU-update-via-netl.patch batman-adv: Fix lock assert after fragmentation change 2023-08-22 18:54:26 +02:00