summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2026-07-02 11:46:21 +0200
committerSven Eckelmann <sven@narfation.org>2026-07-02 13:34:47 +0200
commit49df66b7993c80b80c7eb9a84ba5b3410c8296a0 (patch)
treed3a90469d7498824bd16c3d2a96e6afb089ebc64 /include
parent26560c4a03dc4d607331600c187f59ab2df5f341 (diff)
batman-adv: ensure minimal ethernet header on TX
As documented in commit 8bd67ebb50c0 ("net: bridge: xmit: make sure we have at least eth header len bytes"), it is possible by for a local user with eBPF TC hook access to attach a tc filter which truncates the packet and redirects to an batadv interface. But the code assumes that at least ETH_HLEN bytes are available and thus might read outside of the available buffer. The batadv_interface_tx() must therefore always check itself if enough data is available for the ethernet header and don't rely on min_header_len. Cc: stable@vger.kernel.org Fixes: c6c8fea29769 ("net: Add batman-adv meshing protocol") Reported-by: Sashiko <sashiko-bot@kernel.org> Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions