[PATCH batadv 0/3] batman-adv: frag: fix handling of TTL

Sven Eckelmann <[email protected]> Fri, 12 Jun 2026 15:04:22 +0200
Newsgroups org.open-mesh.lists.batman
Message-ID <[email protected]>
Unlike other packet code, the TTL was modified without any actual reader.
Unfortunately, the modification was also done on potential shared buffers.

To avoid problems with the shared buffers and to keep the TTL handling in
sync with other packet code, modify batadv_frag_skb_fwd() to unshare the
packets and handle low TTL values before forwarding the fragment to the
next neighbor.

Signed-off-by: Sven Eckelmann <[email protected]>
---
Sven Eckelmann (3):
      batman-adv: frag: ensure fragment is writable before modifying TTL
      batman-adv: frag: avoid underflow of TTL
      batman-adv: correct batadv_recv_frag_packet() return kernel-doc

 net/batman-adv/fragmentation.c | 22 +++++++++++++++++++++-
 net/batman-adv/fragmentation.h |  3 ++-
 net/batman-adv/routing.c       |  5 ++---
 3 files changed, 25 insertions(+), 5 deletions(-)
---
base-commit: 385b248dd4e46c4ce022adeb1b13e547d1954901
change-id: 20260611-frag-ttl-fe215ce153eb

Best regards,
--  
Sven Eckelmann <[email protected]>