diff options
author | Sven Eckelmann <[email protected]> | 2018-12-31 22:31:01 +0100 |
---|---|---|
committer | Simon Wunderlich <[email protected]> | 2018-12-31 22:47:50 +0100 |
commit | 9114daa825fc3f335f9bea3313ce667090187280 (patch) | |
tree | b654907c8a71f008fb919c28fdef4e9c4fec8422 /tools/perf/scripts/python/syscall-counts.py | |
parent | 955d3411a17f590364238bd0d3329b61f20c1cd2 (diff) |
batman-adv: Force mac header to start of data on xmit
The caller of ndo_start_xmit may not already have called
skb_reset_mac_header. The returned value of skb_mac_header/eth_hdr
therefore can be in the wrong position and even outside the current skbuff.
This for example happens when the user binds to the device using a
PF_PACKET-SOCK_RAW with enabled qdisc-bypass:
int opt = 4;
setsockopt(sock, SOL_PACKET, PACKET_QDISC_BYPASS, &opt, sizeof(opt));
Since eth_hdr is used all over the codebase, the batadv_interface_tx
function must always take care of resetting it.
Fixes: c6c8fea29769 ("net: Add batman-adv meshing protocol")
Reported-by: [email protected]
Reported-by: [email protected]
Signed-off-by: Sven Eckelmann <[email protected]>
Signed-off-by: Simon Wunderlich <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions