summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2026-06-10 13:33:19 +0200
committerSven Eckelmann <sven@narfation.org>2026-06-13 07:51:17 +0200
commit4cd6d3a4b96a8576f1fed8f9f9f17c2dc2978e0c (patch)
tree4f57d012c14c9ba1d93e774069804130c2e6af45 /tools/lib/python/kdoc
parentdf97a7107b16375a10a36d7a63e9b4291a8ac680 (diff)
batman-adv: ensure bcast is writable before modifying TTL
Before batman-adv is allowed to write to an skb, it either has to have its own copy of the skb or used skb_cow() to ensure that the data part is not shared. The old implementation used a shared queue and created copies before attempting to write to it. But with the new implementation, the broadcast packet is already modified when it gets received. Potentially writing to shared buffers in this process. Adding a skb_cow() right before this operation avoids this and can at the same time prepare it for the modifications required to rebroadcast the packet. Cc: stable@kernel.org Fixes: 3f69339068f9 ("batman-adv: bcast: queue per interface, if needed") Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions