pull request: batman-adv 2026-03-17
Subsystems (4)
Simon Wunderlich
maintainercover pull request: batman-adv 2026-03-17
Hi David, hi Jakub,
here is a bugfix for batman-adv which we would like to have integrated into net.
Please pull or let me know of any problem!
Thank you,
Simon
The following changes since commit cfc83a3c71517b59c1047db57da31e26a9dc2f33:
batman-adv: Avoid double-rtnl_lock ELP metric worker (2026-02-21 13:01:55 +0100)
are available in the Git repository at:
https://git.open-mesh.org/linux-merge.git tags/batadv-net-pullrequest-20260317
for you to fetch changes up to 0d4aef630be9d5f9c1227d07669c26c4383b5ad0:
batman-adv: avoid OGM aggregation when skb tailroom is insufficient (2026-03-14 08:29:47 +0100)
----------------------------------------------------------------
Here is a batman-adv bugfix:
- avoid OGM aggregation when skb tailroom is insufficient, by Yang Yang
----------------------------------------------------------------
Yang Yang (1):
batman-adv: avoid OGM aggregation when skb tailroom is insufficient
net/batman-adv/bat_iv_ogm.c | 3 +++ 1 file changed, 3 insertions(+)
Simon Wunderlich
maintainerPATCH 1/1 batman-adv: avoid OGM aggregation when skb tailroom is insufficient
From: Yang Yang <[email protected]>
When OGM aggregation state is toggled at runtime, an existing forwarded packet may have been allocated with only packet_len bytes, while a later packet can still be selected for aggregation. Appending in this case can hit skb_put overflow conditions.
Reject aggregation when the target skb tailroom cannot accommodate the new packet. The caller then falls back to creating a new forward packet instead of appending.
--- net/batman-adv/bat_iv_ogm.c | 3 +++ 1 file changed, 3 insertions(+)
net/batman-adv/bat_iv_ogm.c +3 -0
@@ -473,6 +473,9 @@ batadv_iv_ogm_can_aggregate(const struct batadv_ogm_packet *new_bat_ogm_packet,if (aggregated_bytes > max_bytes)return false; +if (skb_tailroom (forw_packet->skb) < packet_len) +return false; +if (packet_num >=BATADV_MAX_AGGREGATION_PACKETS )return false;
Signature · 1 line
2.47.3
Re: [PATCH net 1/1] batman-adv: avoid OGM aggregation when skb tailroom is insufficient
This patch was applied to netdev/net.git (main) by Simon Wunderlich <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by Simon Wunderlich <[email protected]>:
Quoted 8 lines · On Tue, 17 Mar 2026 17:00:02 +0100 you wrote:
From: Yang Yang <[email protected]>
When OGM aggregation state is toggled at runtime, an existing forwarded packet may have been allocated with only
packet_lenbytes, while a later packet can still be selected for aggregation. Appending in this case can hitskb_putoverflow conditions.[...]
Here is the summary with links:
- [net,1/1] batman-adv: avoid OGM aggregation when skb tailroom is insufficient
https://git.kernel.org/netdev/net/c/0d4aef630be9
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html